summaryrefslogtreecommitdiff
path: root/npc/re/jobs/3-1/ranger.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/jobs/3-1/ranger.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/jobs/3-1/ranger.txt')
-rw-r--r--npc/re/jobs/3-1/ranger.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/re/jobs/3-1/ranger.txt b/npc/re/jobs/3-1/ranger.txt
index 1e7b40c98..91adb9b49 100644
--- a/npc/re/jobs/3-1/ranger.txt
+++ b/npc/re/jobs/3-1/ranger.txt
@@ -1584,14 +1584,14 @@ OnTimer133000:
- script Egg Bomb#0 FAKE_NPC,{
OnInit:
- disablenpc strnpcinfo(0);
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnEnable:
- enablenpc strnpcinfo(0);
+ enablenpc strnpcinfo(NPC_NAME);
initnpctimer;
getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC);
- monster "job3_rang02",.@x,.@y,"Egg Bomb",1047,1,strnpcinfo(0)+"::OnMyMobDead";
- switch(atoi(strnpcinfo(2))%3) {
+ monster "job3_rang02",.@x,.@y,"Egg Bomb",1047,1,strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))%3) {
case 0: .@str$ = "Hey, I am going to explode. What are you going to do?"; break;
case 1: .@str$ = "I... no, I can't stand anymore!!"; break;
case 2: .@str$ = "I am almost done now... Don't stop me."; break;
@@ -1600,22 +1600,22 @@ OnEnable:
end;
OnDisable:
stopnpctimer;
- killmonster "job3_rang02",strnpcinfo(0)+"::OnMyMobDead";
- disablenpc strnpcinfo(0);
+ killmonster "job3_rang02",strnpcinfo(NPC_NAME)+"::OnMyMobDead";
+ disablenpc strnpcinfo(NPC_NAME);
end;
OnMyMobDead:
++$@job_rang_point03;
- switch(atoi(strnpcinfo(2))%3) {
+ switch(atoi(strnpcinfo(NPC_NAME_HIDDEN))%3) {
case 0: .@str$ = "The world is meaningless and my dream is so far away..."; break;
case 1: .@str$ = "Don't be relieved. Misery always comes from carelessness."; break;
case 2: .@str$ = "Alas, it was only a dream for a short time..."; break;
}
mapannounce "job3_rang02","Egg Bomb : "+.@str$,bc_map,"0x87ceeb"; //FW_NORMAL 12 0 0
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
OnTimer10000:
mapannounce "job3_rang02","Egg Bomb : Ughhhhhhhhhhhhhh!!! So what did I say!!",bc_map,"0xFF9900"; //FW_NORMAL 12 0 0
- donpcevent strnpcinfo(0)+"::OnDisable";
+ donpcevent strnpcinfo(NPC_NAME)+"::OnDisable";
end;
}
job3_rang02,246,42,0 duplicate(Egg Bomb#0) Egg Bomb#14 HIDDEN_WARP_NPC