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/kafras/functions_kafras.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/kafras/functions_kafras.txt')
-rw-r--r-- | npc/kafras/functions_kafras.txt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt index 3155c5df8..24592a96d 100644 --- a/npc/kafras/functions_kafras.txt +++ b/npc/kafras/functions_kafras.txt @@ -609,56 +609,56 @@ function script F_KafSet { deletearray @wrpP$; deletearray @viewpX; deletearray @viewpY; - if (strnpcinfo(4) == "prontera") { + if (strnpcinfo(NPC_MAP) == "prontera") { setarray @wrpD$, "Izlude", "Geffen", "Payon", "Morroc", "Orc Dungeon", "Alberta"; setarray @wrpP, 600, 1200, 1200, 1200, 1200, 1800; setarray @viewpX, 151, 29, 282, 152; setarray @viewpY, 29, 207, 200, 326; - } else if (strnpcinfo(4) == "alberta") { + } else if (strnpcinfo(NPC_MAP) == "alberta") { setarray @wrpP, 1200, 1800, 1800; setarray @wrpD$, "Payon", "Morroc", "Prontera"; setarray @viewpX, 28, 113, 0, 0; setarray @viewpY, 229, 60, 0, 0; - } else if (strnpcinfo(4) == "aldebaran") { + } else if (strnpcinfo(NPC_MAP) == "aldebaran") { setarray @wrpP, 1200, 1200, 1800, 1700; setarray @wrpD$, "Geffen", "Juno" , "Izlude", "Mjolnir Dead Pit"; - } else if (strnpcinfo(4) == "comodo" ) { + } else if (strnpcinfo(NPC_MAP) == "comodo" ) { setarray @wrpD$, "Morroc", "Comodo Pharos Beacon", "Umbala"; setarray @wrpP, 1800, 1200, 1800; - } else if (strnpcinfo(4) == "cmd_fild07") { + } else if (strnpcinfo(NPC_MAP) == "cmd_fild07") { setarray @wrpD$, "Comodo", "Morroc"; setarray @wrpP, 1200, 1200; - } else if (strnpcinfo(4) == "geffen") { + } else if (strnpcinfo(NPC_MAP) == "geffen") { setarray @wrpD$, "Prontera", "Al De Baran", "Orc Dungeon", "Mjolnir Dead Pit"; setarray @wrpP, 1200, 1200, 1200, 1700; setarray @viewpX, 120, 203; setarray @viewpY, 62, 123; - } else if (strnpcinfo(4) == "izlude") { + } else if (strnpcinfo(NPC_MAP) == "izlude") { setarray @wrpD$, "Geffen", "Payon", "Morroc", "Al De Baran"; setarray @wrpP, 1200, 1200, 1200, 1800; - } else if (strnpcinfo(4) == "morocc") { + } else if (strnpcinfo(NPC_MAP) == "morocc") { setarray @wrpD$, "Prontera", "Payon", "Alberta", "Comodo", "Comodo Pharos Beacon"; setarray @wrpP, 1200, 1200, 1800, 1800, 1200; setarray @viewpX, 156, 163, 28, 292; setarray @viewpY, 97, 260, 167, 211; - } else if (strnpcinfo(4) == "umbala") { + } else if (strnpcinfo(NPC_MAP) == "umbala") { setarray @wrpD$, "Comodo"; setarray @wrpP, 1800; - } else if (strnpcinfo(4) == "payon") { + } else if (strnpcinfo(NPC_MAP) == "payon") { setarray @wrpD$, "Prontera", "Alberta", "Morroc"; setarray @wrpP, 1200, 1200, 1200; - } else if (strnpcinfo(4) == "yuno") { + } else if (strnpcinfo(NPC_MAP) == "yuno") { setarray @wrpD$, "Al De Baran"; setarray @wrpP, 1200; setarray @viewpX, 328, 278, 153, 0; setarray @viewpY, 108, 221, 187, 0; - } else if (strnpcinfo(4) == "job3_rune01") { + } else if (strnpcinfo(NPC_MAP) == "job3_rune01") { setarray @wrpD$, "Izlude", "Geffen", "Payon", "Morroc", "Alberta"; setarray @wrpP, 600, 1200, 1200, 1200, 1800; - } else if (strnpcinfo(4) == "rachel") { + } else if (strnpcinfo(NPC_MAP) == "rachel") { setarray @wrpD$, "Veins"; setarray @wrpP, 2200; - } else if (strnpcinfo(4) == "veins") { + } else if (strnpcinfo(NPC_MAP) == "veins") { setarray @wrpD$, "Rachel"; setarray @wrpP, 2200; } |