• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Simple Macro, for the Gurus ^_^

moorthon

New member
Basically I am looking for the following.

TargetNPC within 20 radius of me, WITHOUT targetting above / below my position of more than +/- 10.

If no mob within the 20 radius, try 50 radius. Same +/- 10 applies.

If no mob within 50 radius, move on to 75, 100, 125, and ending at 160.

The reason I do not want targetting mobs under/below me is, if I am in a multi-level zone like, Kurn's Tower. I can't exactly see, let alone fight, a Burynai Sapper from 2 floors above him. I do not want to use /warp.

Not sure how this setup would go...I have yet to touch multi-IF macros.

Like this:
Rich (BB code):
sub Panic
/attack off
/target ****
/sit
/warp target
/delay 20
:loopheal
/if (${Me.PctHPs}>90) {
/warp wp ****
/macro ****
/return
}
/delay 60
/goto :loopheal
/return
- Not sure how the above worked really, but it did.
 
All you said you want it to do is target the nearest NPC within a z range, which seems somewhat useless by itself so I assume it's part of another macro.
Rich (BB code):
Sub Main

:loop
/target npc radius 20
/if (!${Target.ID}) /goto :loop2
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop2

:loop2
/target npc radius 50
/if (!${Target.ID}) /goto :loop3
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop3

:loop3
/target npc radius 75
/if (!${Target.ID}) /goto :loop3
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop4

:loop4
/target npc radius 100
/if (!${Target.ID}) /goto :loop5
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop5

:loop5
/target npc radius 125
/if (!${Target.ID}) /goto :loop6
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop6

:loop6
/target npc radius 150
/if (!${Target.ID}) /goto :loop7
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop7

:loop7
/target npc radius 160
/if (!${Target.ID}) /goto :loop
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop
 
Cade said:
All you said you want it to do is target the nearest NPC within a z range, which seems somewhat useless by itself so I assume it's part of another macro.
Rich (BB code):
Sub Main

:loop
/target npc radius 20
/if (!${Target.ID}) /goto :loop2
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop2

:loop2
/target npc radius 50
/if (!${Target.ID}) /goto :loop3
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop3

:loop3
/target npc radius 75
/if (!${Target.ID}) /goto :loop3
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop4

:loop4
/target npc radius 100
/if (!${Target.ID}) /goto :loop5
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop5

:loop5
/target npc radius 125
/if (!${Target.ID}) /goto :loop6
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop6

:loop6
/target npc radius 150
/if (!${Target.ID}) /goto :loop7
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop7

:loop7
/target npc radius 160
/if (!${Target.ID}) /goto :loop
/if (!${Target[loc Z npc radius 10].ID}) /goto :loop


Thanks much. Forgot to check back for replies! =)
 
Simple Macro, for the Gurus ^_^

Users who are viewing this thread

Back
Top
Cart