summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/resync.txt6
1 files changed, 4 insertions, 2 deletions
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: