• 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

Question - Need help with Slow Loop Me.XTarget

Tristhan

New member
Joined
Mar 7, 2017
RedCents
Hello,

may i ask for some help with a macropart -> beginner here.
I want to slow all (aggroed) mobs in my Xtarget window (aggro list).
If all Targets on the Xtargets have different name it works fine.
But as soon as the Xtarget have the same name the macro will slow the first mob multiple times (as many times as Xtarget counts) and wont fetch/target the next Xtarget.
Any advice is welcome ! Thank you

/if (${Me.XTarget}) {
/declare i int local 0
/for i 1 to ${Me.XTarget}
/echo Name ${Spawn[${Me.XTarget[${i}]}].CleanName}, ID ${Spawn[${Me.XTarget[${i}]}].ID}
/casting "Slow" -targetid|${Spawn[${Me.XTarget[${i}]}].ID}
/next i
}
 
I think ${Me.XTarget[I]} returns the spawn, so you don't have to look it up again through the Spawn TLO.

I would change your casting line to :
/casting "Slow" -targetid|${Me.XTarget[${i}].ID}
 
Hello,

may i ask for some help with a macropart -> beginner here.
I want to slow all (aggroed) mobs in my Xtarget window (aggro list).
If all Targets on the Xtargets have different name it works fine.
But as soon as the Xtarget have the same name the macro will slow the first mob multiple times (as many times as Xtarget counts) and wont fetch/target the next Xtarget.
Any advice is welcome ! Thank you

/if (${Me.XTarget}) {
/declare i int local 0
/for i 1 to ${Me.XTarget}
/echo Name ${Spawn[${Me.XTarget[${i}]}].CleanName}, ID ${Spawn[${Me.XTarget[${i}]}].ID}
/casting "Slow" -targetid|${Spawn[${Me.XTarget[${i}]}].ID}
/next i
}
I would argue it's probably not doing what you think it's doing. Because you're not waiting for it to start and finish casting.

Code:
/if (${Me.XTarget}) {
    /declare i int local 0
    /for i 1 to ${Me.XTarget}
        /echo Name ${Spawn[${Me.XTarget[${i}]}].CleanName}, ID ${Spawn[${Me.XTarget[${i}]}].ID}
        /casting "Slow" -targetid|${Spawn[${Me.XTarget[${i}]}].ID}
        /delay 2s ${Me.Casting.ID}
        /delay 5s !${Me.Casting.ID}
    /next i
}

Try this.
 
I think ${Me.XTarget[I]} returns the spawn, so you don't have to look it up again through the Spawn TLO.

I would change your casting line to :
/casting "Slow" -targetid|${Me.XTarget[${i}].ID}

That was the problem, thank you very much !
 
Question - Need help with Slow Loop Me.XTarget

Users who are viewing this thread

Back
Top
Cart