summaryrefslogtreecommitdiff
path: root/npc/commands/ipcheck.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 16:48:30 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 16:48:30 -0300
commitc8be0b78945ef07b6f0be4126e37ff41a48466bf (patch)
tree20f053d0a1bedd8cc5114191193e4eacc4966b56 /npc/commands/ipcheck.txt
parentc1070e4ea1e4eadaff4aa06c531c7eb8e818f489 (diff)
downloadserverdata-c8be0b78945ef07b6f0be4126e37ff41a48466bf.tar.gz
serverdata-c8be0b78945ef07b6f0be4126e37ff41a48466bf.tar.bz2
serverdata-c8be0b78945ef07b6f0be4126e37ff41a48466bf.tar.xz
serverdata-c8be0b78945ef07b6f0be4126e37ff41a48466bf.zip
@ipcheck prototype
Diffstat (limited to 'npc/commands/ipcheck.txt')
-rw-r--r--npc/commands/ipcheck.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt
new file mode 100644
index 000000000..756e64a4f
--- /dev/null
+++ b/npc/commands/ipcheck.txt
@@ -0,0 +1,20 @@
+// TMW2 script
+// Author: Jesusalva <admin@tmw2.org>
+//
+// #ipcheck <player_name>
+//
+// Returns user IP
+
+
+- script @ipcheck 32767,{
+ end;
+
+OnCall:
+ dispbottom str(getcharip());
+ debugmes strcharinfo(0)+": IP "getcharip();
+ end;
+
+OnInit:
+ bindatcmd "ipcheck", "@ipcheck::OnCall", 80, 80, 1;
+ end;
+}