Skip to content

Commit

Permalink
Partial fix of issue #2002 (cannot access instance variable "'ins_nyd2")
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemo committed Mar 22, 2017
1 parent 29b0670 commit f581d26
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions npc/instances/NydhoggsNest.txt
Expand Up @@ -139,7 +139,7 @@ nyd_dun02,100,201,3 script Yggdrasil Gatekeeper 111,8,8,{
goto L_Enter;
} else {
if (.@ins_nyd_check == 0 || .@ins_nyd_check == 1) {
if ('ins_nyd2 == 3 || 'ins_nyd2 == 4) {
if (ins_nyd2 == 3 || ins_nyd2 == 4) {
mes "[Yggdrasil Gatekeeper]";
mes "With the defeat of Nidhoggur's Shadow, the roots of the World Tree Yggdrasil are also affected.";
next;
Expand All @@ -166,7 +166,7 @@ nyd_dun02,100,201,3 script Yggdrasil Gatekeeper 111,8,8,{
mes "If you would like to enter again, please register with me.";
erasequest 3135;
erasequest 3136;
set 'ins_nyd2,0;
set ins_nyd2,0;
close;
}
}
Expand Down Expand Up @@ -1605,7 +1605,7 @@ OnTouch_:
next;
mes "[World Tree Yggdrasil]";
mes "And... Be careful... Be careful of the shadow's power.";
set 'ins_nyd2,1;
'ins_nyd2 = ins_nyd2 = 1;
donpcevent instance_npcname("ins_nyd_1f_timer")+"::OnEnable";
donpcevent instance_npcname("nyd_call_mon_1")+"::OnEnable";
close;
Expand Down Expand Up @@ -1700,7 +1700,7 @@ OnMyMobDead:
mapannounce .@map$, "All of Nidhoggur's Guardians have been defeated!",bc_map,"0x00ff99";
donpcevent instance_npcname("ins_nyd_1f_timer")+"::OnDisable";
donpcevent instance_npcname("nyd_to2f_warp")+"::OnEnable";
set 'ins_nyd2,2;
'ins_nyd2 = ins_nyd2 = 2;
}
end;
}
Expand Down Expand Up @@ -1760,7 +1760,7 @@ OnEnable:
end;

OnTouch:
set 'ins_nyd2,3;
'ins_nyd2 = ins_nyd2 = 3;
warp instance_mapname("2@nyd"),200,10;
end;
}
Expand Down Expand Up @@ -1922,7 +1922,7 @@ OnMyMobDead:
donpcevent instance_npcname("nyd_2f_white_c")+"::OnDisable";
donpcevent instance_npcname("nyd_2f_yellow_c")+"::OnDisable";
donpcevent instance_npcname("nyd_2f_green_c")+"::OnDisable";
set 'ins_nyd2,4;
'ins_nyd2 = ins_nyd2 = 4;
end;
}
end;
Expand Down Expand Up @@ -1973,7 +1973,8 @@ OnTimer180000:
next;
switch(select("Please let me out.:I want to look around for a while.")) {
case 1:
set 'ins_nyd2,0;
'ins_nyd2 = 0;
// ins_nyd2 = 0;
set ins_nyd,203;
//setquest 3135;
warp "nyd_dun02",98,196;
Expand Down

0 comments on commit f581d26

Please sign in to comment.