summaryrefslogtreecommitdiff
path: root/npc/re/instances/OldGlastHeim.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/re/instances/OldGlastHeim.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/re/instances/OldGlastHeim.txt')
-rw-r--r--npc/re/instances/OldGlastHeim.txt26
1 files changed, 13 insertions, 13 deletions
diff --git a/npc/re/instances/OldGlastHeim.txt b/npc/re/instances/OldGlastHeim.txt
index bf201d3cd..329bee220 100644
--- a/npc/re/instances/OldGlastHeim.txt
+++ b/npc/re/instances/OldGlastHeim.txt
@@ -231,8 +231,8 @@ OnEnable:
}
1@gl_k,145,54,6 script Khalitzburg Knight#1 4_F_KHALITZBURG,{
- mesf("[%s]", strnpcinfo(1));
- switch ((atoi(strnpcinfo(2)) + 1) / 2) {
+ mesf("[%s]", strnpcinfo(NPC_NAME_VISIBLE));
+ switch ((atoi(strnpcinfo(NPC_NAME_HIDDEN)) + 1) / 2) {
case 1: mes("Is there something you need?"); break;
case 2: mes("What can I do for you?"); break;
case 3: mes("..."); break;
@@ -247,10 +247,10 @@ OnEnable:
}
close;
OnDisable:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- hideoffnpc instance_npcname(strnpcinfo(0));
+ hideoffnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}
@@ -680,11 +680,11 @@ OnMyMobDead:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEffect1:
@@ -721,17 +721,17 @@ OnEffect1:
OnInstanceInit:
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnTouch:
.@map1$ = instance_mapname("1@gl_k");
.@map2$ = instance_mapname("2@gl_k");
- switch (atoi(replacestr(strnpcinfo(2), "ghinstancewarp", ""))) {
+ switch (atoi(replacestr(strnpcinfo(NPC_NAME_HIDDEN), "ghinstancewarp", ""))) {
case 1: warp .@map1$,80,80; break;
case 2: warp .@map1$,105,80; break;
case 3: warp .@map1$,215,79; break;
@@ -963,8 +963,8 @@ OnTouch:
else .@mobs = 7;
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
specialeffect EF_VENOMDUST;
- monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
- disablenpc instance_npcname(strnpcinfo(0));
+ monster(.@map$, .@x, .@y, "Maggot", MG_ARCLOUSE, .@mobs, instance_npcname(strnpcinfo(NPC_NAME))+"::OnMyMobDead");
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnMyMobDead:
@@ -972,11 +972,11 @@ OnMyMobDead:
OnInstanceInit:
OnEnable:
- enablenpc instance_npcname(strnpcinfo(0));
+ enablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnDisable:
- disablenpc instance_npcname(strnpcinfo(0));
+ disablenpc instance_npcname(strnpcinfo(NPC_NAME));
end;
}