• 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

quick target question

was wondering if anyone could help me out with a line or 2...

I basically am trying to write a macro that cylces through Tanks and casts DS's on them. I have one setup to where it targets them by name but if one is not on it shuts off. Anyone have a command so if one isnt online it skips them and proceeds to the next name?
 
majin1970 said:
I'd also put in a range 200 check so it doesn't try spamming the spell if the person is OOR.
Rich (BB code):
/if (${Spawn[pc TankName].ID} && ${Target.Distance}<=200) {
/call Cast DS_Spell 
}
 
Rich (BB code):
#include spell_routines.inc
Sub Main
    /declare RangeFocus int     local   0
    /declare DS         string  local   Nettle Shield
    /declare Tank[3]    string  local
    /varset Tank[1] Ubahtank
    /varset Tank[2] Notsoubah
    /varset Tank[3] Rathergimp

    /declare SpellRange float   local
    /varcalc SpellRange ${Spell[${DS}].Range}${If[${RangeFocus} > 0,*1.${RangeFocus},]}
    /declare i          int     local
    /for i 1 to ${Tank.Size}
        /if (${Spawn[pc ${Tank[${i}]} radius ${SpellRange}].LineOfSight}) {
            /target pc ${Tank[${i}]}
            /delay 5 (${Target.CleanName.Equal[${Tank[${i}]}]})
            /call Cast "${DS}"
        }
    /next i
/return

Untested..
 
quick target question

Users who are viewing this thread

Back
Top
Cart