• 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...

Devlin

Active member
Hey guys, so i used to be a-freaking-mazing at creating macros.. however I've now forgotten...

if anyone could, could you please help me with a macro?

What I am looking to do is..

Target mob, warp to it, attack till dead.
Recast disc after it fades and if i get below 30% HP to stop attacking and /keypress 6 and pause 8 seconds, /keypress 6 and pause 8 seconds, and then resume killing..

Also have a check where if anyone gets within 500 ft from me then FD and /afk Sleep until they leave that radius

Thanks.
 
Rich (BB code):
sub main
/declare CurrentTargetID int outer 0
:Loop
/if (!${Target.ID} && !${SpawnCount[npc id ${CurrentTargetID} radius 50]}<=0) /call GetTarget
/if (${Target.ID} && !${Me.Combat}) /call Combat
/call HPCheck
/if (${SpawnCount[pc radius 500]}>=2) /call FD
/goto :Loop
/return

sub FD
:FDLoop
/if (${SpawnCount[pc radius 500]}>=2 && ${Me.Standing}) /doability "Feign Death"
/if (${SpawnCount[pc radius 500]}<=1) {
/call Stand
/return
}
/delay 10s
/goto :FDLoop
/return

sub Stand
:Stand
/if (!${Me.Standing}) /stand
/delay 1s ${Me.Standing}
/if (!${Me.Standing}) /goto :Stand
/return

sub HPCheck
/if (${Me.PctHPs}<=30) {
/attack off
/keypress 6
/delay 8s
/call Stand
}
/call Combat
/return

sub GetTarget
/if (${Target.ID}) {
/target clear
/delay 3s !${Target.ID}
}
/target npc
/delay 3s ${Target.ID}
/varset CurrentTargetID ${Target.ID}
:DistanceCheck
/if (${Target.Distance} >=20) {
/warp target
/delay 1s ${Target.Distance}<=15
}
/if (${Target.Distance} >=20) /goto :DistanceCheck
/return

sub Combat
/if (${Target.ID}==${CurrentTargetID}) {
/if (!${Me.Standing}) /call Stand
/if (${Target.Distance}>=15) /warp target
/if (!${Me.Combat}) /attack on
/if (!${Stick.Active}) /stick 12
} else {
/target clear
/varset CurrentTargetID  0
}
/return

please note that since its not for me there are actually subs in this macro *gasp*
 
Last edited:
we have a problem at line 67, 37, and 7.

Also, it spams these errors while running.

Also, do you think you can add something to cast a disc if it fades? thanks.
 
now errors at 64, 37, 7.

Also, i changed "npc" to "dijo" and after killing 1 "dijo" it targets something completely different, AND then targets the "dijos" corpse... Also spams.. that varset failed and spams those errors at 64,37,7
 
Rich (BB code):
/if (${Target.Distance} >=20) /goto DistanceCheck

To
Rich (BB code):
/if (${Target.Distance} >=20) /goto :DistanceCheck

And instead of /target Dijo, do /target Dijo NPC. This will make it target a mob instead of a corpse.

*edit* if that doesn't work, try /target NPC Dijo. *edit*
 
ok so, still gives me errors at line 62 (its saying "/varset CurrentTargetID NULL) and it says "/varset failed, variable 'CurrentTargetID' not found.

line 36 with (HPCheck): /call Combat

and at line 6 with /call HPCheck

Im assuming this problem is relating to the /varset not working because line 7 error with /call HPCheck is directly correlated with the HPCheck /call Combat with the /varset problem..
 
grrrrr, can anyone else try to help with this? i don't know why it isnt working.

Sidd, are there any plugins required for this to work? Im playing on EQEMU and have a very limited supply of plugins
 
there shouldn't be, no. My only guess is something is going on with mq2 and not applying a global variable to all of the subs. I'm not sure exactly whats going on.
 
ok, well.. This is working kinda..

Rich (BB code):
Sub Main
			:loop
   	/tar npc dijo
	/delay 1s
	/warp target
	/if (${SpawnCount[pc radius 2000]}>=2) /call FD
	/attack on
			/goto :loop
		/return

sub FD
:FDLoop
/beep
/beep
/beep
/if (${SpawnCount[pc radius 2000]}>=2 && ${Me.Standing}) /doability "Feign Death"
/if (${SpawnCount[pc radius 2000]}<=1) {
/call Stand
/return
}
/delay 10s
/goto :FDLoop
/return

sub Stand
:Stand
/if (!${Me.Standing}) /stand
/delay 1s ${Me.Standing}
/if (!${Me.Standing}) /goto :Stand
/return

Only problem is that if i am currently killing a dijo it just goes to the next, and if there are no dijo's up it just sits there and tries to warp to no target...

Think you can fix this sidd? AND also, think you could add a check for a disc in there too?

Thanks.
 
I cant tell you the name of it, because if someone saw it (i play an eqemu server) they would instantly know who i was... but the buff bar it goes into? Im confused.. it stays in the Combat Abilities window.. btu i guess it would go into the Buff Effects, not the short durations
 
not 100% certain, but i think this will work. As for your macro above change the following things
Rich (BB code):
/tar npc dijo
/delay 1s
/warp target
goes to
Rich (BB code):
/if (!${Target.ID} || ${Target.Type.NotEqual[NPC]}) {
    /if (${SpawnCount[npc dijo]}<=0) {
    /target npc
/delay 2s ${Target.ID}
/if (${Target.ID})	/warp target
    } else {
    /tar npc dijo
/delay 2s ${Target.ID}
/if (${Target.ID})	/warp target
    }
}

add in a call for this sub and of course this sub :)

Rich (BB code):
Sub CheckBuff
/declare BUFFNAME string local INSERTNAMEHERE
/declare AbilityName string local INSERTNAMEHERE
/if (!${Me.Buff[${BUFFNAME}].ID}) /doability ${AbilityName}
/return
 
Rich (BB code):
/if (!${Target.ID} || ${Target.Type.NotEqual[NPC]}) {
    /if (${SpawnCount[npc dijo]}<=0) {
    /target npc
/delay 2s ${Target.ID}
/if (${Target.ID})	/warp target
    } else {
    /tar npc dijo
/delay 2s ${Target.ID}
/if (${Target.ID})	/warp target
    }
}

doesnt work, sends me to another NPC and tries to attack it.
 
macro...

Users who are viewing this thread

Back
Top
Cart