From 86977d79269408a371384e61111c3a9cf6e87b0c Mon Sep 17 00:00:00 2001 From: Asheraf Date: Sun, 28 Aug 2016 17:03:57 +0100 Subject: *strnpcinfo now uses constants - NPC_NAME for the whole npc name including hidden part - NPC_NAME_VISIBLE for the visible part of the npc name - NPC_NAME_HIDDEN for the hidden part of the npc name - NPC_NAME_UNIQUE for the npc unique name - NPC_MAP for npc map --- npc/pre-re/jobs/novice/novice.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/pre-re/jobs') diff --git a/npc/pre-re/jobs/novice/novice.txt b/npc/pre-re/jobs/novice/novice.txt index 369e98c4e..afea49143 100644 --- a/npc/pre-re/jobs/novice/novice.txt +++ b/npc/pre-re/jobs/novice/novice.txt @@ -2661,7 +2661,7 @@ new_1-3,95,30,4 script Trainer#nv1::NovHoffman 4_M_02,{ mes "I see, then let me guide"; mes "you to a training ground that has stronger monsters. May God be with you..."; next; - if (strnpcinfo(2) == "nv1") { + if (strnpcinfo(NPC_NAME_HIDDEN) == "nv1") { if (rand(2)) { warp "new_2-3",96,21; } @@ -2681,7 +2681,7 @@ new_1-3,95,30,4 script Trainer#nv1::NovHoffman 4_M_02,{ mes "be careful, it can get"; mes "pretty difficult..."; next; - if (strnpcinfo(2) == "nv1" || strnpcinfo(2) == "nv2" || strnpcinfo(2) == "nv3") { + if (strnpcinfo(NPC_NAME_HIDDEN) == "nv1" || strnpcinfo(NPC_NAME_HIDDEN) == "nv2" || strnpcinfo(NPC_NAME_HIDDEN) == "nv3") { if (rand(2)) { warp "new_4-3",96,21; } -- cgit v1.2.3-60-g2f50