From f45c768db01e21fbd4cbd206761c1a897f77b42f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 Jun 2018 02:08:44 -0300 Subject: 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. --- npc/commands/resync.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/commands') 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: -- cgit v1.2.3-60-g2f50