diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 11:06:32 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 22:21:29 -0700 |
commit | c0ba38cd4b68491e28e467889804ebc09c9c002e (patch) | |
tree | af2890e6fe20990d2a9b7c94b991be58f25a5d52 /world/map/npc/020-1/well.txt | |
parent | 514a2f05cb335c1e9210fea58bc9a9a58478283f (diff) | |
download | serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.gz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.bz2 serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.xz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.zip |
Clean up main scripts
Diffstat (limited to 'world/map/npc/020-1/well.txt')
-rw-r--r-- | world/map/npc/020-1/well.txt | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/world/map/npc/020-1/well.txt b/world/map/npc/020-1/well.txt index 1bd1fafb..05db5265 100644 --- a/world/map/npc/020-1/well.txt +++ b/world/map/npc/020-1/well.txt @@ -27,18 +27,18 @@ mes "..."; menu "Throw something in the well.", L_trew, - "Leave it alone.", -; - close; + "Leave it alone.", L_Close; L_trew: mes "What do you want to throw?"; menu - "Maggot slime", -, - "A raw log", -, - "Pile of ash", -, - "Bottle of water", -, + "Maggot slime", L_MenuItems, + "A raw log", L_MenuItems, + "Pile of ash", L_MenuItems, + "Bottle of water", L_MenuItems, "Leave it alone", L_Close; +L_MenuItems: set @menu, @menu - 1; // little IF to do @quote$ & @Item_ID @@ -62,10 +62,11 @@ L_trew: mes "\" "+ @quote$ +"\""; next; menu - "Who are you?", -, - "How did you get there?", -, - "Do you need help?", -; + "Who are you?", L_MenuItems1, + "How did you get there?", L_MenuItems1, + "Do you need help?", L_MenuItems1; +L_MenuItems1: set @menu, @menu - 1; if (@menu == 0) set @quote$, "I'll talk about who I am after leaving the well."; @@ -108,14 +109,16 @@ S_Update_Var: if(@Q_status == 2) close; if(@Q_status == 1) menu - "Hello.", -, + "Hello.", L_Close, "Hello, Can you help me?", L_HELP; - close; + goto L_Close; L_HELP: mes "[Miler]"; mes "\"What's the problem?\""; - menu "Someone has fallen in the well.", -; + menu "Someone has fallen in the well.", L_Next; + +L_Next: mes "[Miler]"; mes "\"Ho! I'll help him!\""; getexp (BaseLevel * 111), 0; @@ -123,6 +126,9 @@ L_HELP: callsub S_Update_Var; close; +L_Close: + close; + S_Update_Var: set QUEST_Nivalis_state, (QUEST_Nivalis_state & ~(@Q_MASK) |