From 8afc0eb07450ae6b39e898ad8c51cb4c097967fa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 Jun 2018 02:04:55 -0300 Subject: I want to check how powerful or good *slide() is. --- npc/commands/resync.txt | 21 +++++++++++++++++++++ npc/commands/warp.txt | 3 +-- npc/scripts.conf | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 npc/commands/resync.txt (limited to 'npc') diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt new file mode 100644 index 000000000..84e1f3ee6 --- /dev/null +++ b/npc/commands/resync.txt @@ -0,0 +1,21 @@ +// TMW2 script +// Author: Jesusalva +// +// Introduces @resync +// +// It'll cast slide to your own position +// Hopefully making client update your real position without causing server warning + + +- script @resync 32767,{ + end; + +OnCall: + getmapxy(.@m$, .@x, .@y, 0); + slide .@x, .@y; + end; + +OnInit: + bindatcmd "resync", "@resync::OnCall", 0, 99, 0; + end; +} diff --git a/npc/commands/warp.txt b/npc/commands/warp.txt index 41a6af197..3989061a9 100644 --- a/npc/commands/warp.txt +++ b/npc/commands/warp.txt @@ -88,8 +88,7 @@ OnInit: .count = getarraysize(.aliases$[0]); - if (debug > 0) - { + if (debug > 0) { bindatcmd "w", "@w::OnCall", 0, 2, 0; end; } diff --git a/npc/scripts.conf b/npc/scripts.conf index 7b9bfd237..b0daa42ab 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -66,6 +66,7 @@ "npc/commands/motd-debug-text.txt", "npc/commands/motd.txt", "npc/commands/rate-management.txt", +"npc/commands/resync.txt", "npc/commands/scheduled-broadcasts.txt", "npc/commands/super-menu.txt", "npc/commands/magic.txt", -- cgit v1.2.3-70-g09d2