summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/resync.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt
index 84e1f3ee6..f96e1e05f 100644
--- a/npc/commands/resync.txt
+++ b/npc/commands/resync.txt
@@ -11,8 +11,11 @@
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: