diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-12 16:37:08 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-12 19:21:46 -0400 |
commit | dc9c6ac482b353fe9a4b1e1628f691c487a517fc (patch) | |
tree | 655b6616766410e8880e8395298811beba8c742a /world/map/npc/commands/destroynpc.txt | |
parent | d55ee9ec4a43cbc7d52619b6a473a4760bb9acdb (diff) | |
download | serverdata-dc9c6ac482b353fe9a4b1e1628f691c487a517fc.tar.gz serverdata-dc9c6ac482b353fe9a4b1e1628f691c487a517fc.tar.bz2 serverdata-dc9c6ac482b353fe9a4b1e1628f691c487a517fc.tar.xz serverdata-dc9c6ac482b353fe9a4b1e1628f691c487a517fc.zip |
add default permissions
Diffstat (limited to 'world/map/npc/commands/destroynpc.txt')
-rw-r--r-- | world/map/npc/commands/destroynpc.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/commands/destroynpc.txt b/world/map/npc/commands/destroynpc.txt index fcda52ef..1ebede9e 100644 --- a/world/map/npc/commands/destroynpc.txt +++ b/world/map/npc/commands/destroynpc.txt @@ -1,7 +1,7 @@ -|script|@destroynpc|32767 { callfunc "argv_splitter"; - if (GM < get(.destroynpc, "GM") && GM < G_SYSOP) + if (GM < CMD_DESTROYNPC && GM < G_SYSOP) goto L_GM; set .@id, getnpcid(@argv$[0]); @@ -13,7 +13,7 @@ gmlog "@destroynpc " + @args$; message strcharinfo(0), "destroynpc : The operation succeeded."; debugmes "!!! => npc destroyed: `"+@argv$[0]+"` ("+.@id+")"; - if (1==1) destroy .@id; // FIXME: allow destroy to work as a non-terminator when arg0 is given + if (1==1) destroy .@id; // FIXME: allow destroy to work as a non-terminator when arg0 is given (TMWA) end; L_Confirm: @@ -26,7 +26,7 @@ L_Failed: end; L_GM: - message strcharinfo(0), "destroynpc : GM command is level "+ get(destroynpc, "GM") +", but you are level " + GM; + message strcharinfo(0), "destroynpc : GM command is level "+ CMD_DESTROYNPC +", but you are level " + GM; end; OnInit: |