summaryrefslogtreecommitdiff
path: root/npc/commands/ipcheck.txt
diff options
context:
space:
mode:
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;
+}