diff options
author | Asheraf <acheraf1998@gmail.com> | 2016-08-28 17:03:57 +0100 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-08-29 01:03:42 +0200 |
commit | 86977d79269408a371384e61111c3a9cf6e87b0c (patch) | |
tree | 4f2a9b1f9a3ee6436a0b857d05caa2be7e99a877 /npc/re/cities/malangdo.txt | |
parent | 16f998c8a79153ed9f6721c36e129b6080fa59d2 (diff) | |
download | hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.gz hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.bz2 hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.xz hercules-86977d79269408a371384e61111c3a9cf6e87b0c.zip |
*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
Diffstat (limited to 'npc/re/cities/malangdo.txt')
-rw-r--r-- | npc/re/cities/malangdo.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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]"; |