summaryrefslogtreecommitdiff
path: root/npc/instances/EndlessTower.txt
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2016-08-28 17:03:57 +0100
committerhemagx <ibrahem.h.basyone@gmail.com>2016-08-29 01:03:42 +0200
commit86977d79269408a371384e61111c3a9cf6e87b0c (patch)
tree4f2a9b1f9a3ee6436a0b857d05caa2be7e99a877 /npc/instances/EndlessTower.txt
parent16f998c8a79153ed9f6721c36e129b6080fa59d2 (diff)
downloadhercules-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/instances/EndlessTower.txt')
-rw-r--r--npc/instances/EndlessTower.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt
index 3082cfdce..52c558a2a 100644
--- a/npc/instances/EndlessTower.txt
+++ b/npc/instances/EndlessTower.txt
@@ -1254,27 +1254,27 @@ OnTimer5000:
end;
OnInstanceInit:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
callfunc "F_Tower_Monster",
- atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1,
- strnpcinfo(4),
- instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
+ atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1,
+ strnpcinfo(NPC_MAP),
+ instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead";
end;
OnTouch_:
callfunc "F_Tower_Warp",
- atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1,
- strnpcinfo(4);
+ atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1,
+ strnpcinfo(NPC_MAP);
end;
OnMyMobDead:
- .@map$ = strnpcinfo(4);
- .@level = atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1;
- .@mob_dead_num = mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
+ .@map$ = strnpcinfo(NPC_MAP);
+ .@level = atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1;
+ .@mob_dead_num = mobcount(.@map$,instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor .@level
@@ -1283,8 +1283,8 @@ OnMyMobDead:
end;
OnTimer5000:
- .@level = atoi(replacestr(strnpcinfo(0),"FGate102tower","")) + 1;
- mapannounce strnpcinfo(4), "All Monsters on the "+callsub(L_Display,.@level)+" Level have been defeated.",bc_map,"0xffff00";
+ .@level = atoi(replacestr(strnpcinfo(NPC_NAME),"FGate102tower","")) + 1;
+ mapannounce strnpcinfo(NPC_MAP), "All Monsters on the "+callsub(L_Display,.@level)+" Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname(.@level+"FGate102tower")+"::OnEnable";
stopnpctimer;
end;