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/quests/guildrelay.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/quests/guildrelay.txt')
-rw-r--r-- | npc/quests/guildrelay.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/npc/quests/guildrelay.txt b/npc/quests/guildrelay.txt index 3d3358005..81e38b299 100644 --- a/npc/quests/guildrelay.txt +++ b/npc/quests/guildrelay.txt @@ -38,30 +38,30 @@ //== Floating NPCs to duplicate from. ====================== - script RelayDummy1::GuildRelay1 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); if (.@name$ == "Buzz") { .@name2$ = "Lenya"; .@name3$ = "Gealuve"; .@name4$ = "Pariz"; - .@GID = getcastledata("aldeg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("aldeg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Jody") { .@name2$ = "Ron Haware"; .@name3$ = "Vers"; .@name4$ = "Gen Garish"; - .@GID = getcastledata("gefg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("gefg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Chungye") { .@name2$ = "Dosuhlji"; .@name3$ = "Yayula"; .@name4$ = "Ashin"; - .@GID = getcastledata("payg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("payg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } else if (.@name$ == "Hermod") { .@name2$ = "Atila"; .@name3$ = "Cecil"; .@name4$ = "Diligo"; - .@GID = getcastledata("prtg_cas"+strnpcinfo(2),1); + .@GID = getcastledata("prtg_cas"+strnpcinfo(NPC_NAME_HIDDEN),1); } if (checkweight(Spawn,630) == 0) { mes "^3355FFWait a minute! You're"; @@ -1239,7 +1239,7 @@ } - script RelayDummy2::GuildRelay2 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { @@ -1748,7 +1748,7 @@ } - script RelayDummy3::GuildRelay3 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { @@ -2432,7 +2432,7 @@ } - script GuildDummy4::GuildRelay4 4_M_SAGE_A,{ - .@name$ = strnpcinfo(1); + .@name$ = strnpcinfo(NPC_NAME_VISIBLE); getmapxy(.@m$, .@x, .@x, UNITTYPE_NPC); .@GID = getcastledata(.@m$,1); if (checkweight(Knife,1) == 0) { |