diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/commands/ipcheck.txt | 20 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
2 files changed, 21 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; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index 855348647..b8e33014e 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -62,6 +62,7 @@ "npc/commands/debug-skill.txt", "npc/commands/debug.txt", "npc/commands/event.txt", +"npc/commands/ipcheck.txt", "npc/commands/kami.txt", "npc/commands/motd-debug-text.txt", "npc/commands/motd.txt", |