Quote:
|
Code:
function Disease() |
Ok, tested the plugin today, works fine, if Jackdaw is ok with it I will publish it in a few days.
|
Catching effects
There is 2 ways to catch an effect on the player...
- 1st one as above is to scan "EffectList = LocalPlayer:GetEffects();" at regular intervals (ie: onTimer or on Refresh ) - 2nd, I'd say a cleaner way is to catch events AddCallback(EffectList, "EffectAdded", MyEffectChangedCallback); and "EffectRemoved" |
Quote:
I used this: EffectList = Turbine.Gameplay.LocalPlayer:GetInstance():GetEffe cts(); and this AddCallback(EffectList,"EffectAdded", --function to handle event--); So pretty much the same. EffectWarn works very fast and by the time 5 evenings at Saruman show that it is reliable (anyhow for me). |
All times are GMT -5. The time now is 02:35 AM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI