From bfa7c60ac98af08609cc0057558027afa3427f68 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 13 Jul 2018 23:33:56 -0300 Subject: Reduced (?) safeguards. @resync should be safe now. --- npc/commands/resync.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'npc/commands/resync.txt') diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt index 8e7b5e02e..696f68277 100644 --- a/npc/commands/resync.txt +++ b/npc/commands/resync.txt @@ -15,11 +15,13 @@ OnCall: dispbottom l("Impossible to resync: You are dead."); end; } - if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp)) + if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp)) { dispbottom l("Not resync'ing to prevent flood."); + end; + } getmapxy(.@m$, .@x, .@y, 0); slide .@x, .@y; - @rsync_delay=gettimetick(2)+90; + @rsync_delay=gettimetick(2)+rand(6,15); end; OnInit: -- cgit v1.2.3-70-g09d2