From c0ba38cd4b68491e28e467889804ebc09c9c002e Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 2 Apr 2014 11:06:32 -0700 Subject: Clean up main scripts --- world/map/npc/009-2/selim.txt | 47 +++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 20 deletions(-) (limited to 'world/map/npc/009-2/selim.txt') diff --git a/world/map/npc/009-2/selim.txt b/world/map/npc/009-2/selim.txt index dee87a8e..92c7aa2e 100644 --- a/world/map/npc/009-2/selim.txt +++ b/world/map/npc/009-2/selim.txt @@ -12,6 +12,7 @@ mes "[Selim]"; mes "\"What can I dye for you today?\""; next; + goto L_clothes_choice; L_clothes_choice: set @pronoun$, "it"; @@ -38,8 +39,7 @@ L_clothes_choice: "Bowler hat (brown).", L_bowlerhatbrown, "Fine dress.", L_finedress, "About these sorcerer robes...", L_asksorcererrobe, - "I'm fine for now, thanks.", -; - close; + "I'm fine for now, thanks.", L_Close; L_cottonshirt: set @del, 1202; @@ -165,8 +165,7 @@ L_sorcererrobe: "A purple lined one.", L_purplelinedsorcererrobe, "A dark green lined one.", L_darkgreenlinedsorcererrobe, "A white lined one.", L_whitelinedsorcererrobe, - "I'm fine for now, thanks.", -; - close; + "I'm fine for now, thanks.", L_Close; L_redlinedsorcererrobe: set @del, 798; @@ -257,39 +256,45 @@ L_asksorcererrobe: mes "\"Yes?\""; next; menu - "Do you think you can dye that line to a different color?", -; + "Do you think you can dye that line to a different color?", L_Next1; + +L_Next1: mes "[Selim]"; mes "\"Hum, I fear I can't do that. The area is too small and I can operate only on large ones."; mes "But with the appropriate materials, maybe a talented tailor can make the change.\""; next; menu - "Oh, I see!", -; + "Oh, I see!", L_Next; + +L_Next: mes "[Selim]"; mes "\"Of course I can help you by dyeing the materials your tailor will want."; mes "All I need is a piece of Cotton Cloth.\""; menu "Sure. Here is one.", L_cottoncloth, - "I have to go pick that.", -; - close; + "I have to go pick that.", L_Close; L_picked_item: if (countitem(@del) == 0) goto L_havenone; + goto L_colour; L_colour: mes "[Selim]"; mes "\"Excellent. Now, what color do you want?\""; next; menu - "Red.", -, - "Green.", -, - "Dark Blue.", -, - "Yellow.", -, - "Light Blue.", -, - "Pink.", -, - "Black.", -, - "Orange.", -, - "Purple.", -, - "Dark Green.", -; + "Red.", L_MenuItems, + "Green.", L_MenuItems, + "Dark Blue.", L_MenuItems, + "Yellow.", L_MenuItems, + "Light Blue.", L_MenuItems, + "Pink.", L_MenuItems, + "Black.", L_MenuItems, + "Orange.", L_MenuItems, + "Purple.", L_MenuItems, + "Dark Green.", L_MenuItems; + +L_MenuItems: set @colour, @menu - 1; set @vial, 690 + @colour; if (countitem(@vial) == 0) goto L_no_dye; @@ -305,8 +310,7 @@ L_no_dye: "I wanted to dye a different item anyway.", L_clothes_choice, "What do you mean, `bring you dye'?", L_explain_dye, "Where would I get dye?", L_explain_dye, - "Never mind.", -; - close; + "Never mind.", L_Close; L_explain_dye: if (QUEST_clothdyer_knowsdye < 1) @@ -332,4 +336,7 @@ L_havenone: mes "Would you like to dye something else?\""; next; goto L_clothes_choice; + +L_Close: + close; } -- cgit v1.2.3-60-g2f50