• 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 --->

Help required with basic macro pls? (1 Viewer)

pythag

New member
Joined
Feb 2, 2006
RedCents
The macro below fails - its not a macro I would use just written it to demonstrate what I am trying to do.

I want to define a spell at the top of the macro and cast it anywhere throughout the macro using the #define name I gave it (makes changing spell names very easy) - its the cast part that fails, tried a few different ways which learningcurve offered in chat but, still stuck - I know this works somehow because I have seen it in the FH macro. Thanks for anything.

Rich (BB code):
#include spell_routines.inc 

#define TGT1 "name"

#define HEAL_SPELL "superior healing"

Sub Main 

:loop 
/doevents 
/if (${Me.Casting.ID}) /goto :loop 
/target pc TGT1 
/if (${Target.PctHPs}<50) /call heal  
/goto :loop

sub heal 
/call cast HEAL_SPELL
/goto :loop 


|/cast HEAL_SPELL - does not work
|
|/cast "superior healing" - this works
 
question answered by Alatyami in chat

Rich (BB code):
#define HEAL_SPELL "superior healing"

change to

Rich (BB code):
#declare HEAL_SPELL string outer "superior healing"

then through macro

Rich (BB code):
/casll cast HEAL_SPELL

makes changing spells so easy :)
 
Well, it would be easy enough to just put
Rich (BB code):
/call cast Superior Healing gem2
That way you don't even need to define the heal spell at all. If you want to copy it to multiple locations in a mac, just copy/paste.

*edit* If your concern is simply changing the spell do a find/replace using notepad or whatever text editor you have. ;)
 
Rich (BB code):
#include spell_routines.inc 

Sub Main 
/declare TGT1		string outer	name
/declare HEAL_SPELL	string outer	Superior Healing

:loop 
/doevents 
/if (${Me.Casting.ID} || !${Me.SpellReady[${HEAL_SPELL}]}) /goto :loop 
/target pc ${TGT1} 
/if (${Target.PctHPs}<50) /call heal  
/goto :loop

sub heal 
/call cast "${HEAL_SPELL}"
/return
 
Help required with basic macro pls?

Users who are viewing this thread

Back
Top