• 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

stopping a macro on a tell

Smileyjoe72

New member
Hey, I can usually find the answers to my macro writing questions with a quick look around...but i couldn't quite figure out how to add a command to a macro to make it stop if it recieves a tell or maybe a certain tell. i think it would be helpful since a lot of the time if i'm caught running any sort of macro people send a tell first asking, for example, if everything is okay. i was wondering how i could get a mac to either stop right when it recieves a tell, or maybe just not loop after it finishes that cycle. Not possitive my question is clear, but if anyone could provide insight that would be awesome. thanks!
 
here is what i use

#chat tell

Sub Event_Chat(string ChatType,string Sender,string ChatText)
/mqlog ${ChatType}: ${Sender} tells you: ${ChatText}


/if (${ChatText.Equal["TEXT HERE"]}) {
/delay 1s
/endmac
}
 
shawnb88 said:
here is what i use

Rich (BB code):
#chat tell

Sub Event_Chat(string ChatType,string Sender,string ChatText)
   /mqlog ${ChatType}: ${Sender} tells you: ${ChatText}


/if (${ChatText.Equal["TEXT HERE"]}) {
/delay 1s
/endmac
}


Same thing can be done with the version I posted like so:

Rich (BB code):
#Event   EndMac      "#*#Soandso tells you, INSERT TEXT HERE#*#"
Sub Event_EndMac
   /echo Recieved a /tell, Ending Macro!
   /endmac
/return

So it's only a choice if you like strings or events.
 
stopping a macro on a tell

Users who are viewing this thread

Back
Top
Cart