summaryrefslogtreecommitdiff
path: root/npc/re/jobs/3-1/ranger.txt
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2016-08-31 02:49:04 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2016-08-31 02:49:04 +0800
commit99a36a426b7d2adb6a0f417e02e92366939e5d22 (patch)
tree74a0fef908f373c3c6674821a150e866a2afb4c3 /npc/re/jobs/3-1/ranger.txt
parentac6fd81810e6afb1ef60e7f2c7f8fc6e03408724 (diff)
parent0f1d03f505fdc03533122db8ba19fa55f64f11b7 (diff)
downloadhercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.gz
hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.bz2
hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.xz
hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules into scriptcommand_makeitem2
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