• 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

Help with macro

salomo

New member
maybe someone can help me with a little hint

i want to add some more shortcut words for buffing.

Rich (BB code):
/if (${ChatText.Equal[SV]}) { 
     /if (${Target.Type.Equal[NPC]} && ${Me.Combat}) { 
         /if (${useMU} && ${Stick.Status.Equal[ON]}) /squelch /stick off 
    /attack off 
    /varset midfightcast TRUE 
    /varset oldtargetID ${Target.ID} 
    } 
         /target pc ${Sender} 
    /if (${Verbose}) /tell ${Sender} SV inc! 
   :svwait 
         /if (${Target.Type.Equal[PC]} && ${Target.Distance}<=100) /call cast ${SpellHPBuff} gem6 9s 
    /if (${Macro.Return.Equal["CAST_SUCCESS"]} || ${Macro.Return.Equal["CAST_NOTHOLD"]}) /goto :svdone 
    /goto :svwait 
   :svdone 
    /if (${midfightcast}) { 
    /varset midfightcast FALSE 
    /target id ${oldtargetID} 
    /if (${Target.ID}==${oldtargetID} && ${Target.Type.NotEqual[CORPSE]}) { 
    /if (${useMU}) /squelch /stick on 
    /attack on 
    } 
    } 
      }
Now my bot is buffing on tell or if someone tell in group "SV" but i want to add some other shortcuts like "bstbrell"

What must i add to this macro that he handle more shortcuts ?

Thanks
 
Rich (BB code):
if (${ChatText.Equal[Shortcutnamehere]}) 
{ /cast "Spellnamehere" }

This will not handle interrupts, fizzles etc. At the top of your macro if you have Spellroutines.inc....add an

Rich (BB code):
#include Spellroutines.inc

and make sure spell routines is in your macro folder too
 
Spellroutines is included.

I need to add a second shortcutname.

Rich (BB code):
/if (${ChatText.Equal[SV]}) (${ChatText.Equal[bstbrell]}) {

this dont work.

that is my problem.
 
Just use copies of my statement, that or make an OR comparison between the two.....or three, or four etc.....or I will do it later, have to run someplace quick

Edit: Turned out I didn't have to be away long...Okay this is using an OR comparison, which means if it sees any of these words it will do the same thing (Cast the same spell that has diff shortcut names)

Rich (BB code):
if (${ChatText.Equal[SV]} 
|| 
${ChatText.Equal[bstbrell]} 
|| 
${ChatText.Equal[bsthp]} 
|| 
${ChatText.Equal[hpbuff]}) {

And if you want to make more for yourself in the future just use || (Key above enter hold shift+use it) between each different shortcut etc. You only need *TWO* parentheses, one at the very beginning and one after that last shortcut (I put them in red)
 
if i replace my

Rich (BB code):
/if (${ChatText.Equal[SV]}) {

with your

Rich (BB code):
if (${ChatText.Equal[SV]} 
|| 
${ChatText.Equal[bstbrell]} 
|| 
${ChatText.Equal[bsthp]} 
|| 
${ChatText.Equal[hpbuff]}) {

he will on the shortcutname chainbuffing with no end.
 
Help with macro

Users who are viewing this thread

Back
Top
Cart