diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 16:56:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 16:56:06 -0300 |
commit | 3624d09562343863a91f5ff244cd1c645dbaabaa (patch) | |
tree | 0fbdcea1a4c9749b9482d639ef9ae87115e6ad50 /npc | |
parent | c8be0b78945ef07b6f0be4126e37ff41a48466bf (diff) | |
download | serverdata-3624d09562343863a91f5ff244cd1c645dbaabaa.tar.gz serverdata-3624d09562343863a91f5ff244cd1c645dbaabaa.tar.bz2 serverdata-3624d09562343863a91f5ff244cd1c645dbaabaa.tar.xz serverdata-3624d09562343863a91f5ff244cd1c645dbaabaa.zip |
Fix @ipcheck
Diffstat (limited to 'npc')
-rw-r--r-- | npc/012-1/guards.txt | 6 | ||||
-rw-r--r-- | npc/commands/ipcheck.txt | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index 957395f39..6de6a60df 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -334,7 +334,8 @@ OnVictory: makeitem(StrangeCoin, 1, "012-1", .@x, .@y); Karma=Karma+1; $MOST_HEROIC$=strcharinfo(0); - bg_destroy(); + bg_destroy(1); + bg_destroy(2); end; OnReward: @@ -371,7 +372,8 @@ OnPlayer2Death: removemapflag("012-1", mf_nocommand); removemapflag("012-1", mf_battleground); killmonster("012-1", "All"); - bg_destroy(); + bg_destroy(1); + bg_destroy(2); } end; diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt index 756e64a4f..eab4e825a 100644 --- a/npc/commands/ipcheck.txt +++ b/npc/commands/ipcheck.txt @@ -1,6 +1,7 @@ // TMW2 script // Author: Jesusalva <admin@tmw2.org> // +// @ipcheck <player_name> // #ipcheck <player_name> // // Returns user IP @@ -10,8 +11,11 @@ end; OnCall: - dispbottom str(getcharip()); - debugmes strcharinfo(0)+": IP "getcharip(); + if (.@atcmd_numparameters == 0) + .@request$ = strcharinfo(0); + else + .@request$ = implode(.@atcmd_parameters$, " "); + dispbottom strcharinfo(0)+": IP "getcharip(.@request$); end; OnInit: |