summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-22 02:08:44 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-22 02:08:44 -0300
commitf45c768db01e21fbd4cbd206761c1a897f77b42f (patch)
treee54166047ab35fc6a439dd28b91a3925a097ed4b /npc/commands
parent8afc0eb07450ae6b39e898ad8c51cb4c097967fa (diff)
downloadserverdata-f45c768db01e21fbd4cbd206761c1a897f77b42f.tar.gz
serverdata-f45c768db01e21fbd4cbd206761c1a897f77b42f.tar.bz2
serverdata-f45c768db01e21fbd4cbd206761c1a897f77b42f.tar.xz
serverdata-f45c768db01e21fbd4cbd206761c1a897f77b42f.zip
LADY AND GENTLEMAN! I present you, @resync !
This command will cause server to send REAL coordinates to client, fixing LAG! It can only be used once every 1m30s, or immediately if you're at full health. Reason 1: Prevent *slide() from aborting monster attacks. Reason 2: Highly experimental. Reason 3: This command should never exist in first place.
Diffstat (limited to 'npc/commands')
-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: