• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Problem - (Update) I fixed it "Need assistance with a simple but old CH macro =)"

Joined
Feb 28, 2017
RedCents
108¢
Update: Changed the include to MQ2Cast_Spell_Routines.inc and the call to cast CH to "/call MQ2Cast "Complete Heal" gem2" and it now works again. Some error going on with the spell_routines.inc I guess.

This very simplistic CH macro used to work perfectly a few years ago, but I'm sure something has changed with MQ since then =) Any assistance would be appreciated. I'm sure it's something minor that changed, as the macro was very basic to begin with.

When I run the below macro I get the following error now (I left off the first output line in the MQ2 window with the name of the next cleric):

Capture.PNG

Here is the macro:

INI:
#Turbo
#Event go "#*# next (#1#)#*#"
#include spell_routines.inc

Sub Main

/declare nextCler outer
/declare waitTime int outer
/declare chatNum int outer
/declare castNum int outer
/declare manaNum int outer

/if (!${Defined[Param0]}) {
    /echo [CH] You must Specify the next cleric
    /echo [CH] Unloading
    /endmacro
}

/if (!${Defined[Param1]}) {
    /echo [CH] You must Specify the delay
    /echo [CH] Unloading
    /endmacro
}

/if (!${Defined[Param2]}) {
    /echo [CH] You must Specify the CH rot channel number
    /echo [CH] Unloading
    /endmacro
}

/if (!${Defined[Param3]}) {
    /echo [CH] You must Specify the mana report channel number
    /echo [CH] Unloading
    /endmacro
}


/varset castNum 0
/varset nextCler ${Param0}
/echo Next Cleric in Rotation: ${nextCler}
/varset waitTime ${Param1}
/echo CH Rot Timer: ${waitTime}s
/varset chatNum ${Param2}
/echo Chat Number: ${chatNum}
/varset manaNum ${Param3}
/echo Mana report Chat: ${manaNum}


:loop
/doevents
/goto :loop

/return


Sub event_go(line, who)

/if (${who.Equal[${Me}]}) {
      /varset castNum ${Math.Calc[${castNum}+1]}
      /echo Waiting ${waitTime} seconds to CH
      /delay ${waitTime}s
      /stand
      /chat ${chatNum} CH on %t, next (${nextCler})
      /call cast "Complete Heal"
      /sit
      /if (${castNum}==5) {
            /g ${Me.PctMana} Mana
            /rs ${Me.PctMana} Mana
            /chat ${manaNum} ${Me.PctMana} Mana
            /varset castNum 0
      }

}

/return
 
Last edited:
make sure you have an updated (from the redguides downloader) cause the line numbers arent matching up to spell routines
 
Updated with new image. This is the output with the spell_routines.inc from the downloader.

Once the macro is initiated, it looks for it's name to cast the CH. Once that happens, it waits the given delay and the casts CH. Then the error pops up and the macro stops.
 
It's working, but I'm getting a lot of errors spamming. The errors are actually different to yours, so I suspect maybe we have different macros.

I've attached a copy of the code. I've added a separate routine in there for a mana check.
 

Attachments

No we are using two different macs.

I posted the actual mac above - only 75 lines

It appears to run up to the:

/call cast "Complete Heal"

Casts the CH and then craps out.

The problem seems to be in spell-routines. Wondering if I can just edit the cast in some way to just cast a spell gem # and avoid spell_routines. Or I see if MQ2Cast_Spell_Routines.inc would make a difference. Not sure how to do that though.
 
Last edited:
Yes, sorry I just blindly assumed there wouldn't be many of these macros about anymore :)

I'm assuming it's referencing an old spellroutines file where the sub-routine is no longer present.
 
I tried using the spell_routines.inc that I used back when the mac was working and the current one, while the lines in the output are different, it's the same errors.
 
i may be wrong, but i use /casting for everything.

change the /call cast "Complete Heal"

to

/casting Complete Heal
 
Problem - (Update) I fixed it "Need assistance with a simple but old CH macro =)"

Users who are viewing this thread

Back
Top
Cart