diff options
author | mekolat <mekolat@gmail.com> | 2015-01-28 13:27:01 -0500 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-01-28 13:27:01 -0500 |
commit | faf22e0f4fedbb43a5447d03fb434e80db235f07 (patch) | |
tree | 960624ce31a50840adb1949c1663817111bfdd6f /world/map/npc/009-4/barriers.txt | |
parent | dc80bf7fe83eab48428aa4f63d869a9b72bd7d27 (diff) | |
download | serverdata-faf22e0f4fedbb43a5447d03fb434e80db235f07.tar.gz serverdata-faf22e0f4fedbb43a5447d03fb434e80db235f07.tar.bz2 serverdata-faf22e0f4fedbb43a5447d03fb434e80db235f07.tar.xz serverdata-faf22e0f4fedbb43a5447d03fb434e80db235f07.zip |
apply @wushin workaround
Diffstat (limited to 'world/map/npc/009-4/barriers.txt')
-rw-r--r-- | world/map/npc/009-4/barriers.txt | 75 |
1 files changed, 47 insertions, 28 deletions
diff --git a/world/map/npc/009-4/barriers.txt b/world/map/npc/009-4/barriers.txt index 3479b0ee..49fd3877 100644 --- a/world/map/npc/009-4/barriers.txt +++ b/world/map/npc/009-4/barriers.txt @@ -44,15 +44,13 @@ L_Error2: // Starting Barrier / Quest Entrance -009-4.gat,37,120,0|script|#OrumCaveStartBarrier|127,1,0 +009-4.gat,37,119,0|script|#OrumCaveStartMessage|127,0,0 { - if (OrumQuest >= 3) close; + if (OrumQuest >= 3) end; if (OrumQuest == 2) goto L_Started; mes "As you try to pass, two torches begin to flare and push you back. They seem to form some kind of barrier."; - close2; - warp "009-4.gat", 37, 118; - end; + close; L_Started: message strcharinfo(0), "The torches dim as you approach, granting you passage."; @@ -60,8 +58,15 @@ L_Started: close; } +009-4.gat,37,120,0|script|#OrumCaveStartBarrier|127,0,0 +{ + if (OrumQuest >= 3) end; + warp "009-4.gat", 37, 118; + end; +} + // First Barrier -009-4.gat,57,29,0|script|#OrumCaveFirstBarrier|127,1,0 +009-4.gat,57,29,0|script|#OrumCaveFirstBarrier|127,0,0 { if (OrumQuest >= 5) close; @@ -71,7 +76,7 @@ L_Started: } // Second Barrier -009-4.gat,61,54,0|script|#OrumCaveSecondBarrier|127,1,0 +009-4.gat,61,55,0|script|#OrumCaveSecondMessage|127,0,0 { if (OrumQuest == 3) set OrumQuest, 4; @@ -86,24 +91,33 @@ L_Started: mes ""; setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; mes "Looking closely between the two torches you can see the barrier has a ##B" + @colors$[@BarrierColor] + "##b tint to it."; - close2; - warp "009-4.gat", 60, 56; - end; + close; L_Allow_Second_Passage: if (OrumQuest < 9) goto L_Advance_Quest; - close; + end; L_Advance_Quest: message strcharinfo(0), "The torches dim as you enter like the first. You must be on the right trail."; set OrumQuest, 9; - close; + end; +} + +009-4.gat,61,54,0|script|#OrumCaveSecondBarrier|127,0,0 +{ + if (OrumQuest >= 9) end; + warp "009-4.gat", 60, 56; + end; } // Third Barrier -009-4.gat,24,66,0|script|#OrumCaveThirdBarrier|127,1,0 +009-4.gat,24,65,0|script|#OrumCaveThirdMessage|127,0,0 { if (OrumQuest == 3) set OrumQuest, 4; + if (OrumQuest > 8 && @Torch1Color == @firstColor && @Torch2Color == @secondColor) + goto L_Allow_Third_Passage; + if (OrumQuest > 8 && @Torch2Color == @firstColor && @Torch1Color == @secondColor) + goto L_Allow_Third_Passage; set @Barrier, 1; callfunc("GetBarrierColor"); @@ -123,32 +137,32 @@ L_Advance_Quest: if (@secondColor > 12) set @secondColor, 1; - if (OrumQuest > 8 && @Torch1Color == @firstColor && @Torch2Color == @secondColor) - goto L_Allow_Third_Passage; - if (OrumQuest > 8 && @Torch2Color == @firstColor && @Torch1Color == @secondColor) - goto L_Allow_Third_Passage; - mes "As you try to pass, the torches begin to flare and push you back. Perhaps there is a way to get past it."; mes ""; setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; mes "Looking closely between the two torches you can see the barrier has a ##B" + @colors$[@BarrierColor] + "##b tint to it."; - close2; - warp "009-4.gat", 23, 64; - end; + close; L_Allow_Third_Passage: if (OrumQuest < 10) goto L_Advance_Quest; - close; + end; L_Advance_Quest: set OrumQuest, 10; - close; + end; +} + +009-4.gat,24,66,0|script|#OrumCaveThirdBarrier|127,0,0 +{ + if (OrumQuest >= 10) end; + warp "009-4.gat", 23, 64; + end; } // Ending Barrier -009-4.gat,48,38,0|script|#OrumCaveEndBarrier|127,1,0 +009-4.gat,48,37,0|script|#OrumCaveEndMessage|127,0,0 { - if (OrumQuest >= 11) close; + if (OrumQuest >= 11) end; if (OrumQuest == 3) set OrumQuest, 4; set @Barrier, 2; @@ -246,9 +260,7 @@ L_Deny_Final_Passage: mes ""; setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; mes "Looking closely between the two torches you can see the barrier has a ##B" + @colors$[@BarrierColor] + "##b tint to it."; - close2; - warp "009-4.gat", 47, 36; - end; + close; L_Allow_Final_Passage: if (OrumQuest < 11) goto L_Advance_Quest; @@ -259,3 +271,10 @@ L_Advance_Quest: set OrumQuest, 11; close; } + +009-4.gat,48,38,0|script|#OrumCaveEndBarrier|127,0,0 +{ + if (OrumQuest >= 11) end; + warp "009-4.gat", 47, 36; + end; +} |