From 46bb91d3389c79c5375f191a7a136eb775559f99 Mon Sep 17 00:00:00 2001 From: mekolat Date: Tue, 5 May 2015 23:43:14 -0400 Subject: remove close builtin from functions --- world/map/npc/009-4/barriers.txt | 9 ++++++--- world/map/npc/009-4/torches.txt | 42 ++++++++++++++++++++++++++-------------- 2 files changed, 34 insertions(+), 17 deletions(-) (limited to 'world/map/npc/009-4') diff --git a/world/map/npc/009-4/barriers.txt b/world/map/npc/009-4/barriers.txt index 4a2055fa..f629722f 100644 --- a/world/map/npc/009-4/barriers.txt +++ b/world/map/npc/009-4/barriers.txt @@ -15,7 +15,8 @@ L_GetBarrierColor: L_Error: mes "Barrier number is out of range."; - close; + close2; + return; L_Error2: callfunc "SetUpOrumQuest"; @@ -35,11 +36,13 @@ function|script|SetBarrierColor L_Error: mes "Barrier number is out of range."; - close; + close2; + return; L_Error2: mes "Barrier color is out of range."; - close; + close2; + return; } diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt index 4ad0c686..558e17c8 100644 --- a/world/map/npc/009-4/torches.txt +++ b/world/map/npc/009-4/torches.txt @@ -10,7 +10,8 @@ function|script|GetTorchColor L_Error: mes "Torch number is out of range."; - close; + close2; + return; } function|script|SetTorchColor @@ -24,11 +25,13 @@ function|script|SetTorchColor L_Error: mes "Torch number is out of range."; - close; + close2; + return; L_Error2: mes "Torch color is out of range."; - close; + close2; + return; } function|script|GetTorchIntensity @@ -42,7 +45,8 @@ function|script|GetTorchIntensity L_Error: mes "Torch number is out of range."; - close; + close2; + return; } function|script|SetTorchIntensity @@ -56,11 +60,13 @@ function|script|SetTorchIntensity L_Error: mes "Torch number is out of range."; - close; + close2; + return; L_Error2: mes "Torch intensity is out of range."; - close; + close2; + return; } function|script|DoneWithTorches @@ -75,12 +81,14 @@ function|script|DoneWithTorches if (OrumQuest < 8) mes "Without that powder the note mentions there isn't much you can do with this torch."; - close; + close2; + goto L_Return; L_Different: mes "The flame on this torch looks different than the rest. You better tell Orum about it before doing anything."; set OrumQuest, 6; - close; + close2; + goto L_Return; L_Return: return; @@ -92,7 +100,8 @@ function|script|InRangeTorch1 if (isin("009-4",67,20,69,25)) goto L_Return; mes "You're too far away to do anything with that torch."; - close; + close2; + goto L_Return; L_Return: return; @@ -102,7 +111,8 @@ function|script|InRangeTorch2 if (isin("009-4",65,41,69,46)) goto L_Return; mes "You're too far away to do anything with that torch."; - close; + close2; + goto L_Return; L_Return: return; @@ -112,7 +122,8 @@ function|script|InRangeTorch3 if (isin("009-4",33,84,37,88)) goto L_Return; mes "You're too far away to do anything with that torch."; - close; + close2; + goto L_Return; L_Return: return; @@ -144,7 +155,8 @@ L_Color_Loop: L_Leave: mes "The flame flickers as if it's laughing at you."; - close; + close2; + return; L_Use_Red: if (countitem("RedPowder") < 1) @@ -228,7 +240,8 @@ L_Use_Blue: L_No_Powder: mes "You notice you're all out of that color of powder. Perhaps Orum can make you some more."; - close; + close2; + return; L_Color_Dec: set @TorchColor, @TorchColor - 1; @@ -277,7 +290,8 @@ L_Failed: set @TorchIntensity, 0; callfunc "SetTorchIntensity"; heal -Hp, 0; - close; + close2; + return; } // First Torch -- cgit v1.2.3-60-g2f50