summaryrefslogtreecommitdiff
path: root/world/map/npc/012-1
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-02 11:06:32 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-02 22:21:29 -0700
commitc0ba38cd4b68491e28e467889804ebc09c9c002e (patch)
treeaf2890e6fe20990d2a9b7c94b991be58f25a5d52 /world/map/npc/012-1
parent514a2f05cb335c1e9210fea58bc9a9a58478283f (diff)
downloadserverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.gz
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.bz2
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.xz
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.zip
Clean up main scripts
Diffstat (limited to 'world/map/npc/012-1')
-rw-r--r--world/map/npc/012-1/flowerpentagram2.txt3
-rw-r--r--world/map/npc/012-1/injured-mouboo.txt41
-rw-r--r--world/map/npc/012-1/shops.txt28
3 files changed, 42 insertions, 30 deletions
diff --git a/world/map/npc/012-1/flowerpentagram2.txt b/world/map/npc/012-1/flowerpentagram2.txt
index d719ad00..e002ec8a 100644
--- a/world/map/npc/012-1/flowerpentagram2.txt
+++ b/world/map/npc/012-1/flowerpentagram2.txt
@@ -13,9 +13,10 @@
L_SecondFlower:
mes "Orum described this place. You have to place the second magical flower here.";
menu
- "Place the flower.", -,
+ "Place the flower.", L_Next,
"Leave.", L_Close;
+L_Next:
if (isin("012-1.gat", 142, 69, 144, 71))
goto L_Place;
diff --git a/world/map/npc/012-1/injured-mouboo.txt b/world/map/npc/012-1/injured-mouboo.txt
index 5f629cbe..4b10e100 100644
--- a/world/map/npc/012-1/injured-mouboo.txt
+++ b/world/map/npc/012-1/injured-mouboo.txt
@@ -67,14 +67,14 @@ S_update_var:
mes "[Injured Mouboo]";
mes "You notice a mouboo lying on the ground, groaning, as if in pain.";
next;
+ goto L_menu;
L_menu:
menu
"Examine the mouboo", L_examine,
"Give the mouboo something", L_give,
"Kill the mouboo", L_kill,
- "Leave", -;
- close;
+ "Leave", L_Close;
L_examine:
mes "[Injured Mouboo]";
@@ -87,7 +87,6 @@ L_examine:
menu
"Yes.", L_pickup_alive,
"No.", L_menu;
- goto L_menu;
L_pickup_alive:
mes "[Injured Mouboo]";
@@ -107,6 +106,7 @@ L_give:
set @n, 0;
set @ct, 0;
+ goto L_nloop;
L_nloop:
set @k$, @items$[@n];
@@ -118,6 +118,7 @@ L_nloop:
set @menuNames$[@ct], @k$;
set @choice_eat[@ct], @itemeat[@n];
set @ct, @ct + 1;
+ goto L_nloop_skip;
L_nloop_skip:
set @n, @n+1;
@@ -127,20 +128,21 @@ L_nloop_skip:
set @menuItems$[@ct], "Nevermind";
menu
- @menuItems$[0], -,
- @menuItems$[1], -,
- @menuItems$[2], -,
- @menuItems$[3], -,
- @menuItems$[4], -,
- @menuItems$[5], -,
- @menuItems$[6], -,
- @menuItems$[7], -,
- @menuItems$[8], -,
- @menuItems$[9], -,
- @menuItems$[10], -,
- @menuItems$[11], -,
- @menuItems$[12], -;
-
+ @menuItems$[0], L_MenuItems,
+ @menuItems$[1], L_MenuItems,
+ @menuItems$[2], L_MenuItems,
+ @menuItems$[3], L_MenuItems,
+ @menuItems$[4], L_MenuItems,
+ @menuItems$[5], L_MenuItems,
+ @menuItems$[6], L_MenuItems,
+ @menuItems$[7], L_MenuItems,
+ @menuItems$[8], L_MenuItems,
+ @menuItems$[9], L_MenuItems,
+ @menuItems$[10], L_MenuItems,
+ @menuItems$[11], L_MenuItems,
+ @menuItems$[12], L_MenuItems;
+
+L_MenuItems:
set @menu, @menu - 1;
if (@menu == @ct)
goto L_menu;
@@ -166,6 +168,7 @@ L_consume:
L_do_heal:
callfunc "QuestMoubooHeal";
+ goto L_kill;
L_kill:
mes "[Injured Mouboo]";
@@ -184,6 +187,7 @@ L_kill_success:
set @Q_status, @STATE_KILLED_MOUBOO;
callsub S_update_var;
next;
+ goto L_dead;
L_dead:
mes "[Dead Mouboo]";
@@ -211,6 +215,9 @@ L_healed:
mes "The mouboo is sleeping soundly, smiling in its dreams.";
close;
+L_Close:
+ close;
+
S_update_var:
set @Q_wr_status, @Q_status | @Q_status_upper;
set QUEST_MAGIC,
diff --git a/world/map/npc/012-1/shops.txt b/world/map/npc/012-1/shops.txt
index ac627e1f..4a144212 100644
--- a/world/map/npc/012-1/shops.txt
+++ b/world/map/npc/012-1/shops.txt
@@ -19,23 +19,27 @@ L_RoseHat:
mes "[Blossom]";
mes "\"Certainly, which color do you have?\"";
menu
- "A red one.", -,
- "A white one.", -,
- "A pink one.", -,
- "A yellow one.", -,
- "An orange one.", -,
- "A blue one.", -;
+ "A red one.", L_MenuItems,
+ "A white one.", L_MenuItems,
+ "A pink one.", L_MenuItems,
+ "A yellow one.", L_MenuItems,
+ "An orange one.", L_MenuItems,
+ "A blue one.", L_MenuItems;
+
+L_MenuItems:
set @have_id, @base_id + @menu - 1;
mes "[Blossom]";
mes "\"And which color would you like?\"";
menu
- "A red one.", -,
- "A white one.", -,
- "A pink one.", -,
- "A yellow one.", -,
- "An orange one.", -,
- "A blue one.", -;
+ "A red one.", L_MenuItems1,
+ "A white one.", L_MenuItems1,
+ "A pink one.", L_MenuItems1,
+ "A yellow one.", L_MenuItems1,
+ "An orange one.", L_MenuItems1,
+ "A blue one.", L_MenuItems1;
+
+L_MenuItems1:
set @receive_id, @base_id + @menu - 1;
if (@have_id == @receive_id)