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/re/cities/malangdo.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/re/cities/malangdo.txt') diff --git a/npc/re/cities/malangdo.txt b/npc/re/cities/malangdo.txt index ea2a65e1c..f4ac6300a 100644 --- a/npc/re/cities/malangdo.txt +++ b/npc/re/cities/malangdo.txt @@ -44,7 +44,7 @@ next; mes "[Dolangmal]"; .@s$ = "Why don't you go to ^A2314BMalangdo^000000?"; - switch(atoi(strnpcinfo(2))) { + switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))) { case 1: mes "How is that? The crowded city of Prontera is good, but why don't you go our heaven of the cats, ^A2314BMalangdo^000000?"; break; case 2: mes "Why don't you go to ^A2314BMalangdo^000000? That place is better than Geffen, where there are only crowds of simple honest wizards."; break; case 3: mes "The fresh air of Payon is not bad, but why don't you go better place like the heaven of the cats, ^A2314BMalangdo^000000?"; break; @@ -174,7 +174,7 @@ lighthalzen,254,83,5 duplicate(Dolangmal) Dolangmal#8 4_CAT_DOWN mora,57,150,4 duplicate(Dolangmal) Dolangmal#9 4_CAT_DOWN - script ::Odgnalam FAKE_NPC,{ - mes "This cat is sleeping in the warm "+((strnpcinfo(2) == "albe")?"Alberta":"Izlude")+" sun."; + mes "This cat is sleeping in the warm "+((strnpcinfo(NPC_NAME_HIDDEN) == "albe")?"Alberta":"Izlude")+" sun."; next; if(select("Let him sleep", "Talk to him") == 1) close; mes "[Odgnalam]"; -- cgit v1.2.3-70-g09d2