• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Will this work for what I am trying to do? (1 Viewer)

nijhal

Member
Joined
Feb 22, 2006
RedCents
10¢
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