summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-13 23:33:56 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-13 23:33:56 -0300
commitbfa7c60ac98af08609cc0057558027afa3427f68 (patch)
tree5c79ec561ee0887c0c97b035ccf66fee4cc19b19 /npc/commands
parente4dd8127069b3540d74135a057217e7920bbdc24 (diff)
downloadserverdata-bfa7c60ac98af08609cc0057558027afa3427f68.tar.gz
serverdata-bfa7c60ac98af08609cc0057558027afa3427f68.tar.bz2
serverdata-bfa7c60ac98af08609cc0057558027afa3427f68.tar.xz
serverdata-bfa7c60ac98af08609cc0057558027afa3427f68.zip
Reduced (?) safeguards. @resync should be safe now.
Diffstat (limited to 'npc/commands')
-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: