diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-01 14:44:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-01 14:44:34 -0300 |
commit | fad04ba82736ea807a3b7d377846597694eb7fe8 (patch) | |
tree | dc536b1d7aa94c6fcc6be02cd8735b6f13240254 /npc/018-6-2 | |
parent | d7a12ae2c32db522a81eb895e8674e0b35ca1c58 (diff) | |
download | serverdata-fad04ba82736ea807a3b7d377846597694eb7fe8.tar.gz serverdata-fad04ba82736ea807a3b7d377846597694eb7fe8.tar.bz2 serverdata-fad04ba82736ea807a3b7d377846597694eb7fe8.tar.xz serverdata-fad04ba82736ea807a3b7d377846597694eb7fe8.zip |
This should resolve south wing. That would allow you to go to shrine.
Monsters still missing.
Diffstat (limited to 'npc/018-6-2')
-rw-r--r-- | npc/018-6-2/main.txt | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/npc/018-6-2/main.txt b/npc/018-6-2/main.txt index a990e5781..dd92bd730 100644 --- a/npc/018-6-2/main.txt +++ b/npc/018-6-2/main.txt @@ -59,4 +59,75 @@ OnInstanceInit: } +///////////////////////////// +018-6-2,70,152,0 script #FromWestHall NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("Should I walk on it?"); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + .@q2=getq2(LoFQuest_Barbara); + .@q3=getq3(LoFQuest_Barbara); + if (.@q != 2) + Exception("ERROR, INVALID WARP", RB_DEFAULT|RB_ISFATAL); + + // East hall not yet enabled, we must repeat + if (!(.@q3 & 128)) { + // Mark the west hall as complete (again) + setq3 LoFQuest_Barbara, .@q3|64; + disablenpc instance_npcname(.name$, .@q2); + warp BarbaraInstCheck(2), 90, 32; + } else { + // Quest is over! + setq3 LoFQuest_Barbara, 5; + disablenpc instance_npcname(.name$, .@q2); + enablenpc instance_npcname("#ToForgottenShrine", .@q2); + warp BarbaraInstCheck(0), 90, 112; + } + end; + + +OnInit: + disablenpc .name$; + end; +OnInstanceInit: + disablenpc instance_npcname(.name$); + end; +} + +///////////////////////////// +018-6-2,103,156,0 script #FromEastHall NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("Should I walk on it?"); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + .@q2=getq2(LoFQuest_Barbara); + .@q3=getq3(LoFQuest_Barbara); + if (.@q != 2) + Exception("ERROR, INVALID WARP", RB_DEFAULT|RB_ISFATAL); + + // West hall not yet enabled, we must repeat + if (!(.@q3 & 64)) { + // Mark the east hall as complete (again) + setq3 LoFQuest_Barbara, .@q3|128; + disablenpc instance_npcname(.name$, .@q2); + warp BarbaraInstCheck(2), 90, 32; + } else { + // Quest is over! + setq3 LoFQuest_Barbara, 5; + disablenpc instance_npcname(.name$, .@q2); + enablenpc instance_npcname("#ToForgottenShrine", .@q2); + warp BarbaraInstCheck(0), 90, 112; + } + end; + + +OnInit: + disablenpc .name$; + end; +OnInstanceInit: + disablenpc instance_npcname(.name$); + end; +} |