You should check the original thread you started:I need some help in programming my dirge to use sonic Barrier.
Basically it is a 3 stoneskin buff that can go on anyone once they go under 50% health. Seems like eq2bot could check for that on the dirge script.
declare temphl int local 1
declare barrier int local 0
if ${Me.GroupCount} > 1
{
do
{
if ${Me.Group[${temphl}].ToActor(exists)}
{
if ${Me.Group[${temphl}].ToActor.Health}<100 && !${Me.Group[${temphl}].ToActor.IsDead}
{
if !${Me.Group[${temphl}].ToActor.IsDead} && ${Me.Group[${temphl}].ToActor.Health}<50 && ${Me.Group[${temphl}].ToActor.Distance}<=${Me.Ability[Sonic Barrier].Range}
barrier:Set[${temphl}]
}
}
}
while ${temphl:Inc} <= ${Me.GroupCount}
if ${Me.Ability[Sonic Barrier].IsReady}
call CastSpellRange "Sonic Barrier" ${Me.Group[${barrier}].ToActor.ID}
}
A simple check each pulse won't slow anything down.Yeah see your point - how much does it slow down the script to have it checked each pulse? (which is what it should be)
hehe yes correct.. It was during this massive lag experience that Ama was able to track down that we were part of the lag issue, and I spent 2 days rewriting every function of mine that required it. To be honest, I don't know how anyone didn't get the axe cause of it. We had many scripts that were doing it. Either way.. Most if not all major scripts here have been fixed.YIKES
Which means they(SOE) would be able to tell that it was you causing the lag as well?
How long is a pulse in ISX?
This would be asking the bot to check to see if anyone in the group is under 50% health every pulse.
Isn't that basically what the healer bots do every pulse?
declare temphl int local 1
declare barrier int local 0
if ${Me.GroupCount} > 1
{
do
{
if ${Me.Group[${temphl}].ToActor(exists)}
{
if ${Me.Group[${temphl}].ToActor.Health}<100 && !${Me.Group[${temphl}].ToActor.IsDead}
{
if !${Me.Group[${temphl}].ToActor.IsDead} && ${Me.Group[${temphl}].ToActor.Health}<50 && ${Me.Group[${temphl}].ToActor.Distance}<=${Me.Ability[Sonic Barrier].Range}
barrier:Set[${temphl}]
}
}
}
while ${temphl:Inc} <= ${Me.GroupCount}
if ${Me.Ability[Sonic Barrier].IsReady}
call CastSpellRange "Sonic Barrier" ${Me.Group[${barrier}].ToActor.ID}
}
${Me.Ability[Sonic Barrier].Range}