summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-22 02:04:55 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-22 02:04:55 -0300
commit8afc0eb07450ae6b39e898ad8c51cb4c097967fa (patch)
tree783af1c3314c73dd57b2f13e86fd60817c2ce3e3 /npc/commands
parent742a586d6beac4a8da08e2a649610f37a385bf6f (diff)
downloadserverdata-8afc0eb07450ae6b39e898ad8c51cb4c097967fa.tar.gz
serverdata-8afc0eb07450ae6b39e898ad8c51cb4c097967fa.tar.bz2
serverdata-8afc0eb07450ae6b39e898ad8c51cb4c097967fa.tar.xz
serverdata-8afc0eb07450ae6b39e898ad8c51cb4c097967fa.zip
I want to check how powerful or good *slide() is.
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/resync.txt21
-rw-r--r--npc/commands/warp.txt3
2 files changed, 22 insertions, 2 deletions
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 <admin@tmw2.org>
+//
+// 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;
}