blob: f96e1e05f4171b2c98311650966dc61721c9cde7 (
plain) (
tree)
|
|
// TMW2 script
// Author: Jesusalva <admin@tmw2.org>
//
// Introduces @resync
//
// It'll cast slide to your own position
// Hopefully making client update your real position without causing server warning
- script @resync 32767,{
end;
OnCall:
if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp))
dispbottom l("Not resync'ing to prevent flood.");
getmapxy(.@m$, .@x, .@y, 0);
slide .@x, .@y;
@rsync_delay=gettimetick(2)+90;
end;
OnInit:
bindatcmd "resync", "@resync::OnCall", 0, 99, 0;
end;
}
|