Hi,
I have written a script to detect if certain effects are cast on a raid member.
The basic logic is this:
effectname:Set["Jester's Cap"]
Actor[pc,exactname,${toonname}]:InitializeEffects
for (RaidIndex:Set[1] ; ${RaidIndex}<=24 ; RaidIndex:Inc)
{
toonname:Set[${Me.Raid[${RaidIndex}].Name}]
EffectOn:Set[${Actor[pc,exactname,${toonname}].Effect[${effectname}](exists)}]
if ${EffectOn}
{
DoSomething.......
}
}
The main issue I am seeing right now is that my script won't detect the effect for at least 10 seconds. It inspects each actor for the effect quite a few times before seeing it. I am running the script in a loop using "wait 10" (wait one second). I initially assumed this was some kind of server lag, however I can see the effect immediately in the target effects window if I target them, so the client should already know it is on them.
Any ideas?
Thanks,
Z
I have written a script to detect if certain effects are cast on a raid member.
The basic logic is this:
effectname:Set["Jester's Cap"]
Actor[pc,exactname,${toonname}]:InitializeEffects
for (RaidIndex:Set[1] ; ${RaidIndex}<=24 ; RaidIndex:Inc)
{
toonname:Set[${Me.Raid[${RaidIndex}].Name}]
EffectOn:Set[${Actor[pc,exactname,${toonname}].Effect[${effectname}](exists)}]
if ${EffectOn}
{
DoSomething.......
}
}
The main issue I am seeing right now is that my script won't detect the effect for at least 10 seconds. It inspects each actor for the effect quite a few times before seeing it. I am running the script in a loop using "wait 10" (wait one second). I initially assumed this was some kind of server lag, however I can see the effect immediately in the target effects window if I target them, so the client should already know it is on them.
Any ideas?
Thanks,
Z
Last edited: