• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

quick target question (1 Viewer)

Joined
Sep 4, 2005
RedCents
10¢
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?
 
How about just an /if command, like so:

Rich (BB code):
/if (${Spawn[pc TankName].ID}) {
  /call Cast DS_Spell
}

It basically says: If the person is in the zone, then cast the DS spell.
 
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