• 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 - Automate switching of targets

calaxa

Member
Wondering if there is a way to automatically switch targets while using KA?

Here is the scenario:

Assisting MT on a mob but on new mob spawn, I want them to switch automatically.

I've been playing with something like this in individual holies:

Rich (BB code):
holyshit50=/if (${Bool[${Spawn[npc radius 100 mob_that_spawns]}]}) /multiline ; /target mob_that_spawns ; /stick 15 loose ; /attack ; /gsay I'm attacking this mob_that_spawns

Problem with this is, they can't be running KA since KA will want to go back to first target. Also, this is probably horribly inefficient since it will retarget while spawn is up.

I've tried having one toon announce a trigger such as like this:

Rich (BB code):
holyshit50=/if (${Bool[${Spawn[npc radius 100 mob_that_spawns]}]}) /bc Hey this mob spawned.  Go kill it.

with corresponding event

Rich (BB code):
[My Event]
trigger=#*#Hey this mob spawned.  Go kill it.#*#
command=/bca //multiline ; /target mob_that_spawns ; /stick 15 loose ; /attack

Same problem.....KA will want to re-engage original target and the toon spotting the spawn will spam repeatedly while spawn condition is true.

Looking for some ideas on how to implement this automatically.
 
Somewhat related issue. Some HA's you fight a mob to a certain percentage and it becomes non-aggressive and you want to switch to something else, or you charm a mob after combat has started yet KA will keep everyone on the original target.

Need some way to tell KA to ignore the current target and move on. Generally when i'm on a step like this in an HA I have the /endmac and drive the tank until the step is complete.
 
Well in attended play you can do /bc Switch Target but I am looking for full automation or for the MT to continue engaging one mob while all others switch.
 
This would be possible if you could get the TargetOfTarget from the Spawn TLO. The other thing you could do in KA or a macro, is use the spawn TLO and monitor the spawns PctHps. if a spawns PctHps is greater than a specific level then target it and go beat on it. you could add checks to keep switching to the spawn with the highest hps till they are all below a certain level then just stay on one till dead. Then move on to the next one.
 
I added this to the end of the combat sub routine because I got sick of manually messing with targets while doing missions that have mobs who drop aggro during the fight.

Rich (BB code):
 |-> Modified the ending condition to account for mobs no longer on aggro
/if (${Spawn[${MyTargetID}].Type.NotEqual[Corpse]} || ${Spawn[${MyTargetID}].ID} || ${Melee.Status.NotEqual[FEIGNING]}) {
	/declare mstep int local
	/for mstep 1 to ${XSlotTotal}
	     /if (${Me.XTarget[mstep].ID}==${Spawn[${MyTargetID}].ID}) /goto :Attack
        /next mstep
}

Original line was:
Rich (BB code):
/if (${Spawn[${MyTargetID}].Type.NotEqual[Corpse]} || ${Spawn[${MyTargetID}].ID} || ${Melee.Status.NotEqual[FEIGNING]}) /goto :Attack
 
Question - Automate switching of targets

Users who are viewing this thread

Back
Top
Cart