From dc9c6ac482b353fe9a4b1e1628f691c487a517fc Mon Sep 17 00:00:00 2001 From: mekolat Date: Tue, 12 Apr 2016 16:37:08 -0400 Subject: add default permissions --- world/map/npc/commands/destroynpc.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world/map/npc/commands/destroynpc.txt') 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: -- cgit v1.2.3-70-g09d2