summaryrefslogtreecommitdiff
path: root/npc/re/instances/HazyForest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/instances/HazyForest.txt')
-rw-r--r--npc/re/instances/HazyForest.txt61
1 files changed, 30 insertions, 31 deletions
diff --git a/npc/re/instances/HazyForest.txt b/npc/re/instances/HazyForest.txt
index 0c32c73c6..1baa1423f 100644
--- a/npc/re/instances/HazyForest.txt
+++ b/npc/re/instances/HazyForest.txt
@@ -20,8 +20,8 @@
//============================================================
bif_fild01,158,340,5 script Laphine Soldier#mist 4_M_FAIRYSOLDIER,{
- set .@party_id,getcharid(1);
- set .@md_name$,"Mistwood Maze";
+ .@party_id = getcharid(1);
+ .@md_name$ = "Mistwood Maze";
mes "[Laphine Soldier]";
mes "Are you going into the forest?";
@@ -32,9 +32,9 @@ bif_fild01,158,340,5 script Laphine Soldier#mist 4_M_FAIRYSOLDIER,{
mes "Why don't you at least organize a party?";
close;
}
- set .@playtime, checkquest(7211,PLAYTIME);
+ .@playtime = questprogress(7211,PLAYTIME);
if (getcharid(0) == getpartyleader(.@party_id,2)) {
- if (.@playtime == 0 || .@playtime == 1) {
+ if (.@playtime == 1) {
mes "[Laphine Soldier]";
mes "...Are you sure you're not doing too much?";
mes "I think you'd better get some rest.";
@@ -84,12 +84,12 @@ bif_fild01,158,340,5 script Laphine Soldier#mist 4_M_FAIRYSOLDIER,{
mes "[Laphine Soldier]";
mes "Party Name "+getpartyname(.@party_id)+"...";
mes "Party Leader "+strcharinfo(0)+"...";
- set .@instance, instance_create(.@md_name$, .@party_id);
+ .@instance = instance_create(.@md_name$, .@party_id);
if (.@instance < 0) {
mes "Hmm...";
next;
mes "[Laphine Soldier]";
- if (.@playtime == -1)
+ if (!.@playtime)
mes "It's dangerous in the forest.";
else
mes "The atmosphere is somewhat tense in the forest.";
@@ -117,7 +117,7 @@ bif_fild01,158,340,5 script Laphine Soldier#mist 4_M_FAIRYSOLDIER,{
case 2:
mes "[Laphine Soldier]";
mes "Well, you've made the right decision.";
- if (.@playtime == -1)
+ if (!.@playtime)
mes "That's what's good for you.";
close;
}
@@ -147,9 +147,8 @@ bif_fild01,161,355,0 script Log Tunnel CLEAR_NPC,{
next;
if(select("Enter the tunnel.:Give up.") == 2)
close;
- set .@playtime, checkquest(7211,PLAYTIME);
if (has_instance("1@mist") == "") {
- if (.@playtime == 0 || .@playtime == 1) {
+ if (questprogress(7211,PLAYTIME) == 1) {
mes "You try to crawl into the log, but some mysterious power pushes you back with a gush of wind.";
mes "It seems like you can't force your way into the forest.";
close;
@@ -158,8 +157,8 @@ bif_fild01,161,355,0 script Log Tunnel CLEAR_NPC,{
mes "Your instinct is screaming that this forest is dangerous.";
close;
} else {
- if (checkquest(7211,PLAYTIME) == 2) erasequest 7211;
- if (checkquest(7211,PLAYTIME) == -1) setquest 7211;
+ if (questprogress(7211,PLAYTIME) == 2) erasequest 7211;
+ if (!questprogress(7211,PLAYTIME)) setquest 7211;
mapannounce "bif_fild01",getpartyname(getcharid(1))+" party's "+strcharinfo(0)+" member is entering the Mistwood Maze.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
warp "1@mist",89,29;
close;
@@ -195,7 +194,7 @@ OnTimer180000:
// callfunc "F_Mora_Mist",<warp to enable>,<success message>,<fail message>{,<end flag>}
function script F_Mora_Mist {
- set .@map$, instance_mapname("1@mist");
+ .@map$ = instance_mapname("1@mist");
if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") == 0) {
mes "Obviously no one is taking care of it.";
mes "It seems like you can chop down the garden tree.";
@@ -424,7 +423,7 @@ OnMyMobDead:
"Gardeners: We're not dead, yet!!!!",1;
end;
OnInstanceInit:
- set .@map$, instance_mapname("1@mist");
+ .@map$ = instance_mapname("1@mist");
monster .@map$,318,137,"Baby Tom",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
monster .@map$,321,137,"Tomba the Baby",2136,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
monster .@map$,324,137,"Exhausted Remi",2137,1,instance_npcname("The Gardeners' Tree")+"::OnMyMobDead";
@@ -514,7 +513,7 @@ OnInstanceInit:
monster instance_mapname("1@mist"),.@c[0],.@c[1],"Wandering Purple Dragon",2131,1,instance_npcname("#Dragon Herder")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
+ .@map$ = instance_mapname("1@mist");
if (mobcount(.@map$,instance_npcname("#Dragon Herder")+"::OnMyMobDead") == 0) {
donpcevent instance_npcname("Collapsed Girl#mist")+"::OnEnable";
donpcevent instance_npcname("Mysterious Young Man#mis")+"::OnEnable";
@@ -600,7 +599,7 @@ OnTimer3000:
mes "[Loki]";
mes "Now we have to say goodbye here.";
mes "If you survive this forest, of course.";
- set ep14_1_mistwoods,2;
+ ep14_1_mistwoods = 2;
setquest 7212;
close;
case 2:
@@ -608,7 +607,7 @@ OnTimer3000:
mes "I understand.";
mes "Step back if you aren't ready.";
mes "This forest doesn't like strangers.";
- set ep14_1_mistwoods,1;
+ ep14_1_mistwoods = 1;
close;
}
} else if (ep14_1_mistwoods == 1) {
@@ -646,7 +645,7 @@ OnTimer3000:
mes "[Loki]";
mes "Now we have to say goodbye here.";
mes "Hopefully, we will see each other again in Mora.";
- set ep14_1_mistwoods,2;
+ ep14_1_mistwoods = 2;
setquest 7212;
close;
}
@@ -706,7 +705,7 @@ OnDisable:
mes "I'll wait for her to wake up and get out of this forest.";
mes "I can manage it on my own.";
mes "I'll see you in Mora.";
- set ep14_1_mistwoods,3;
+ ep14_1_mistwoods = 3;
erasequest 7212;
setquest 7213;
close;
@@ -779,7 +778,7 @@ mora,46,152,5 script Flower Smelling Lady 4_F_NYDHOG,{
mes "I thought I was forsaken...";
next;
mes "The Guardian slowly looked away as if deep in thought.";
- set ep14_1_mistwoods,4;
+ ep14_1_mistwoods = 4;
close2;
} else if (ep14_1_mistwoods == 4) {
mes "- He seems to be deep in thought. -";
@@ -902,7 +901,7 @@ mora,48,152,3 script Sharp Eyed Man 4_M_ROKI2,{
next;
mes "[Nydhogg the Guardian]";
mes "May the blessing of Mother Yggdrasil be with you...";
- set ep14_1_mistwoods,10;
+ ep14_1_mistwoods = 10;
completequest 7213;
getitem 2568,1; //Muffler_Of_Roki
getitem 2858,1; //Pendant_Of_Guardian
@@ -928,8 +927,8 @@ OnInstanceInit:
monster instance_mapname("1@mist"),0,0,"Miming",2137,15,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
- set .@num_mobs, 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
+ .@map$ = instance_mapname("1@mist");
+ .@num_mobs = 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead");
if (.@num_mobs > 0)
monster .@map$,0,0,"Miming",2137,.@num_mobs,instance_npcname("#Mist Mobs Respawn1")+"::OnMyMobDead";
end;
@@ -941,8 +940,8 @@ OnInstanceInit:
monster instance_mapname("1@mist"),0,0,"Pom Spider",2132,35,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
- set .@num_mobs, 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
+ .@map$ = instance_mapname("1@mist");
+ .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead");
if (.@num_mobs > 0)
monster .@map$,0,0,"Pom Spider",2132,.@num_mobs,instance_npcname("#Mist Mobs Respawn2")+"::OnMyMobDead";
end;
@@ -954,8 +953,8 @@ OnInstanceInit:
monster instance_mapname("1@mist"),0,0,"Angra Mantis",2133,35,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
- set .@num_mobs, 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
+ .@map$ = instance_mapname("1@mist");
+ .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead");
if (.@num_mobs > 0)
monster .@map$,0,0,"Angra Mantis",2133,.@num_mobs,instance_npcname("#Mist Mobs Respawn3")+"::OnMyMobDead";
end;
@@ -967,8 +966,8 @@ OnInstanceInit:
monster instance_mapname("1@mist"),0,0,"Parus",2134,35,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
- set .@num_mobs, 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
+ .@map$ = instance_mapname("1@mist");
+ .@num_mobs = 35 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead");
if (.@num_mobs > 0)
monster .@map$,0,0,"Parus",2134,.@num_mobs,instance_npcname("#Mist Mobs Respawn4")+"::OnMyMobDead";
end;
@@ -980,8 +979,8 @@ OnInstanceInit:
monster instance_mapname("1@mist"),0,0,"Little Fatum",2136,15,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead";
end;
OnMyMobDead:
- set .@map$, instance_mapname("1@mist");
- set .@num_mobs, 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
+ .@map$ = instance_mapname("1@mist");
+ .@num_mobs = 15 - mobcount(.@map$,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead");
if (.@num_mobs > 0)
monster .@map$,0,0,"Little Fatum",2136,.@num_mobs,instance_npcname("#Mist Mobs Respawn5")+"::OnMyMobDead";
end;
@@ -1025,7 +1024,7 @@ bif_fild01,38,374,0 script Mysterious Flower#ep14_1 CLEAR_NPC,{
1@mist,109,70,0 script a1_a2 WARPNPC,1,1,{
end;
OnTouch:
- if (checkquest(7211,PLAYTIME) == -1)
+ if (!questprogress(7211,PLAYTIME))
setquest 7211;
warp instance_mapname("1@mist"),116,40;
end;