• 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

Macro Help

deeken

New member
Making a very basic CH rot macro
Rich (BB code):
#include spell_routines.inc 
#include ChatParse.inc 


#event CH "#*#healchannel:1, 'Triggermessage#*#"
#event oor "#*#Your target is out of range, get closer!#*#"

Sub Main
/echo CH Rot Macro Started
:loop
   /if (!${Target.ID}) {
       /tar pc tank4
       /tar pc tank3
       /tar pc tank2
       /tar pc tank1
}
/doevents
/goto :loop

Sub event_CH
/keypress x

Sub event_oor
/beep
/beep

Its apparently something i've overlooked and i'm just to retarded to see it atm. Thanks.
 
A few things ...

Rich (BB code):
Sub event_CH
/keypress x

Why not use the function in spell_routines.inc ..

Rich (BB code):
Sub event_CH
/call cast "Complete Heal"

Why do you loop through four targets? The way it is written you heal would randomly select the tank, just depends which target your toon has targeted when it receives the chat event.
 
Rich (BB code):
#include spell_routines.inc 
#include ChatParse.inc 

#event CH "#*#healchannel:1, 'Triggermessage#*#"
#event oor "#*#Your target is out of range, get closer!#*#"

Sub Main
/echo CH Rot Macro Started
:loop
   /if (!${Target.ID}) {
       /tar pc tank4
       /tar pc tank3
       /tar pc tank2
       /tar pc tank1
}
/doevents
/goto :loop
/return

Sub event_CH
/call cast "Complete Heal"
/return

Sub event_oor
/beep
/beep
/return

Would fix it as long as you are not healing until you see that hotkey that tells you to heal.

Alternativily:

Rich (BB code):
#include spell_routines.inc
#include ChatParse.inc 

#event oor "#*#Your target is out of range, get closer!#*#"

Sub Main
/declare MobWeKilling int outer ${Target.ID}
/declare MobWeKillingName string local ${Target.CleanName}
/declare CountTo string outer 3s

/echo CH Rot Macro Started will count to ${CountTo} then heal.
/echo Will assist ${MobWeKillingName} to heal whoever has agro at that time.
/echo To switch tanks at any time prior to a heal press escape to clear target
:loop
   /if (!${Target.ID}) {
          /target ID ${MobWeKilling}
         /assist
}
/call CH
/doevents
/goto :loop
/return

Sub CH
/call cast "Complete Heal"
/delay ${CountTo}
/return

Sub event_oor
/beep
/beep
/return

Will cast heal, wait "CountTo" seconds and then cast again. It will assist the mob you have targeted when you start the macro to get a target if you don't have a target already.
 
Its for a CH rot so I want it to only heal when it sees the message in the CH channel and use the keypress thats assigned to my normal CH key. As for the targeting it should only make the targeting check if it looses target right ? Then target back down the tankline until it hits the last tank thats alive right ?

So now I have this that should work pending what Alatyami said about the targeting.
Rich (BB code):
#include spell_routines.inc 
#include ChatParse.inc 

#event CH "#*#healchannel:1, 'Triggermessage#*#"
#event oor "#*#Your target is out of range, get closer!#*#"

Sub Main
/echo CH Rot Macro Started
:loop
   /if (!${Target.ID}) {
       /tar pc tank4
       /tar pc tank3
       /tar pc tank2
       /tar pc tank1
}
/doevents
/goto :loop
/return

Sub event_CH
/keypress x
/return

Sub event_oor
/beep
/beep
/return
 
Macro Help

Users who are viewing this thread

Back
Top
Cart