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/thana_quest.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/thana_quest.txt')
-rw-r--r-- | npc/quests/thana_quest.txt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/npc/quests/thana_quest.txt b/npc/quests/thana_quest.txt index c535253d7..f72d48f42 100644 --- a/npc/quests/thana_quest.txt +++ b/npc/quests/thana_quest.txt @@ -1699,10 +1699,10 @@ tha_t08,90,153,0 script Shining Crystal#tt_r1 CLEAR_NPC,{ OnInit: OnDisable: - disablenpc strnpcinfo(0); + disablenpc strnpcinfo(NPC_NAME); end; OnEnable: - enablenpc strnpcinfo(0); + enablenpc strnpcinfo(NPC_NAME); end; } tha_t08,90,62,0 duplicate(Shining Crystal#tt_r1) Shining Crystal#tt_r2 CLEAR_NPC @@ -1733,10 +1733,10 @@ tha_t08,49,153,0 script Shining Crystal#tt_y1 CLEAR_NPC,{ OnInit: OnDisable: - disablenpc strnpcinfo(0); + disablenpc strnpcinfo(NPC_NAME); end; OnEnable: - enablenpc strnpcinfo(0); + enablenpc strnpcinfo(NPC_NAME); end; } tha_t08,90,150,0 duplicate(Shining Crystal#tt_y1) Shining Crystal#tt_y2 CLEAR_NPC @@ -1767,10 +1767,10 @@ tha_t08,49,65,0 script Shining Crystal#tt_b1 CLEAR_NPC,{ OnInit: OnDisable: - disablenpc strnpcinfo(0); + disablenpc strnpcinfo(NPC_NAME); end; OnEnable: - enablenpc strnpcinfo(0); + enablenpc strnpcinfo(NPC_NAME); end; } tha_t08,49,150,0 duplicate(Shining Crystal#tt_b1) Shining Crystal#tt_b2 CLEAR_NPC @@ -1801,10 +1801,10 @@ tha_t08,90,65,0 script Shining Crystal#tt_g1 CLEAR_NPC,{ OnInit: OnDisable: - disablenpc strnpcinfo(0); + disablenpc strnpcinfo(NPC_NAME); end; OnEnable: - enablenpc strnpcinfo(0); + enablenpc strnpcinfo(NPC_NAME); end; } tha_t08,49,62,0 duplicate(Shining Crystal#tt_g1) Shining Crystal#tt_g2 CLEAR_NPC @@ -2102,15 +2102,15 @@ OnTimer3000: thana_boss,217,167,3 script Memory Seal#tt1 G_THA_MAERO,3,3,{ end; OnEnable: - hideoffnpc strnpcinfo(0); + hideoffnpc strnpcinfo(NPC_NAME); .hide = 0; end; OnDisable: - hideonnpc strnpcinfo(0); + hideonnpc strnpcinfo(NPC_NAME); .hide = 0; end; OnTouch: - .@seal = atoi(charat(strnpcinfo(2),2)); + .@seal = atoi(charat(strnpcinfo(NPC_NAME_HIDDEN),2)); if (.hide & (1<<.@seal)) end; // .@i: ItemID,MobID,MapX,MapY,EffectNum @@ -2153,11 +2153,11 @@ OnTouch: mes "into the crest, causing"; mes "its glow to intensify.^000000"; close2; - hideonnpc strnpcinfo(0); + hideonnpc strnpcinfo(NPC_NAME); .hide |= (1<<.@seal); delitem .@i[0],1; specialeffect .@i[4]; - monster "thana_boss",.@i[2],.@i[3],.@j$,.@i[1],1,strnpcinfo(0)+"::OnMyMobDead"; + monster "thana_boss",.@i[2],.@i[3],.@j$,.@i[1],1,strnpcinfo(NPC_NAME)+"::OnMyMobDead"; switch($@thana_summon2) { case 0: .@str$ = "... who... released... the... Memory... of... "+.@j$+"...?"; break; case 1: .@str$ = "... why... did you... release... the... Memory... of... "+.@j$+"...?"; break; |