summaryrefslogtreecommitdiff
path: root/world/map/npc/010-2
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-04-16 13:09:51 -0500
committerwushin <pasekei@gmail.com>2014-04-16 13:09:51 -0500
commite04e9eb0065caa6adf12ef36efbd3c5a3c5c3652 (patch)
treec57506b8665c9acc305bc6c85064bb4a7ab1fbc5 /world/map/npc/010-2
parent566297bd2b1467cf23e88bb2c0ad210b7d5a2ffa (diff)
parentc84e27e10b0f6ed56ae0ee1b0ec4fe7e9d0fd507 (diff)
downloadserverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.gz
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.bz2
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.xz
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.zip
Merge pull request #79 from wushin/Tile-Fixes-Map-Travelv2014.4.16
Tile map fixes sprite travel
Diffstat (limited to 'world/map/npc/010-2')
-rw-r--r--world/map/npc/010-2/_import.txt1
-rw-r--r--world/map/npc/010-2/chef.txt12
-rw-r--r--world/map/npc/010-2/loratay.txt105
-rw-r--r--world/map/npc/010-2/mapflags.txt1
4 files changed, 69 insertions, 50 deletions
diff --git a/world/map/npc/010-2/_import.txt b/world/map/npc/010-2/_import.txt
index 567b7a12..1aeba756 100644
--- a/world/map/npc/010-2/_import.txt
+++ b/world/map/npc/010-2/_import.txt
@@ -7,4 +7,5 @@ npc: npc/010-2/chef.txt
npc: npc/010-2/dimonds.txt
npc: npc/010-2/doug.txt
npc: npc/010-2/loratay.txt
+npc: npc/010-2/mapflags.txt
npc: npc/010-2/workers.txt
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;
}
diff --git a/world/map/npc/010-2/mapflags.txt b/world/map/npc/010-2/mapflags.txt
new file mode 100644
index 00000000..143c5f2a
--- /dev/null
+++ b/world/map/npc/010-2/mapflags.txt
@@ -0,0 +1 @@
+010-2.gat|mapflag|resave|010-1,27,97