• 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

Will this work for what I am trying to do?

nijhal

Member
Ok I want some of my macros to make whoever is targeted the main assist in the whole macro. I have been reading macros and I think this is what I need to have....

Let me know if this is right...

Rich (BB code):
|Sample of macro to target MA /mac startmacro and target will be the Main Assist.


Sub Main

   /declare RV_Assistat     int   outer 96
   /declare MAssist       string  outer ${Target.CleanName}
   /declare MAssistID       int   outer ${Target.ID}

   :assist
   /doevents
   /assist ${MAssist}
   /call GMCheck
   /goto :assist
   /return




Sub Nuke
   /if (${Target.Type.NotEqual["NPC"]}) /return
   /cast "Tempest Wind"
   /delay 4s
   /return


Sub GMCheck
/doevents
   /if (${Spawn[gm].ID}) {
      /beep
      /beep
      /beep
     
      /echo GM has entered the zone!
      /echo FUCK HIM but ending the macro...

      /keypress forward
      /keypress back

      /quit
      /endmacro
   }
   
/return

So in the event this starts you would have the MA targeted and then start the macro. Then all assist calls with

Rich (BB code):
/assist ${MAssist}
would assist the person targeted when the macro was started?

also if I wanted to start the macro with...

/macro assist MA_Name01

What would I change?

N
 
First off yes, that will work fine... second give me a couple mins i will edit my post with some code... no garentee the code itself will work, but you will get the idea.

Rich (BB code):
sub main(sting mainassist,string othersomething)
    /if (!${Defined[${mainassist}]) /varset mainassist ${Target.CleanName}
    /echo Your assist is ${mainassist} and the other crap your threw in is ${othersomething}
/return

Another way to do it is:

Rich (BB code):
sub main
    /if (${Defined[Param0]) /declare mainassist string outer ${Param0}
    else /declare mainassist string outer ${Target.CleanName}
/return
It may be ${Param[0]} I forget and am not looking at documentation.
 
Will this work for what I am trying to do?

Users who are viewing this thread

Back
Top
Cart