• 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

Question - casting a spell help.

redplayer

New member
hello, havent played in 6 months or so, just got this compile.

has spell casting been changed ? any time i cast a spell the macro ends.

for EG: below is my buff pet sub.....soon as it starts to cast the mac ends...no crashing, just says " the current macro has ended "
(its doing this on any spell i try to cast.)

sub Buffpet

/echo Hasting The Pet...

/if (!${Me.Pet.ID}) /return

:here

/if (${Me.PctMana}<5) {
/if (${Target.ID}) /return
/delay 5s
/goto :here
}

/if (${Target.ID}) /return

/if (${Me.Pet.ID} && !${Me.PetBuff[${petbuff}]}) {

/echo Casting ${petbuff}...

/call Cast ${petbuff} gem7 5s
}

/return

update, after trying up date and casting a few more times... the error im getting is > subroutine661 wasnt found < ... any help here? im not sure what this is about..i have a file called spell_routines.inc in my macro folder.any spell i cast gives this error.

any help would be appreciated .
 
anyone able to paste in a couple of there casting lines so i can try to see the difference and fix mine?.thanks in advance.

ive reinstalled my system,reinstalled mq..and i still have the same problems.

at this point its becoming a frustrating waste of time to even play eq with mq2.
 
use
Rich (BB code):
/Casting ${petbuff} gem7
your making a call to spell routines in your current example which is why your getting that subroutine 661 not found

here is a casting example
Rich (BB code):
#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})   
      /casting "Complete Healing"
      /delay 12
      /sit
      /if (${castNum}==5) {
            /g ${Me.PctMana} Mana
            /rs ${Me.PctMana} Mana
            /chat ${manaNum} ${Me.PctMana} Mana
            /varset castNum 0
      }

}

/return
 
Question - casting a spell help.

Users who are viewing this thread

Back
Top
Cart