summaryrefslogtreecommitdiff
path: root/world/map/npc/commands/destroynpc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/commands/destroynpc.txt')
-rw-r--r--world/map/npc/commands/destroynpc.txt6
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: