diff options
author | wushin <pasekei@gmail.com> | 2014-04-11 14:32:22 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2014-04-15 20:26:28 -0500 |
commit | 47f790759ea3ea56d31e000bc3f3b7f142ee802d (patch) | |
tree | 369dc32bddb447076c5cf9298f6624366aa03ce2 /world/map/npc/010-2 | |
parent | 6e9543af67c5e027269bfc32e9c6f36111f3832a (diff) | |
download | serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.gz serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.bz2 serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.xz serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.zip |
Npcs remaining script fixes
Npcs changed for travel
Npcs changed for new maps
Npcs changed for basic crypts
Diffstat (limited to 'world/map/npc/010-2')
-rw-r--r-- | world/map/npc/010-2/chef.txt | 12 | ||||
-rw-r--r-- | world/map/npc/010-2/loratay.txt | 105 |
2 files changed, 67 insertions, 50 deletions
diff --git a/world/map/npc/010-2/chef.txt b/world/map/npc/010-2/chef.txt index 1ea64fef..0f1785d7 100644 --- a/world/map/npc/010-2/chef.txt +++ b/world/map/npc/010-2/chef.txt @@ -14,7 +14,7 @@ L_lace_chococake: next; menu - "Sorry.", L_end, + "Sorry.", L_End, "I need your help with a sick young girl!", L_Next; L_Next: @@ -27,7 +27,7 @@ L_Next: L_lace_cupcake: next; menu - "Sorry.", L_end, + "Sorry.", L_End, "I need your help with a sick young girl!", L_Next1; L_Next1: @@ -54,9 +54,9 @@ L_Next2: mes "\"Ah yes. We need to bind the smell in gingerbread. Bring me three pieces of gingerbread, one orange, and 500 GP for the other ingredients, and I will make you your cupcake.\""; next; menu - "I'll go and get it.", L_end, + "I'll go and get it.", L_End, "Here you are!", L_Next3, - "Not now.", L_end; + "Not now.", L_End; L_Next3: if (countitem ("GingerBreadMan") < 3) @@ -120,8 +120,8 @@ L_bringit: mes ""; mes "\"Bring it here when you do.\""; next; - goto L_end; + goto L_End; -L_end: +L_End: close; } diff --git a/world/map/npc/010-2/loratay.txt b/world/map/npc/010-2/loratay.txt index f9467e40..3e4bde85 100644 --- a/world/map/npc/010-2/loratay.txt +++ b/world/map/npc/010-2/loratay.txt @@ -157,14 +157,18 @@ L_agostine_2: if (countitem("BottleOfWater")) menu "(sneak out of the room)", L_end, - "Are you alright?", L_Next, + "Are you alright?", L_NextMenu, "Here, have a bottle of water...", L_give_water, - "Can I help you?", L_Next; + "Can I help you?", L_NextMenu; + goto L_NextMenu; - menu - "(sneak out of the room)", L_end, - "Are you alright?", L_Next, - "Can I help you?", L_Next; +L_NextMenu: + if (countitem("BottleOfWater") == 0) + menu + "(sneak out of the room)", L_end, + "Are you alright?", L_Next, + "Can I help you?", L_Next; + goto L_Next; L_Next: mes "[Lora Tay the Seamstress]"; @@ -368,7 +372,7 @@ L_proposal_retrieve_design: mes "\"May you go retrieve the design from Agostine?\""; next; menu - "Certainly I'll be back soon!", L_end, + "Certainly I'll be back soon!", L_Close, "Actually I want something else...", L_main_menu; L_proposal_bringing_design: @@ -428,7 +432,7 @@ L_proposal_deliver_dress: mes "[Lora Tay the Seamstress]"; mes "\"Please take the unfinished dress to him so he may finish the edges with the cloth.\""; menu - "I'm on my way.", L_end, + "I'm on my way.", L_Close, "I have a request...", L_main_menu; L_desert_hat: @@ -865,62 +869,72 @@ S_pick_one_of_many_items: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""; - goto L_SUB_pick_choice_loop; + goto S_SUB_pick_choice_loop; -L_SUB_pick_choice_loop: +S_SUB_pick_choice_loop: if (@i >= @items_nr) - goto L_SUB_choice_init_done; + goto S_SUB_choice_init_done; set @current, @items[@i]; set @current_name$, @item_names$[@i]; set @i, @i + 1; if (countitem(@current) == 0) - goto L_SUB_pick_choice_loop; + goto S_SUB_pick_choice_loop; set @choice_v[@c], @current; set @choice_n$[@c], @current_name$; set @c, @c + 1; - goto L_SUB_pick_choice_loop; + goto S_SUB_pick_choice_loop; -L_SUB_choice_init_done: +S_SUB_choice_init_done: set @choice_v[@c], 0; set @choice_n$[@c], @default_choice$; set @c, @c + 1; if (@c < 10) menu - @choice_n$[0], L_SUB_choice_join, - @choice_n$[1], L_SUB_choice_join, - @choice_n$[2], L_SUB_choice_join, - @choice_n$[3], L_SUB_choice_join, - @choice_n$[4], L_SUB_choice_join, - @choice_n$[5], L_SUB_choice_join, - @choice_n$[6], L_SUB_choice_join, - @choice_n$[7], L_SUB_choice_join, - @choice_n$[8], L_SUB_choice_join, - @choice_n$[9], L_SUB_choice_join; + @choice_n$[0], L_MenuItems, + @choice_n$[1], L_MenuItems, + @choice_n$[2], L_MenuItems, + @choice_n$[3], L_MenuItems, + @choice_n$[4], L_MenuItems, + @choice_n$[5], L_MenuItems, + @choice_n$[6], L_MenuItems, + @choice_n$[7], L_MenuItems, + @choice_n$[8], L_MenuItems, + @choice_n$[9], L_MenuItems; + goto L_MenuItems; + +L_MenuItems: + if (@c < 10) + goto L_SUB_choice_join; if (@c < 20) menu - @choice_n$[0], L_SUB_choice_join, - @choice_n$[1], L_SUB_choice_join, - @choice_n$[2], L_SUB_choice_join, - @choice_n$[3], L_SUB_choice_join, - @choice_n$[4], L_SUB_choice_join, - @choice_n$[5], L_SUB_choice_join, - @choice_n$[6], L_SUB_choice_join, - @choice_n$[7], L_SUB_choice_join, - @choice_n$[8], L_SUB_choice_join, - @choice_n$[9], L_SUB_choice_join, - @choice_n$[10], L_SUB_choice_join, - @choice_n$[11], L_SUB_choice_join, - @choice_n$[12], L_SUB_choice_join, - @choice_n$[13], L_SUB_choice_join, - @choice_n$[14], L_SUB_choice_join, - @choice_n$[15], L_SUB_choice_join, - @choice_n$[16], L_SUB_choice_join, - @choice_n$[17], L_SUB_choice_join, - @choice_n$[18], L_SUB_choice_join, - @choice_n$[19], L_SUB_choice_join; + @choice_n$[0], L_MenuItems1, + @choice_n$[1], L_MenuItems1, + @choice_n$[2], L_MenuItems1, + @choice_n$[3], L_MenuItems1, + @choice_n$[4], L_MenuItems1, + @choice_n$[5], L_MenuItems1, + @choice_n$[6], L_MenuItems1, + @choice_n$[7], L_MenuItems1, + @choice_n$[8], L_MenuItems1, + @choice_n$[9], L_MenuItems1, + @choice_n$[10], L_MenuItems1, + @choice_n$[11], L_MenuItems1, + @choice_n$[12], L_MenuItems1, + @choice_n$[13], L_MenuItems1, + @choice_n$[14], L_MenuItems1, + @choice_n$[15], L_MenuItems1, + @choice_n$[16], L_MenuItems1, + @choice_n$[17], L_MenuItems1, + @choice_n$[18], L_MenuItems1, + @choice_n$[19], L_MenuItems1; + goto L_MenuItems1; + +L_MenuItems1: + if (@c < 20) + goto L_SUB_choice_join; menu @choice_n$[0], L_SUB_choice_join, @@ -1115,4 +1129,7 @@ L_CleanSorcererRobe: set @chosen_color, 0; set @cotton_cloth_id, 0; close; + +L_Close: + close; } |