• 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

Problem - item equipped check before casting macro

zathus

Well-known member
i am trying to make a macro that will MQ2bandolier a cloak on, cast a spell, then bandolier back on a different cloak after casting. I had it set to do a /delay 8 to give the macro time to put the cloak on, cast and take it off. what i am trying to do is make a delay that waits until the cloak is on before casting. in case there is lag or something. here is what i have tried but its not working. anyone know what i need to change this to?

Code:
#warning
#turbo 140

Sub Main
/delay 5s ${Me.SpellReady[1]}
/equipset nofocus
/delay 5s ${Me.Inventory[8].Item.Equipped[Fishweave Cloak]}
/if (${Target.Type.Equal[NPC]} && ${Me.SpellReady[11]} && !${Target.MyBuff[${Me.Gem[11].Name}].ID}) /cast 11
/delay 5s ${Me.SpellReady[1]}
/equipset focus
/delay 8
 
depending on the cloak most can be cast from inventory from what i know some need to be attuned but then can be cast from inventory or clicked rather

opps nm i misread that ignore that comment
 
I don't have the means to test this right now... but something like this looks like a good start:

/while (!${Me.Inventory[8].Name.Equal[Fishweave Cloak]}) {
/echo Waiting for cloak swap
/delay 1s
}
 
I don't have the means to test this right now... but something like this looks like a good start:

/while (!${Me.Inventory[8].Name.Equal[Fishweave Cloak]}) {
/echo Waiting for cloak swap
/delay 1s
}
Looks promising! its the Name.Equal that might be just the ticket =) ill give it a go

Edit: Yup! that did it. tested with cloak in inventory and cloak in bank. when in bank, does not move to next line in code which is perfect! thank you so much! 2 days messing with this lol
 
There is also a /if command that may be of interest too.

and this may also come in handy: https://docs.macroquest.org/macros/operators/

I think ~ means "not" when comparing strings. ! means "not" when comparing numbers. in MQ Macro. (I am not a professional coder, just a hobbyist).

! means not in both cases. ~ is for Lua.
But if you're interested in knowing how macros are done you can check out the link to the conditions tutorial I did some time ago.
 
Problem - item equipped check before casting macro

Users who are viewing this thread

Back
Top
Cart