by changing
callfunc "Debug";
to
callfunc "!debug";
a safe way to disable one of the Debug NPC's?
I tried using @disablenpc and it worked fine, but if server is shutdown and restarted the NPC is automatically re-enabled.
So I tried this,
callfunc "!debug";
editing the debug.txt like this to disable Debug1
Code: Select all
042-2.gat,30,26,0|script|Debug0|154,
{
callfunc "Debug";
end;
OnInit:
if (!debug)
disablenpc "Debug0";
}
001-1.gat,41,29,0|script|Debug1|154,
{
callfunc "!debug";
end;
OnInit:
if (!debug)
disablenpc "Debug1";