• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Macro code question

pythag1

Member
Joined
Jan 11, 2010
RedCents
59¢
Hi
I am copying and pasting code from all places but dont quite understand something
/if (${Me.PctHPs}<=90) {/goto :regenloop}

I would have written
/if (${Me.PctHPs}<=90) /goto :regenloop

would that make a difference?
 
Rich (BB code):
/if (${Me.PctHPs}<=90) {/goto :regenloop}

Does that code run or havent tried?
I'm gonna have to believe that was some very old code or could have been at one time part of another segment
Rich (BB code):
/if (${Me.PctHPs}<=90) {
/dosomethinghere
/goto :regenloop
}

My 2copper
 
Does it run? I dont know to be honest (what else would I do at work), i think its been copied across incorrectly. But i am assuming that the {} are used to transfer a single command over more than one line?

Just trying to figure out what I am doing whilst copy and pasting my own macros (gladly accept the fact I cant figure it out myself - all credit to those that can) I dont like the full macros as they can takeover due to my lack of knowledge which will get me banned :)
 
The first example might work, but I doubt it if it was on one line. It would work with what nyghteyes posted.
 
Further along with my macro, I am looking for the instruction to load a spell automaticly into a set gem slot.

#define SNARE_GEM 1
#define SNARE_SPELL "Ensnare"

/call Cast "SNARE_SPELL" SNARE_GEM

Makes it easy to change spells at top of macro, but what do I need to make it work?

Was written by Mandrack (i think) originally for a afk necro which used mq2extras, but not seeing that right now.
 
Should be:

For your Sub Main

Rich (BB code):
/declare SNARE_GEM      outer 1
/declare SNARE_SPELL      outer "Ensnare"
and when you want to cast it use

Rich (BB code):
/call Cast ${SNARE_SPELL} ${SNARE_GEM}
but only if you have

#include Spell_Routines.inc at the top of the macro before the Sub Main

If you dont use spell routines then you have to have Mq2Cast loaded and use
Rich (BB code):
/casting ${SNARE_SPELL} ${SNARE_GEM}
 
Macro code question

Users who are viewing this thread

Back
Top
Cart