Is that ongoing? So lets say you do wear it while you are frozen, it will unfreeze you after 2 seconds. If you get frozen again, you have to unequip and equip it again for the effect?
Yes, that's what he asked for isn't it? OnEquip??? I could do it the other way with a timer or loops
Could also do it from autoscript which would take effect each time he attacks. I'm just trying to think of ways to reduce the load...
Also have to say the @option 02 freeze isn't detected with getstatus(SC_FREEZE) but the monster version is.
// OnEquip{ doevent("Oven_Effect::OnTock"); } OnUnEquip{ deltimer("Oven_Effect::OnTock"); }
- script Oven_Effect -1,{
OnTock:
if(getstatus(SC_FREEZE)) { sleep2 2000; sc_end(SC_FREEZE); }
addtimer .delay,"Oven_Effect::OnTock"; end;
OnInit:
set(.delay,5000); //Delay in Milliseconds.
}
So sir, this one is the ongoing script whenever your frozen, while wearing the item, it will just last for 2 secs right?