From bdc33686d71a23fde0a938dac6639ec1ffd4c636 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 26 Dec 2008 19:41:58 +0000 Subject: Inital rework of desert monsters --- npc/001-1_Tulimshar/_import.txt | 1 - npc/001-1_Tulimshar/_mobs.txt | 9 +++++++++ npc/001-1_Tulimshar/monsters.txt | 26 -------------------------- 3 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 npc/001-1_Tulimshar/monsters.txt (limited to 'npc/001-1_Tulimshar') diff --git a/npc/001-1_Tulimshar/_import.txt b/npc/001-1_Tulimshar/_import.txt index 31adafe1..8fe3add8 100644 --- a/npc/001-1_Tulimshar/_import.txt +++ b/npc/001-1_Tulimshar/_import.txt @@ -13,7 +13,6 @@ npc: npc/001-1_Tulimshar/guide.txt npc: npc/001-1_Tulimshar/man.txt npc: npc/001-1_Tulimshar/merchant.txt npc: npc/001-1_Tulimshar/monster_guide.txt -npc: npc/001-1_Tulimshar/monsters.txt npc: npc/001-1_Tulimshar/rewards_master.txt npc: npc/001-1_Tulimshar/rules.txt npc: npc/001-1_Tulimshar/sandra.txt diff --git a/npc/001-1_Tulimshar/_mobs.txt b/npc/001-1_Tulimshar/_mobs.txt index db1ae2e8..731b17b1 100644 --- a/npc/001-1_Tulimshar/_mobs.txt +++ b/npc/001-1_Tulimshar/_mobs.txt @@ -1,7 +1,16 @@ // 001-1 Tulimshar mobs +001-1.gat,82,30,9,8 monster Maggot 1002,5,0,0,Mob001-1::On1002 +001-1.gat,115,25,8,4 monster Maggot 1002,3,0,0,Mob001-1::On1002 +001-1.gat,124,53,15,13 monster Maggot 1002,10,0,0,Mob001-1::On1002 +001-1.gat,120,64,15,13 monster Maggot 1002,11,0,0,Mob001-1::On1002 001-1.gat,0,0,0 script Mob001-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + end; } diff --git a/npc/001-1_Tulimshar/monsters.txt b/npc/001-1_Tulimshar/monsters.txt deleted file mode 100644 index e5e19a0d..00000000 --- a/npc/001-1_Tulimshar/monsters.txt +++ /dev/null @@ -1,26 +0,0 @@ -// Map: 001-1 -// This is Tulimshar the city -- southern part with market and casino/inn. -// - -001-1.gat,0,0,0,0 monster Maggot 1002,35,2000,0,Mob3::OnMaggot -001-1.gat,0,0,0,0 monster Scorpion 1003,25,2500,0,Mob3::OnScorpion -001-1.gat,0,0,0,0 monster Firegoblin 1011,20,2500,0,Mob3::OnFireGoblin - -001-1.gat,0,0,0 script Mob3 -1,{ -OnMaggot: - set @mobID, 1002; - callfunc "MobPoints"; - break; - -OnScorpion: - set @mobID, 1003; - callfunc "MobPoints"; - break; - -OnFireGoblin: - set @mobID, 1011; - callfunc "MobPoints"; - break; - - end; -} -- cgit v1.2.3-60-g2f50 From 2ac5a7006c550c5ee85d3070b07bdb327ff83ec1 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 27 Dec 2008 00:33:43 +0000 Subject: Fix name of map 018-2 --- npc/001-1_Tulimshar/_mobs.txt | 11 + npc/018-2_Woodland_mining_camp/_import.txt | 8 + npc/018-2_Woodland_mining_camp/_mobs.txt | 13 + npc/018-2_Woodland_mining_camp/_warps.txt | 9 + npc/018-2_Woodland_mining_camp/angus.txt | 19 + npc/018-2_Woodland_mining_camp/books.txt | 18 + npc/018-2_Woodland_mining_camp/caul.txt | 479 +++++++++++++++++++++++ npc/018-2_Woodland_mining_camp/miners.txt | 15 + npc/018-2_Woodland_mining_camp/receptionist.txt | 65 +++ npc/018-2_Woodland_minning_camp/_import.txt | 8 - npc/018-2_Woodland_minning_camp/_mobs.txt | 13 - npc/018-2_Woodland_minning_camp/_warps.txt | 9 - npc/018-2_Woodland_minning_camp/angus.txt | 19 - npc/018-2_Woodland_minning_camp/books.txt | 18 - npc/018-2_Woodland_minning_camp/caul.txt | 479 ----------------------- npc/018-2_Woodland_minning_camp/miners.txt | 15 - npc/018-2_Woodland_minning_camp/receptionist.txt | 65 --- npc/023-1_Beach_Cliffs/_import.txt | 3 + npc/023-1_Beach_Cliffs/_mobs.txt | 7 + npc/023-1_Beach_Cliffs/_warps.txt | 4 + npc/_import.txt | 2 +- 21 files changed, 652 insertions(+), 627 deletions(-) create mode 100644 npc/018-2_Woodland_mining_camp/_import.txt create mode 100644 npc/018-2_Woodland_mining_camp/_mobs.txt create mode 100644 npc/018-2_Woodland_mining_camp/_warps.txt create mode 100644 npc/018-2_Woodland_mining_camp/angus.txt create mode 100644 npc/018-2_Woodland_mining_camp/books.txt create mode 100644 npc/018-2_Woodland_mining_camp/caul.txt create mode 100644 npc/018-2_Woodland_mining_camp/miners.txt create mode 100644 npc/018-2_Woodland_mining_camp/receptionist.txt delete mode 100644 npc/018-2_Woodland_minning_camp/_import.txt delete mode 100644 npc/018-2_Woodland_minning_camp/_mobs.txt delete mode 100644 npc/018-2_Woodland_minning_camp/_warps.txt delete mode 100644 npc/018-2_Woodland_minning_camp/angus.txt delete mode 100644 npc/018-2_Woodland_minning_camp/books.txt delete mode 100644 npc/018-2_Woodland_minning_camp/caul.txt delete mode 100644 npc/018-2_Woodland_minning_camp/miners.txt delete mode 100644 npc/018-2_Woodland_minning_camp/receptionist.txt create mode 100644 npc/023-1_Beach_Cliffs/_import.txt create mode 100644 npc/023-1_Beach_Cliffs/_mobs.txt create mode 100644 npc/023-1_Beach_Cliffs/_warps.txt (limited to 'npc/001-1_Tulimshar') diff --git a/npc/001-1_Tulimshar/_mobs.txt b/npc/001-1_Tulimshar/_mobs.txt index 731b17b1..a24fe7c5 100644 --- a/npc/001-1_Tulimshar/_mobs.txt +++ b/npc/001-1_Tulimshar/_mobs.txt @@ -1,5 +1,11 @@ // 001-1 Tulimshar mobs +001-1.gat,44,87,2,1 monster Scorpion 1003,1,30000,0,Mob001-1::On1003 +001-1.gat,44,87,2,1 monster Scorpion 1003,1,60000,0,Mob001-1::On1003 +001-1.gat,44,87,2,1 monster Scorpion 1003,1,90000,0,Mob001-1::On1003 +001-1.gat,44,87,2,1 monster Scorpion 1003,1,180000,0,Mob001-1::On1003 +001-1.gat,44,87,2,1 monster Scorpion 1003,1,270000,0,Mob001-1::On1003 +001-1.gat,44,87,2,1 monster Scorpion 1003,1,360000,0,Mob001-1::On1003 001-1.gat,82,30,9,8 monster Maggot 1002,5,0,0,Mob001-1::On1002 001-1.gat,115,25,8,4 monster Maggot 1002,3,0,0,Mob001-1::On1002 001-1.gat,124,53,15,13 monster Maggot 1002,10,0,0,Mob001-1::On1002 @@ -12,5 +18,10 @@ On1002: callfunc "MobPoints"; break; +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + end; } diff --git a/npc/018-2_Woodland_mining_camp/_import.txt b/npc/018-2_Woodland_mining_camp/_import.txt new file mode 100644 index 00000000..ebd519f8 --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/_import.txt @@ -0,0 +1,8 @@ +map: 018-2.gat +npc: npc/018-2_Woodland_mining_camp/_mobs.txt +npc: npc/018-2_Woodland_mining_camp/_warps.txt +npc: npc/018-2_Woodland_mining_camp/angus.txt +npc: npc/018-2_Woodland_mining_camp/books.txt +npc: npc/018-2_Woodland_mining_camp/caul.txt +npc: npc/018-2_Woodland_mining_camp/miners.txt +npc: npc/018-2_Woodland_mining_camp/receptionist.txt diff --git a/npc/018-2_Woodland_mining_camp/_mobs.txt b/npc/018-2_Woodland_mining_camp/_mobs.txt new file mode 100644 index 00000000..836e0697 --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/_mobs.txt @@ -0,0 +1,13 @@ +// 018-2 Woodland mining camp mobs + +018-2.gat,114,21,4,3 monster Yellow Slime 1007,1,0,0,Mob018-2::On1007 + + +018-2.gat,0,0,0 script Mob018-2 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + + end; +} diff --git a/npc/018-2_Woodland_mining_camp/_warps.txt b/npc/018-2_Woodland_mining_camp/_warps.txt new file mode 100644 index 00000000..772f1b40 --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/_warps.txt @@ -0,0 +1,9 @@ +// 018-2 Woodland mining camp warps + +018-2.gat,50,29 warp toOutside -1,-1,018-1.gat,65,74 +018-2.gat,41,20 warp toOutside -1,-1,018-1.gat,65,69 +018-2.gat,20,24 warp toBasement -1,-1,018-2.gat,112,27 +018-2.gat,112,26 warp toFirstFloor -1,-1,018-2.gat,20,23 +018-2.gat,21,28 warp toSecondFloor 0,-1,018-2.gat,79,25 +018-2.gat,79,26 warp toFirstFloor 0,-1,018-2.gat,21,29 +018-2.gat,114,20 warp toCave -1,-1,018-3.gat,177,53 diff --git a/npc/018-2_Woodland_mining_camp/angus.txt b/npc/018-2_Woodland_mining_camp/angus.txt new file mode 100644 index 00000000..bf9f725e --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/angus.txt @@ -0,0 +1,19 @@ +// Angus the craftsman + +018-2.gat,31,39,0 script Angus 147,{ + set @honorific$, "lad"; + if (Sex == 0) set @honorific$, "lass"; + + if (Inspector == 10) goto L_NohMask; + + mes "[Angus]"; + mes "Angus is tinkering with some mechanical concoction."; + mes "\"It keeps breakin' left an' right... fortunat'ly I put in redundancies everywhere, but I haf' to keep repairin'.\""; + next; + close; + +L_NohMask: + mes "[Angus]"; + mes "\"I'm sorry, " + @honorific$ + ", I truely am, but I stay in the town. One o' the miners might have heard something.\""; + close; +} diff --git a/npc/018-2_Woodland_mining_camp/books.txt b/npc/018-2_Woodland_mining_camp/books.txt new file mode 100644 index 00000000..22364c6d --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/books.txt @@ -0,0 +1,18 @@ +// + +018-2.gat,112,19,0 script #Bookcase38 127,0,1{ + if (Inspector == 11) goto L_NohMask; + + mes "Looking over the bookcase, you find nothing strange or out of order."; + close; + +L_NohMask: + mes "Looking over the bookcase closely, you find a book is upside down."; + next; + + mes "The book has been hollowed out. Inside is a theater mask and a note that you cannot even begin to read."; + next; + + set Inspector, 12; + close; +} diff --git a/npc/018-2_Woodland_mining_camp/caul.txt b/npc/018-2_Woodland_mining_camp/caul.txt new file mode 100644 index 00000000..1aeda920 --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/caul.txt @@ -0,0 +1,479 @@ +//################################################################################# +//# +//# this script file contains the script for the NPC which allows the +//# PCs to create potions from herbs. +//# +//# Participates in the monster oil subquest (cf. Nicholas' Setzer quest) +//# +//################################################################################# + +018-2.gat,37,22,0 script Caul 107,{ + set @SETZER_INITIAL, 0; + set @SETZER_KNOWS_OIL, 1; + set @SETZER_KNOWS_STINGER, 2; + set @SETZER_FLAG_MADE_OIL, 4; + + set @PEARL, 700; + set @SNAKE_SKIN, 641; + set @BLACK_STINGER, 709; + set @ASH_PILE, 701; + set @GOLDEN_STINGER, 706; + set @MONSTER_OIL, 707; + set @MONSTER_OIL_XP, 100000; + + set @Q_MASK, NIBBLE_3_MASK; + set @Q_SHIFT, NIBBLE_3_SHIFT; + + set @MAUVE, 680; + set @COBALT, 681; + set @GAMBOGE, 682; + set @ALIZARIN, 683; + + set @Q_status, (QUEST_Forestbow_state & @Q_MASK) >> @Q_SHIFT; + + mes "[Caul]"; + mes "\"I can help you to brew healing potions out of mauve, cobalt, gamboge and alizarin herbs."; + mes "How many potions do you want to brew?\""; + next; + + + if (@Q_status && Inspector == 10) + menu + "One", L_1, + "Five", L_5, + "Ten", L_10, + "Fifty", L_50, + "I would like to brew monster oil.", L_monster_oil_start, + "Actually...", L_NohMask, + "Never mind", L_close; + if (@Q_status && Inspector != 10) + menu + "One", L_1, + "Five", L_5, + "Ten", L_10, + "Fifty", L_50, + "I would like to brew monster oil.", L_monster_oil_start, + "Never mind", L_close; + if (!@Q_status && Inspector == 10) + menu + "One", L_1, + "Five", L_5, + "Ten", L_10, + "Fifty", L_50, + "Actually...", L_NohMask, + "Never mind", L_close; + if (!@Q_status && Inspector != 10) + menu + "One", L_1, + "Five", L_5, + "Ten", L_10, + "Fifty", L_50, + "Never mind", L_close; + +L_1: + set @num, 1; + goto L_brew; + +L_5: + set @num, 5; + goto L_brew; + +L_10: + set @num, 10; + goto L_brew; + +L_50: + set @num, 50; + goto L_brew; + + +L_brew: + mes "[Caul]"; + mes "\"Now put " + @num + " herbs of each kind into the cauldron, stir, and concentrate all your mental energy on it.\""; + next; + + if (countitem(@MAUVE) < @num) goto L_NotEnough; + if (countitem(@COBALT) < @num) goto L_NotEnough; + if (countitem(@GAMBOGE) < @num) goto L_NotEnough; + if (countitem(@ALIZARIN) < @num) goto L_NotEnough; + + set @a, @num; + set @result1, 0; + set @result2, 0; + set @result3, 0; + set @result4, 0; + +L_CraftLoop: + set @throw, rand(readparam(bInt)); + set @result, 1; + if (@throw >= 5) set @result, 2; + if (@throw >= 15) set @result, 3; + if (@throw >= 35) set @result, 4; + + if (@result == 1) set @result1, @result1 + 1; + if (@result == 2) set @result2, @result2 + 1; + if (@result == 3) set @result3, @result3 + 1; + if (@result == 4) set @result4, @result4 + 1; + + set @a, @a - 1; + if (@a > 0) goto L_CraftLoop; + + delitem @MAUVE, @num; + delitem @COBALT, @num; + delitem @GAMBOGE, @num; + delitem @ALIZARIN, @num; + + getitem 684, @result1; + getitem 685, @result2; + getitem 686, @result3; + getitem 687, @result4; + + mes "[Caul]"; + mes "\"Well done! You made:"; + if (@result1 > 0) mes @result1 + " tiny potions"; + if (@result2 > 0) mes @result2 + " small potions"; + if (@result3 > 0) mes @result3 + " medium potions"; + if (@result4 > 0) mes @result4 + " large potions"; + mes "Come again.\""; + close; + +L_NotEnough: + mes "[Caul]"; + mes "\"Oh, it seems like you don't have enough herbs. You can find herbs in deep forests.\""; + close; + +L_monster_oil_start: + mes "[Caul]"; + mes "\"Monster oil? Hmm, I have heard of it, but I don't remember the precise recipe to make it...\""; + next; + if (@Q_status == @SETZER_KNOWS_OIL) + menu "OK, I'll ask around, perhaps someone else knows.", L_close; + if (@Q_status > @SETZER_KNOWS_OIL) + menu "Rauk told me the recipe.", L_monster_oil_knows_recipe; + close; + +L_monster_oil_knows_recipe: + mes "[Caul]"; + mes "\"Ah, but of course! Yes, we should be able to brew that here. Except that... hmm. Pearl and three black scorpion stingers? This sounds very dangerous;"; + mes "I fear that I will have to ask you to do this yourself.\""; + next; + +L_monster_oil_main_menu: + set @main_menu, 1; + menu + "What do you mean by 'dangerous'?", L_monster_oil_why_dangerous, + "What do I need, again?", L_monster_oil_ingredients, + "How does this work?", L_monster_oil_explain, + "Let's start!", L_monster_oil_start_brew, + "Where can I get a golden scorpion stinger?", L_monster_oil_where_gold, + "I've changed my mind.", L_close; + close; + +L_monster_oil_why_dangerous: + mes "[Caul]"; + mes "\"Well, with those two reagents in there at that ratio, you risk an explosion-- quite possibly a fatal one. So be prepared to duck if the brew gets too bubbly-- it's better to lose the ingredients than your head!\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_ingredients: + mes "[Caul]"; + mes "\"You will need one pearl, two snake skins, three black scorpion stingers, two piles of ash, and a golden scorpion stinger. The golden stinger goes in last, after the dangerous part, so you won't lose if if your brew blows up.\""; + next; + mes "[Caul]"; + mes "\"You should also bring gamboge, mauve, alizarin and cobalt leaves. You will have to stabilize the brew, and they will help with that.\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_explain: + mes "[Caul]"; + mes "\"After you have put in the monster parts-- except for the golden stinger-- the brew will take on some random color; this can be a light, dark, or medium color. You have to stabilize this color by adding leaves to it.\""; + next; + mes "[Caul]"; + mes "\"Of course, with such a violent brew the mixture will change color by itself, too, probably faster than your leaves can affect it. It will randomly add or remove colors, and might even get lighter.\""; + next; + mes "[Caul]"; + mes "\"From what I have seen, it seems to go through phases-- for each alternate leaf it adds a colour, then removes a color, then adds again and so on. Of course, if the color is there already it can't add any more.\""; + next; + mes "[Caul]"; + mes "\"I haven't figured out yet precisely when it gets lighter, though.\""; + next; + mes "[Caul]"; + mes "\"By adding Mauve, you can make it darker. Alizarin adds red, Gamboge yellow, Cobalt blue. To make it a proper black, you have to get it to be dark gray, then add one Mauve leaf.\""; + next; + mes "[Caul]"; + mes "\"Unfortunately the brew changes randomly before your leaves dissolve, so sometimes you can't help but add the wrong color...\""; + next; + mes "[Caul]"; + mes "\"Since the brew changes its color first, you might want to add the Mauve when your color is a dark purple or dark green or dark orange and hope for the best.\""; + next; + mes "[Caul]"; + mes "\"But don't add too much! If you add a color that is already there, or try to make it darker at the wrong spot, it may backfire.\""; + next; + if (@main_menu) + goto L_monster_oil_main_menu; + goto L_monster_oil_loop; + +L_monster_oil_where_gold: + mes "[Caul]"; + mes "\"Good question. There aren't any golden scorpions nearby. Perhaps you can find a trader or an adventurer who have travelled further south and ask them to help?\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_start_brew: + set @main_menu, 0; + if (countitem (@PEARL) < 1) goto L_monster_oil_missing; + if (countitem (@SNAKE_SKIN) < 2) goto L_monster_oil_missing; + if (countitem (@BLACK_STINGER) < 3) goto L_monster_oil_missing; + if (countitem (@ASH_PILE) < 2) goto L_monster_oil_missing; + if (countitem (@GOLDEN_STINGER) < 1) goto L_monster_oil_missing_gold; + + delitem @PEARL, 1; + delitem @SNAKE_SKIN, 2; + delitem @BLACK_STINGER, 3; + delitem @ASH_PILE, 2; + + set @bubble_mode, 0; + setarray @bubble_modes$, + "The brew is calm.", + "The brew is bubbling.", + "The brew is bubbling violently."; + + set @color, 1 << (rand(3)); + setarray @colors$, + "white", + "red", + "yellow", + "orange", + "blue", + "purple", + "green", + "gray"; + + set @intensity, 1; + setarray @intensities$, + "light", + "medium", + "dark"; + + set @auto_mode, 0; // Start by adding a colour or going lighter + + goto L_monster_oil_loop; + +L_monster_oil_missing: + mes "[Caul]"; + mes "\"You don't seem to have all of the ingredients. You need one pearl, two snake skins, three black stingers, two piles of ash, and one golden stinger.\""; + next; + close; + +L_monster_oil_missing_gold: + mes "[Caul]"; + mes "\"You seem to have everything except for the golden stinger. I understand that this one is hard to get, but I'm sure that you can find one somewhere.\""; + next; + close; + +L_monster_oil_loop: + mes "[Brewing monster oil]"; + mes @bubble_modes$[@bubble_mode]; + mes "It is currently a " + @intensities$[@intensity] + " " + @colors$[@color] + "."; + next; + + menu + "Add alizarin leaf", L_monster_oil_alizarin, + "Add gamboge leaf", L_monster_oil_gamboge, + "Add cobalt leaf", L_monster_oil_cobalt, + "Add mauve leaf", L_monster_oil_mauve, + "Ask Caul for advice", L_monster_oil_explain, + "Duck!", -; + + mes "[Brewing monster oil]"; + mes "You throw yourself onto the ground. Seconds later, the cauldron shakes, and your entire mixture explodes upwards."; + mes "Caul crawls out from underneath a char."; + next; + mes "[Caul]"; + mes "\"I'm glad to see that you chose to brew another day... perhaps it might be best if you give up on this dangerous concoction, though!\""; + next; + close; + +L_monster_oil_out_of_leaves: + mes "[Brewing monster oil]"; + mes "You don't have any of these leaves left!"; + next; + goto L_monster_oil_loop; + +L_monster_oil_alizarin: + set @use_leaf, @ALIZARIN; + set @use_color, 1; + goto L_monster_oil_leaf_color; + +L_monster_oil_gamboge: + set @use_leaf, @GAMBOGE; + set @use_color, 2; + goto L_monster_oil_leaf_color; + +L_monster_oil_cobalt: + set @use_leaf, @COBALT; + set @use_color, 4; + goto L_monster_oil_leaf_color; + +L_monster_oil_leaf_color: + if (countitem (@use_leaf) < 1) goto L_monster_oil_out_of_leaves; + + callsub S_monster_oil_random_move; + if (@color & @use_color) goto L_monster_oil_pc_bad; + set @color, @color | @use_color; + delitem @use_leaf, 1; + + mes "The brew changes its hue as your leaf dissolves."; + next; + goto L_monster_oil_loop; + +L_monster_oil_mauve: + if (countitem(@MAUVE) < 1) goto L_monster_oil_out_of_leaves; + delitem @MAUVE, 1; + + callsub S_monster_oil_random_move; + if (@intensity == 2 && @color == 7) goto L_monster_oil_done; + if (@intensity == 2) goto L_monster_oil_pc_bad; + + set @intensity, @intensity + 1; + mes "The brew darkens as your mauve leaf dissolves."; + next; + goto L_monster_oil_loop; + +S_monster_oil_random_move: + mes "[Brewing monster oil]"; + mes "You throw in a leaf and stir."; + + if (@auto_mode == 1) + goto L_monster_oil_random_1; + +L_monster_oil_random_0: // mode 0: add colour or lighten up + set @auto_mode, 1; + if (rand(3) == 0) + goto L_monster_oil_random_0_lighten; + + set @choice, 1 << (rand(3)); + if (@color & @choice) + goto L_monster_oil_auto_bad; + set @color, @color | @choice; + + mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; + return; + +L_monster_oil_random_0_lighten: + if (@intensity == 0) + goto L_monster_oil_auto_bad; + set @intensity, @intensity - 1; + mes "Before your leaf has a chance to dissolve, the brew takes on a lighter shade of " + @colors$[@color] + "."; + return; + +L_monster_oil_random_1: // mode 1: remove colour + set @auto_mode, 0; + set @choice, 1 << (rand(3)); + if (!(@color & @choice)) + goto L_monster_oil_auto_bad; + set @color, @color & (~@choice); + mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; + return; + +L_monster_oil_pc_bad: + if (rand(readparam(bInt) + 100) > 60) goto L_monster_oil_pc_bad_ok; + if (@bubble_mode) + mes "As your leaf dissolves, the intensity of the bubbling increases."; + if (!@bubble_mode) + mes "As your leaf dissolves, the brew begins to bubble."; + next; + set @bubble_mode, @bubble_mode + 1; + if (@bubble_mode > 2) + goto L_monster_oil_explode; + goto L_monster_oil_loop; + +L_monster_oil_pc_bad_ok: + mes "Your leaf dissolves but seems to have no effect."; + next; + goto L_monster_oil_loop; + +L_monster_oil_auto_bad: + if (rand(3) == 0) + return; + if (rand(readparam(bInt) + 100) > 70) + return; + mes "The brew begins to bubble more violently."; + set @bubble_mode, @bubble_mode + 1; + if (@bubble_mode > 2) + next; + if (@bubble_mode > 2) + goto L_monster_oil_explode; + return; + +L_monster_oil_explode: + mes "[Exploding monster oil]"; + mes "Your brew explodes!"; + if (rand(readparam(bAgi)) > 40) + goto L_monster_oil_explode_dodge; + mes "The burst of boiling monster brew hits you."; + next; + itemheal (15 * rand(readparam(bVit))) - 1500, 0; + close; + +L_monster_oil_explode_dodge: + mes "You throw yourself to the ground at the very last moment, barely avoiding the burst of boiling monster brew."; + next; + mes "[Caul]"; + mes "Caul nods at you from underneath a chair."; + mes "\"I told you, it's dangerous!!\""; + next; + close; + +L_monster_oil_done: + mes "As you throw in another mauve leaf, the brew takes on a deep black color and calms down."; + next; + + mes "[Brewing monster oil]"; + mes "As instructed, you toss in your golden scorpion stinger."; + + if (countitem (@GOLDEN_STINGER) < 1) goto L_monster_oil_no_gold_end; + + mes "The brew bubbles once more, then calms completely."; + + delitem @GOLDEN_STINGER, 1; + getitem @MONSTER_OIL, 1; + + if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) + getexp @MONSTER_OIL_XP, 0; + if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) + mes "[" + @MONSTER_OIL_XP + " experience points]"; + + set @Q_status, @Q_status | @SETZER_FLAG_MADE_OIL; + callsub S_Update_Var; + next; + + mes "[Caul]"; + mes "Caul gets up from underneath the cover he was taking and looks at your brew. He is visibly impressed."; + mes "\"Well done! This should be just enough for one potion of monster oil. Let me get you a bottle.\""; + mes "He hands you the monster oil."; + next; + close; + +L_monster_oil_no_gold_end: + mes "But where is your golden stinger? Didn't you have one earlier?"; + mes "Frustrated, you give up."; + next; + close; + +L_close: + close; + +S_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; + +L_NohMask: + mes "[Caul]"; + mes "\"I'm sorry, but I didn't. I'm staying in town. Try asking one of the miners.\""; + close; +} + + diff --git a/npc/018-2_Woodland_mining_camp/miners.txt b/npc/018-2_Woodland_mining_camp/miners.txt new file mode 100644 index 00000000..caf8afcd --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/miners.txt @@ -0,0 +1,15 @@ +// + +018-2.gat,85,23,0 script Miner 109,{ + if (Inspector == 10) goto L_NohMask; + + mes "[Miner]"; + mes "\"Hello.\""; + close; + +L_NohMask: + set Inspector, 11; + mes "[Miner]"; + mes "\"Yeah, we did hear a commotion. We thought we heard someone go down to the basement, but we checked the whole place over and didn't see anything out of the ordinary.\""; + close; +} diff --git a/npc/018-2_Woodland_mining_camp/receptionist.txt b/npc/018-2_Woodland_mining_camp/receptionist.txt new file mode 100644 index 00000000..ee735d14 --- /dev/null +++ b/npc/018-2_Woodland_mining_camp/receptionist.txt @@ -0,0 +1,65 @@ +// + +018-2.gat,50,24,0 script Receptionist 108,{ + mes "[Receptionist]"; + mes "\"Welcome to the mining camp!"; + mes "Do you need anything?\""; + next; + +L_Menu: + if (Inspector == 10) + menu + "Why was a mine setup here?", L_Mine, + "Can I go into the mine?", L_Enter, + "Did the company build this building?", L_Building, + "Did you hear a commotion here the other night?", L_NohMask, + "Thank you, no.", -; + if (Inspector != 10) + menu + "Why was a mine setup here?", L_Mine, + "Can I go into the mine?", L_Enter, + "Did the company build this building?", L_Building, + "Thank you, no.", -; + close; + +L_Mine: + mes "[Receptionist]"; + mes "\"Minerals have been easy to find in this area historically. The mine entrance we're using collapsed from the mountain side when the volcano errupted. Plenty of minerals were exposed then.\""; + next; + goto L_Question_End; + +L_Enter: + mes "[Receptionist]"; + mes "\"If you think you can handle all the monsters that have appeared there.\""; + next; + goto L_Question_End; + +L_Building: + mes "[Receptionist]"; + mes "\"No, the company bought this building. It's been abandoned for a while. The villagers think it's haunted, but we haven't seen anything, except for the basement. None of us have been able to stay there for very long.\""; + next; + + menu + "Why not?", -, + "Not my problem", L_Question_End; + + mes "[Receptionist]"; + mes "\"I haven't been down there myself, and the ones who have haven't been able to describe why at all.\""; + next; + + goto L_Question_End; + +L_NohMask: + mes "[Receptionist]"; + mes "\"I stay in town, and so couldn't have heard anything over here. One of the miners might be able to help you.\""; + next; + + goto L_Question_End; + +L_Question_End: + mes "[Receptionist]"; + mes "\"Do you need anything else?\""; + next; + + goto L_Menu; +} diff --git a/npc/018-2_Woodland_minning_camp/_import.txt b/npc/018-2_Woodland_minning_camp/_import.txt deleted file mode 100644 index 6b8cbc52..00000000 --- a/npc/018-2_Woodland_minning_camp/_import.txt +++ /dev/null @@ -1,8 +0,0 @@ -map: 018-2.gat -npc: npc/018-2_Woodland_minning_camp/_mobs.txt -npc: npc/018-2_Woodland_minning_camp/_warps.txt -npc: npc/018-2_Woodland_minning_camp/angus.txt -npc: npc/018-2_Woodland_minning_camp/books.txt -npc: npc/018-2_Woodland_minning_camp/caul.txt -npc: npc/018-2_Woodland_minning_camp/miners.txt -npc: npc/018-2_Woodland_minning_camp/receptionist.txt diff --git a/npc/018-2_Woodland_minning_camp/_mobs.txt b/npc/018-2_Woodland_minning_camp/_mobs.txt deleted file mode 100644 index 756b1956..00000000 --- a/npc/018-2_Woodland_minning_camp/_mobs.txt +++ /dev/null @@ -1,13 +0,0 @@ -// 018-2 Woodland minning camp mobs - -018-2.gat,114,21,4,3 monster Yellow Slime 1007,1,0,0,Mob018-2::On1007 - - -018-2.gat,0,0,0 script Mob018-2 -1,{ -On1007: - set @mobID, 1007; - callfunc "MobPoints"; - break; - - end; -} diff --git a/npc/018-2_Woodland_minning_camp/_warps.txt b/npc/018-2_Woodland_minning_camp/_warps.txt deleted file mode 100644 index a4252c53..00000000 --- a/npc/018-2_Woodland_minning_camp/_warps.txt +++ /dev/null @@ -1,9 +0,0 @@ -// 018-2 Woodland minning camp warps - -018-2.gat,50,29 warp toOutside -1,-1,018-1.gat,65,74 -018-2.gat,41,20 warp toOutside -1,-1,018-1.gat,65,69 -018-2.gat,20,24 warp toBasement -1,-1,018-2.gat,112,27 -018-2.gat,112,26 warp toFirstFloor -1,-1,018-2.gat,20,23 -018-2.gat,21,28 warp toSecondFloor 0,-1,018-2.gat,79,25 -018-2.gat,79,26 warp toFirstFloor 0,-1,018-2.gat,21,29 -018-2.gat,114,20 warp toCave -1,-1,018-3.gat,177,53 diff --git a/npc/018-2_Woodland_minning_camp/angus.txt b/npc/018-2_Woodland_minning_camp/angus.txt deleted file mode 100644 index bf9f725e..00000000 --- a/npc/018-2_Woodland_minning_camp/angus.txt +++ /dev/null @@ -1,19 +0,0 @@ -// Angus the craftsman - -018-2.gat,31,39,0 script Angus 147,{ - set @honorific$, "lad"; - if (Sex == 0) set @honorific$, "lass"; - - if (Inspector == 10) goto L_NohMask; - - mes "[Angus]"; - mes "Angus is tinkering with some mechanical concoction."; - mes "\"It keeps breakin' left an' right... fortunat'ly I put in redundancies everywhere, but I haf' to keep repairin'.\""; - next; - close; - -L_NohMask: - mes "[Angus]"; - mes "\"I'm sorry, " + @honorific$ + ", I truely am, but I stay in the town. One o' the miners might have heard something.\""; - close; -} diff --git a/npc/018-2_Woodland_minning_camp/books.txt b/npc/018-2_Woodland_minning_camp/books.txt deleted file mode 100644 index 22364c6d..00000000 --- a/npc/018-2_Woodland_minning_camp/books.txt +++ /dev/null @@ -1,18 +0,0 @@ -// - -018-2.gat,112,19,0 script #Bookcase38 127,0,1{ - if (Inspector == 11) goto L_NohMask; - - mes "Looking over the bookcase, you find nothing strange or out of order."; - close; - -L_NohMask: - mes "Looking over the bookcase closely, you find a book is upside down."; - next; - - mes "The book has been hollowed out. Inside is a theater mask and a note that you cannot even begin to read."; - next; - - set Inspector, 12; - close; -} diff --git a/npc/018-2_Woodland_minning_camp/caul.txt b/npc/018-2_Woodland_minning_camp/caul.txt deleted file mode 100644 index 1aeda920..00000000 --- a/npc/018-2_Woodland_minning_camp/caul.txt +++ /dev/null @@ -1,479 +0,0 @@ -//################################################################################# -//# -//# this script file contains the script for the NPC which allows the -//# PCs to create potions from herbs. -//# -//# Participates in the monster oil subquest (cf. Nicholas' Setzer quest) -//# -//################################################################################# - -018-2.gat,37,22,0 script Caul 107,{ - set @SETZER_INITIAL, 0; - set @SETZER_KNOWS_OIL, 1; - set @SETZER_KNOWS_STINGER, 2; - set @SETZER_FLAG_MADE_OIL, 4; - - set @PEARL, 700; - set @SNAKE_SKIN, 641; - set @BLACK_STINGER, 709; - set @ASH_PILE, 701; - set @GOLDEN_STINGER, 706; - set @MONSTER_OIL, 707; - set @MONSTER_OIL_XP, 100000; - - set @Q_MASK, NIBBLE_3_MASK; - set @Q_SHIFT, NIBBLE_3_SHIFT; - - set @MAUVE, 680; - set @COBALT, 681; - set @GAMBOGE, 682; - set @ALIZARIN, 683; - - set @Q_status, (QUEST_Forestbow_state & @Q_MASK) >> @Q_SHIFT; - - mes "[Caul]"; - mes "\"I can help you to brew healing potions out of mauve, cobalt, gamboge and alizarin herbs."; - mes "How many potions do you want to brew?\""; - next; - - - if (@Q_status && Inspector == 10) - menu - "One", L_1, - "Five", L_5, - "Ten", L_10, - "Fifty", L_50, - "I would like to brew monster oil.", L_monster_oil_start, - "Actually...", L_NohMask, - "Never mind", L_close; - if (@Q_status && Inspector != 10) - menu - "One", L_1, - "Five", L_5, - "Ten", L_10, - "Fifty", L_50, - "I would like to brew monster oil.", L_monster_oil_start, - "Never mind", L_close; - if (!@Q_status && Inspector == 10) - menu - "One", L_1, - "Five", L_5, - "Ten", L_10, - "Fifty", L_50, - "Actually...", L_NohMask, - "Never mind", L_close; - if (!@Q_status && Inspector != 10) - menu - "One", L_1, - "Five", L_5, - "Ten", L_10, - "Fifty", L_50, - "Never mind", L_close; - -L_1: - set @num, 1; - goto L_brew; - -L_5: - set @num, 5; - goto L_brew; - -L_10: - set @num, 10; - goto L_brew; - -L_50: - set @num, 50; - goto L_brew; - - -L_brew: - mes "[Caul]"; - mes "\"Now put " + @num + " herbs of each kind into the cauldron, stir, and concentrate all your mental energy on it.\""; - next; - - if (countitem(@MAUVE) < @num) goto L_NotEnough; - if (countitem(@COBALT) < @num) goto L_NotEnough; - if (countitem(@GAMBOGE) < @num) goto L_NotEnough; - if (countitem(@ALIZARIN) < @num) goto L_NotEnough; - - set @a, @num; - set @result1, 0; - set @result2, 0; - set @result3, 0; - set @result4, 0; - -L_CraftLoop: - set @throw, rand(readparam(bInt)); - set @result, 1; - if (@throw >= 5) set @result, 2; - if (@throw >= 15) set @result, 3; - if (@throw >= 35) set @result, 4; - - if (@result == 1) set @result1, @result1 + 1; - if (@result == 2) set @result2, @result2 + 1; - if (@result == 3) set @result3, @result3 + 1; - if (@result == 4) set @result4, @result4 + 1; - - set @a, @a - 1; - if (@a > 0) goto L_CraftLoop; - - delitem @MAUVE, @num; - delitem @COBALT, @num; - delitem @GAMBOGE, @num; - delitem @ALIZARIN, @num; - - getitem 684, @result1; - getitem 685, @result2; - getitem 686, @result3; - getitem 687, @result4; - - mes "[Caul]"; - mes "\"Well done! You made:"; - if (@result1 > 0) mes @result1 + " tiny potions"; - if (@result2 > 0) mes @result2 + " small potions"; - if (@result3 > 0) mes @result3 + " medium potions"; - if (@result4 > 0) mes @result4 + " large potions"; - mes "Come again.\""; - close; - -L_NotEnough: - mes "[Caul]"; - mes "\"Oh, it seems like you don't have enough herbs. You can find herbs in deep forests.\""; - close; - -L_monster_oil_start: - mes "[Caul]"; - mes "\"Monster oil? Hmm, I have heard of it, but I don't remember the precise recipe to make it...\""; - next; - if (@Q_status == @SETZER_KNOWS_OIL) - menu "OK, I'll ask around, perhaps someone else knows.", L_close; - if (@Q_status > @SETZER_KNOWS_OIL) - menu "Rauk told me the recipe.", L_monster_oil_knows_recipe; - close; - -L_monster_oil_knows_recipe: - mes "[Caul]"; - mes "\"Ah, but of course! Yes, we should be able to brew that here. Except that... hmm. Pearl and three black scorpion stingers? This sounds very dangerous;"; - mes "I fear that I will have to ask you to do this yourself.\""; - next; - -L_monster_oil_main_menu: - set @main_menu, 1; - menu - "What do you mean by 'dangerous'?", L_monster_oil_why_dangerous, - "What do I need, again?", L_monster_oil_ingredients, - "How does this work?", L_monster_oil_explain, - "Let's start!", L_monster_oil_start_brew, - "Where can I get a golden scorpion stinger?", L_monster_oil_where_gold, - "I've changed my mind.", L_close; - close; - -L_monster_oil_why_dangerous: - mes "[Caul]"; - mes "\"Well, with those two reagents in there at that ratio, you risk an explosion-- quite possibly a fatal one. So be prepared to duck if the brew gets too bubbly-- it's better to lose the ingredients than your head!\""; - next; - goto L_monster_oil_main_menu; - -L_monster_oil_ingredients: - mes "[Caul]"; - mes "\"You will need one pearl, two snake skins, three black scorpion stingers, two piles of ash, and a golden scorpion stinger. The golden stinger goes in last, after the dangerous part, so you won't lose if if your brew blows up.\""; - next; - mes "[Caul]"; - mes "\"You should also bring gamboge, mauve, alizarin and cobalt leaves. You will have to stabilize the brew, and they will help with that.\""; - next; - goto L_monster_oil_main_menu; - -L_monster_oil_explain: - mes "[Caul]"; - mes "\"After you have put in the monster parts-- except for the golden stinger-- the brew will take on some random color; this can be a light, dark, or medium color. You have to stabilize this color by adding leaves to it.\""; - next; - mes "[Caul]"; - mes "\"Of course, with such a violent brew the mixture will change color by itself, too, probably faster than your leaves can affect it. It will randomly add or remove colors, and might even get lighter.\""; - next; - mes "[Caul]"; - mes "\"From what I have seen, it seems to go through phases-- for each alternate leaf it adds a colour, then removes a color, then adds again and so on. Of course, if the color is there already it can't add any more.\""; - next; - mes "[Caul]"; - mes "\"I haven't figured out yet precisely when it gets lighter, though.\""; - next; - mes "[Caul]"; - mes "\"By adding Mauve, you can make it darker. Alizarin adds red, Gamboge yellow, Cobalt blue. To make it a proper black, you have to get it to be dark gray, then add one Mauve leaf.\""; - next; - mes "[Caul]"; - mes "\"Unfortunately the brew changes randomly before your leaves dissolve, so sometimes you can't help but add the wrong color...\""; - next; - mes "[Caul]"; - mes "\"Since the brew changes its color first, you might want to add the Mauve when your color is a dark purple or dark green or dark orange and hope for the best.\""; - next; - mes "[Caul]"; - mes "\"But don't add too much! If you add a color that is already there, or try to make it darker at the wrong spot, it may backfire.\""; - next; - if (@main_menu) - goto L_monster_oil_main_menu; - goto L_monster_oil_loop; - -L_monster_oil_where_gold: - mes "[Caul]"; - mes "\"Good question. There aren't any golden scorpions nearby. Perhaps you can find a trader or an adventurer who have travelled further south and ask them to help?\""; - next; - goto L_monster_oil_main_menu; - -L_monster_oil_start_brew: - set @main_menu, 0; - if (countitem (@PEARL) < 1) goto L_monster_oil_missing; - if (countitem (@SNAKE_SKIN) < 2) goto L_monster_oil_missing; - if (countitem (@BLACK_STINGER) < 3) goto L_monster_oil_missing; - if (countitem (@ASH_PILE) < 2) goto L_monster_oil_missing; - if (countitem (@GOLDEN_STINGER) < 1) goto L_monster_oil_missing_gold; - - delitem @PEARL, 1; - delitem @SNAKE_SKIN, 2; - delitem @BLACK_STINGER, 3; - delitem @ASH_PILE, 2; - - set @bubble_mode, 0; - setarray @bubble_modes$, - "The brew is calm.", - "The brew is bubbling.", - "The brew is bubbling violently."; - - set @color, 1 << (rand(3)); - setarray @colors$, - "white", - "red", - "yellow", - "orange", - "blue", - "purple", - "green", - "gray"; - - set @intensity, 1; - setarray @intensities$, - "light", - "medium", - "dark"; - - set @auto_mode, 0; // Start by adding a colour or going lighter - - goto L_monster_oil_loop; - -L_monster_oil_missing: - mes "[Caul]"; - mes "\"You don't seem to have all of the ingredients. You need one pearl, two snake skins, three black stingers, two piles of ash, and one golden stinger.\""; - next; - close; - -L_monster_oil_missing_gold: - mes "[Caul]"; - mes "\"You seem to have everything except for the golden stinger. I understand that this one is hard to get, but I'm sure that you can find one somewhere.\""; - next; - close; - -L_monster_oil_loop: - mes "[Brewing monster oil]"; - mes @bubble_modes$[@bubble_mode]; - mes "It is currently a " + @intensities$[@intensity] + " " + @colors$[@color] + "."; - next; - - menu - "Add alizarin leaf", L_monster_oil_alizarin, - "Add gamboge leaf", L_monster_oil_gamboge, - "Add cobalt leaf", L_monster_oil_cobalt, - "Add mauve leaf", L_monster_oil_mauve, - "Ask Caul for advice", L_monster_oil_explain, - "Duck!", -; - - mes "[Brewing monster oil]"; - mes "You throw yourself onto the ground. Seconds later, the cauldron shakes, and your entire mixture explodes upwards."; - mes "Caul crawls out from underneath a char."; - next; - mes "[Caul]"; - mes "\"I'm glad to see that you chose to brew another day... perhaps it might be best if you give up on this dangerous concoction, though!\""; - next; - close; - -L_monster_oil_out_of_leaves: - mes "[Brewing monster oil]"; - mes "You don't have any of these leaves left!"; - next; - goto L_monster_oil_loop; - -L_monster_oil_alizarin: - set @use_leaf, @ALIZARIN; - set @use_color, 1; - goto L_monster_oil_leaf_color; - -L_monster_oil_gamboge: - set @use_leaf, @GAMBOGE; - set @use_color, 2; - goto L_monster_oil_leaf_color; - -L_monster_oil_cobalt: - set @use_leaf, @COBALT; - set @use_color, 4; - goto L_monster_oil_leaf_color; - -L_monster_oil_leaf_color: - if (countitem (@use_leaf) < 1) goto L_monster_oil_out_of_leaves; - - callsub S_monster_oil_random_move; - if (@color & @use_color) goto L_monster_oil_pc_bad; - set @color, @color | @use_color; - delitem @use_leaf, 1; - - mes "The brew changes its hue as your leaf dissolves."; - next; - goto L_monster_oil_loop; - -L_monster_oil_mauve: - if (countitem(@MAUVE) < 1) goto L_monster_oil_out_of_leaves; - delitem @MAUVE, 1; - - callsub S_monster_oil_random_move; - if (@intensity == 2 && @color == 7) goto L_monster_oil_done; - if (@intensity == 2) goto L_monster_oil_pc_bad; - - set @intensity, @intensity + 1; - mes "The brew darkens as your mauve leaf dissolves."; - next; - goto L_monster_oil_loop; - -S_monster_oil_random_move: - mes "[Brewing monster oil]"; - mes "You throw in a leaf and stir."; - - if (@auto_mode == 1) - goto L_monster_oil_random_1; - -L_monster_oil_random_0: // mode 0: add colour or lighten up - set @auto_mode, 1; - if (rand(3) == 0) - goto L_monster_oil_random_0_lighten; - - set @choice, 1 << (rand(3)); - if (@color & @choice) - goto L_monster_oil_auto_bad; - set @color, @color | @choice; - - mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; - return; - -L_monster_oil_random_0_lighten: - if (@intensity == 0) - goto L_monster_oil_auto_bad; - set @intensity, @intensity - 1; - mes "Before your leaf has a chance to dissolve, the brew takes on a lighter shade of " + @colors$[@color] + "."; - return; - -L_monster_oil_random_1: // mode 1: remove colour - set @auto_mode, 0; - set @choice, 1 << (rand(3)); - if (!(@color & @choice)) - goto L_monster_oil_auto_bad; - set @color, @color & (~@choice); - mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; - return; - -L_monster_oil_pc_bad: - if (rand(readparam(bInt) + 100) > 60) goto L_monster_oil_pc_bad_ok; - if (@bubble_mode) - mes "As your leaf dissolves, the intensity of the bubbling increases."; - if (!@bubble_mode) - mes "As your leaf dissolves, the brew begins to bubble."; - next; - set @bubble_mode, @bubble_mode + 1; - if (@bubble_mode > 2) - goto L_monster_oil_explode; - goto L_monster_oil_loop; - -L_monster_oil_pc_bad_ok: - mes "Your leaf dissolves but seems to have no effect."; - next; - goto L_monster_oil_loop; - -L_monster_oil_auto_bad: - if (rand(3) == 0) - return; - if (rand(readparam(bInt) + 100) > 70) - return; - mes "The brew begins to bubble more violently."; - set @bubble_mode, @bubble_mode + 1; - if (@bubble_mode > 2) - next; - if (@bubble_mode > 2) - goto L_monster_oil_explode; - return; - -L_monster_oil_explode: - mes "[Exploding monster oil]"; - mes "Your brew explodes!"; - if (rand(readparam(bAgi)) > 40) - goto L_monster_oil_explode_dodge; - mes "The burst of boiling monster brew hits you."; - next; - itemheal (15 * rand(readparam(bVit))) - 1500, 0; - close; - -L_monster_oil_explode_dodge: - mes "You throw yourself to the ground at the very last moment, barely avoiding the burst of boiling monster brew."; - next; - mes "[Caul]"; - mes "Caul nods at you from underneath a chair."; - mes "\"I told you, it's dangerous!!\""; - next; - close; - -L_monster_oil_done: - mes "As you throw in another mauve leaf, the brew takes on a deep black color and calms down."; - next; - - mes "[Brewing monster oil]"; - mes "As instructed, you toss in your golden scorpion stinger."; - - if (countitem (@GOLDEN_STINGER) < 1) goto L_monster_oil_no_gold_end; - - mes "The brew bubbles once more, then calms completely."; - - delitem @GOLDEN_STINGER, 1; - getitem @MONSTER_OIL, 1; - - if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) - getexp @MONSTER_OIL_XP, 0; - if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) - mes "[" + @MONSTER_OIL_XP + " experience points]"; - - set @Q_status, @Q_status | @SETZER_FLAG_MADE_OIL; - callsub S_Update_Var; - next; - - mes "[Caul]"; - mes "Caul gets up from underneath the cover he was taking and looks at your brew. He is visibly impressed."; - mes "\"Well done! This should be just enough for one potion of monster oil. Let me get you a bottle.\""; - mes "He hands you the monster oil."; - next; - close; - -L_monster_oil_no_gold_end: - mes "But where is your golden stinger? Didn't you have one earlier?"; - mes "Frustrated, you give up."; - next; - close; - -L_close: - close; - -S_Update_Var: - set QUEST_Forestbow_state, - (QUEST_Forestbow_state & ~(@Q_MASK) - | (@Q_status << @Q_SHIFT)); - return; - -L_NohMask: - mes "[Caul]"; - mes "\"I'm sorry, but I didn't. I'm staying in town. Try asking one of the miners.\""; - close; -} - - diff --git a/npc/018-2_Woodland_minning_camp/miners.txt b/npc/018-2_Woodland_minning_camp/miners.txt deleted file mode 100644 index caf8afcd..00000000 --- a/npc/018-2_Woodland_minning_camp/miners.txt +++ /dev/null @@ -1,15 +0,0 @@ -// - -018-2.gat,85,23,0 script Miner 109,{ - if (Inspector == 10) goto L_NohMask; - - mes "[Miner]"; - mes "\"Hello.\""; - close; - -L_NohMask: - set Inspector, 11; - mes "[Miner]"; - mes "\"Yeah, we did hear a commotion. We thought we heard someone go down to the basement, but we checked the whole place over and didn't see anything out of the ordinary.\""; - close; -} diff --git a/npc/018-2_Woodland_minning_camp/receptionist.txt b/npc/018-2_Woodland_minning_camp/receptionist.txt deleted file mode 100644 index ee735d14..00000000 --- a/npc/018-2_Woodland_minning_camp/receptionist.txt +++ /dev/null @@ -1,65 +0,0 @@ -// - -018-2.gat,50,24,0 script Receptionist 108,{ - mes "[Receptionist]"; - mes "\"Welcome to the mining camp!"; - mes "Do you need anything?\""; - next; - -L_Menu: - if (Inspector == 10) - menu - "Why was a mine setup here?", L_Mine, - "Can I go into the mine?", L_Enter, - "Did the company build this building?", L_Building, - "Did you hear a commotion here the other night?", L_NohMask, - "Thank you, no.", -; - if (Inspector != 10) - menu - "Why was a mine setup here?", L_Mine, - "Can I go into the mine?", L_Enter, - "Did the company build this building?", L_Building, - "Thank you, no.", -; - close; - -L_Mine: - mes "[Receptionist]"; - mes "\"Minerals have been easy to find in this area historically. The mine entrance we're using collapsed from the mountain side when the volcano errupted. Plenty of minerals were exposed then.\""; - next; - goto L_Question_End; - -L_Enter: - mes "[Receptionist]"; - mes "\"If you think you can handle all the monsters that have appeared there.\""; - next; - goto L_Question_End; - -L_Building: - mes "[Receptionist]"; - mes "\"No, the company bought this building. It's been abandoned for a while. The villagers think it's haunted, but we haven't seen anything, except for the basement. None of us have been able to stay there for very long.\""; - next; - - menu - "Why not?", -, - "Not my problem", L_Question_End; - - mes "[Receptionist]"; - mes "\"I haven't been down there myself, and the ones who have haven't been able to describe why at all.\""; - next; - - goto L_Question_End; - -L_NohMask: - mes "[Receptionist]"; - mes "\"I stay in town, and so couldn't have heard anything over here. One of the miners might be able to help you.\""; - next; - - goto L_Question_End; - -L_Question_End: - mes "[Receptionist]"; - mes "\"Do you need anything else?\""; - next; - - goto L_Menu; -} diff --git a/npc/023-1_Beach_Cliffs/_import.txt b/npc/023-1_Beach_Cliffs/_import.txt new file mode 100644 index 00000000..3d0bf1e4 --- /dev/null +++ b/npc/023-1_Beach_Cliffs/_import.txt @@ -0,0 +1,3 @@ +map: 023-1.gat +npc: npc/023-1_Beach_Cliffs/_mobs.txt +npc: npc/023-1_Beach_Cliffs/_warps.txt diff --git a/npc/023-1_Beach_Cliffs/_mobs.txt b/npc/023-1_Beach_Cliffs/_mobs.txt new file mode 100644 index 00000000..60725477 --- /dev/null +++ b/npc/023-1_Beach_Cliffs/_mobs.txt @@ -0,0 +1,7 @@ +// 023-1 Beach Cliffs mobs + + + +023-1.gat,0,0,0 script Mob023-1 -1,{ + end; +} diff --git a/npc/023-1_Beach_Cliffs/_warps.txt b/npc/023-1_Beach_Cliffs/_warps.txt new file mode 100644 index 00000000..8c3827bd --- /dev/null +++ b/npc/023-1_Beach_Cliffs/_warps.txt @@ -0,0 +1,4 @@ +// 023-1 Beach Cliffs warps + +023-1.gat,84,113 warp ToSandstorm 1,-1,002-1.gat,29,15 +023-1.gat,37,111 warp ToBeach 1,-1,003-1.gat,141,21 diff --git a/npc/_import.txt b/npc/_import.txt index ca35201c..626ecc37 100644 --- a/npc/_import.txt +++ b/npc/_import.txt @@ -32,7 +32,7 @@ import: npc/015-1_Woodland/_import.txt import: npc/016-1_Woodland/_import.txt import: npc/017-1_Woodland_hills/_import.txt import: npc/018-1_Woodland_mining_camp/_import.txt -import: npc/018-2_Woodland_minning_camp/_import.txt +import: npc/018-2_Woodland_mining_camp/_import.txt import: npc/018-3_Cave/_import.txt import: npc/019-1_Snow_field/_import.txt import: npc/020-1_Nivalis/_import.txt -- cgit v1.2.3-60-g2f50