From 89e2ac5687d698f0843ac46612ee33b6692bbc93 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 5 Jul 2013 12:25:49 -0700 Subject: Move starting brace to new line --- world/map/npc/009-4/torches.txt | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'world/map/npc/009-4/torches.txt') diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt index 86dd95fe..8675826b 100644 --- a/world/map/npc/009-4/torches.txt +++ b/world/map/npc/009-4/torches.txt @@ -1,6 +1,7 @@ //# see detailed description at orum.txt //# see detailed description at orum.txt -function|script|GetTorchColor|{ +function|script|GetTorchColor| +{ if (@Torch < 0 || @Torch > 2) goto L_Error; set @Mask, 15; @@ -13,7 +14,8 @@ L_Error: close; } -function|script|SetTorchColor|{ +function|script|SetTorchColor| +{ if (@Torch < 0 || @Torch > 2) goto L_Error; if (@TorchColor < 1 || @TorchColor > 12) goto L_Error2; @@ -30,7 +32,8 @@ L_Error2: close; } -function|script|GetTorchIntensity|{ +function|script|GetTorchIntensity| +{ if (@Torch < 0 || @Torch > 2) goto L_Error; set @Mask, 15; @@ -43,7 +46,8 @@ L_Error: close; } -function|script|SetTorchIntensity|{ +function|script|SetTorchIntensity| +{ if (@Torch < 0 || @Torch > 2) goto L_Error; if (@TorchIntensity < 0 || @TorchIntensity > 2) goto L_Error2; @@ -60,7 +64,8 @@ L_Error2: close; } -function|script|DoneWithTorches|{ +function|script|DoneWithTorches| +{ if (OrumQuest < 11 && OrumQuest >= 8) return; @@ -80,26 +85,30 @@ L_Different: } // To make sure in range of torches -function|script|InRangeTorch1|{ +function|script|InRangeTorch1| +{ if (isin("009-4.gat",67,20,69,25)) return; mes "You're too far away to do anything with that torch."; close; } -function|script|InRangeTorch2|{ +function|script|InRangeTorch2| +{ if (isin("009-4.gat",65,41,69,46)) return; mes "You're too far away to do anything with that torch."; close; } -function|script|InRangeTorch3|{ +function|script|InRangeTorch3| +{ if (isin("009-4.gat",33,84,37,88)) return; mes "You're too far away to do anything with that torch."; close; } -function|script|TorchLoop|{ +function|script|TorchLoop| +{ // Variables used here: // @Torch - pass before calling // @TorchColor - initialized here, updated throughout @@ -259,7 +268,8 @@ L_Failed: } // First Torch -009-4.gat,68,21,0|script|Torch|400,{ +009-4.gat,68,21,0|script|Torch|400, +{ callfunc "InRangeTorch1"; callfunc "DoneWithTorches"; @@ -269,7 +279,8 @@ L_Failed: } // Second Torch -009-4.gat,67,42,0|script|Torch|400,{ +009-4.gat,67,42,0|script|Torch|400, +{ callfunc "InRangeTorch2"; callfunc "DoneWithTorches"; @@ -279,7 +290,8 @@ L_Failed: } // Third Torch -009-4.gat,33,86,0|script|Torch|400,{ +009-4.gat,33,86,0|script|Torch|400, +{ callfunc "InRangeTorch3"; callfunc "DoneWithTorches"; -- cgit v1.2.3-60-g2f50