• 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

Macro code question

pythag1

Member
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 :)
 
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