From 8ec2704d20444c42fcf63a562bcb2a5ecc296810 Mon Sep 17 00:00:00 2001 From: mekolat Date: Wed, 29 Apr 2015 10:12:47 -0400 Subject: deprecate debug npcs --- world/map/npc/functions/debug.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/world/map/npc/functions/debug.txt b/world/map/npc/functions/debug.txt index 5affb8f0..d74289f1 100755 --- a/world/map/npc/functions/debug.txt +++ b/world/map/npc/functions/debug.txt @@ -2,7 +2,12 @@ function|script|Debug { - goto L_Begin; + if(!@debug_npc) goto L_Begin; + mes "The debug NPCs have been deprecated. Please use this magic spell instead:"; + mes ""; + mes "%%E ##a"+ getspellinvocation("debug0") +"##0"; + set @debug_npc, 0; + close; L_Begin: set @debug_mask, 65535; @@ -918,6 +923,7 @@ L_Close: 029-2,30,26,0|script|Debug#0|154 { + set @debug_npc, 1; callfunc "Debug"; end; OnInit: @@ -928,6 +934,7 @@ OnInit: 001-1,53,47,0|script|Debug#1|154 { + set @debug_npc, 1; callfunc "Debug"; end; OnInit: @@ -938,6 +945,7 @@ OnInit: 009-1,52,33,0|script|Debug#2|154 { + set @debug_npc, 1; callfunc "Debug"; end; OnInit: @@ -948,6 +956,7 @@ OnInit: 020-1,75,85,0|script|Debug#3|154 { + set @debug_npc, 1; callfunc "Debug"; end; OnInit: @@ -956,18 +965,9 @@ OnInit: end; } -017-9,21,24,0|script|Debug#4|154 -{ - callfunc "Debug"; - end; -OnInit: - if (!debug) - disablenpc "Debug#4"; - end; -} - 027-2,125,103,0|script|Debug#5|154 { + set @debug_npc, 1; callfunc "Debug"; end; OnInit: -- cgit v1.2.3-60-g2f50