summaryrefslogtreecommitdiff
path: root/npc/00000SAVE/misc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-12 03:55:38 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-12 03:55:38 -0300
commit8586a2ddff7f8c56c2836646b7ae83655bd28de5 (patch)
tree39de1bfd540ef208c0bb880c1413aa4143e7c441 /npc/00000SAVE/misc
parent125c93a03d1fcb89f5ecf81287d3f680cad5b0e0 (diff)
downloadserverdata-8586a2ddff7f8c56c2836646b7ae83655bd28de5.tar.gz
serverdata-8586a2ddff7f8c56c2836646b7ae83655bd28de5.tar.bz2
serverdata-8586a2ddff7f8c56c2836646b7ae83655bd28de5.tar.xz
serverdata-8586a2ddff7f8c56c2836646b7ae83655bd28de5.zip
Bring all LoF unique scripts temporary to npc/0000SAVE folder
Diffstat (limited to 'npc/00000SAVE/misc')
-rw-r--r--npc/00000SAVE/misc/doctor.txt88
-rw-r--r--npc/00000SAVE/misc/injured-mouboo.txt224
-rw-r--r--npc/00000SAVE/misc/pachua.txt464
3 files changed, 776 insertions, 0 deletions
diff --git a/npc/00000SAVE/misc/doctor.txt b/npc/00000SAVE/misc/doctor.txt
new file mode 100644
index 000000000..241347909
--- /dev/null
+++ b/npc/00000SAVE/misc/doctor.txt
@@ -0,0 +1,88 @@
+
+009-2,148,25,0 script Doctor NPC107,{
+ callfunc "ClearVariables";
+
+ @inspector = ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
+
+ if (getequipid(equip_head) == 616) goto L_Axe;
+ if (getequipid(equip_head) == 621) goto L_EyePatch;
+
+ mes "[Doctor]";
+ mes "\"Hello, can I help you?\"";
+ next;
+
+ if (@inspector == 1)
+ menu
+ "I think I am sick!", L_Cure,
+ "No, I feel fine.", L_Next,
+ "Have you seen anything strange in town? Anything that might have to do with the robberies?", L_NohMask;
+ menu
+ "I think I am sick!", L_Cure,
+ "No, I feel fine.", L_Next;
+
+L_Next:
+ mes "[Doctor]";
+ mes "\"Then please stop wasting my precious time.\"";
+ goto L_close;
+
+L_Cure:
+ mes "[Doctor]";
+ if (sc_check(SC_POISON))
+ goto L_CurePoison;
+ mes "The doctor examines you briefly.";
+ mes "\"Nonsense! You look fine and dandy to me. All you need is a bit more exercise and fresh fruit in your diet!\"";
+ goto L_close;
+
+L_CurePoison:
+ mes "\"Well, well, well! Look at all those green bubbles coming out of your head; that looks like poisoning to me! Did you eat something rotten?\"";
+ next;
+ mes "[Doctor]";
+ mes "The doctor pulls out a syringe and fills it with a white liquid from a jar on his desk.";
+ mes "\"Now hold still, this won't hurt a bit...\"";
+ next;
+ mes "[Doctor]";
+ sc_end(SC_POISON);
+ sc_end(SC_SLOWPOISON);
+ mes "*Ouch!*";
+ mes "\"Next time, be more careful! Make sure to cook any meats before you eat them, and don't eat fish once it starts to smell.\"";
+ goto L_close;
+
+L_Axe:
+ mes "[Doctor]";
+ mes "\"Oh my, what happened to you?\"";
+ next;
+ mes "[Doctor]";
+ mes "\"Wait. Thats just a fake. Shame on you!\"";
+ goto L_close;
+
+L_EyePatch:
+ mes "[Doctor]";
+ mes "\"Would you like a glass eye to replace that eye patch you have? We just got a whole load of them in today. I'll even let you keep the patch as a souvenir.\"";
+ next;
+ menu
+ "Yes, please.", L_EyePatch_GlassEye,
+ "No thank you", L_Next1;
+
+L_Next1:
+ mes "[Doctor]";
+ mes "\"If you change your mind, please come back and see me.\"";
+ goto L_close;
+
+L_EyePatch_GlassEye:
+ mes "[Doctor]";
+ mes "\"Now, where did I put that box of eyes...\"";
+ mes "He goes off to look for them and comes back empty handed.";
+ next;
+ mes "[Doctor]";
+ mes "\"I can't seem to find where I put that box. You should come back later, I may have found them by then.\"";
+ goto L_close;
+
+L_NohMask:
+ mes "[Doctor]";
+ mes "\"No, I haven't seen anything.\"";
+ goto L_close;
+
+L_close:
+ @inspector = 0;
+ close;
+}
diff --git a/npc/00000SAVE/misc/injured-mouboo.txt b/npc/00000SAVE/misc/injured-mouboo.txt
new file mode 100644
index 000000000..0737f79c4
--- /dev/null
+++ b/npc/00000SAVE/misc/injured-mouboo.txt
@@ -0,0 +1,224 @@
+
+function script QuestMoubooHeal {
+ @Q_MASK = NIBBLE_2_MASK;
+ @Q_SHIFT = NIBBLE_2_SHIFT;
+
+ @Q_status = (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT;
+ @Q_status_upper = @Q_status & 12;
+ @Q_status = @Q_status & 3;
+
+ @STATE_INITIAL = 0;
+ @STATE_HEALED_MOUBOO = 3;
+
+ if (@Q_status != @STATE_INITIAL)
+ goto L_Nothing;
+
+ @Q_status = @STATE_HEALED_MOUBOO;
+ callsub S_Update_Var;
+ mes "[Injured Mouboo]";
+ mes "A soft white glow surrounds the mouboo's leg, which slowly shifts back into place.";
+ mes "As the glow subsides, the mouboo gets up, carefully, and takes a few steps. It seems to be fully healed!";
+ mes "[5000 experience points]";
+ getexp 5000, 0;
+ next;
+ mes "[Injured Mouboo]";
+ mes "Visibly happy, the mouboo lies down on the ground and snuggles with a black piece of cloth it had been lying on.";
+ mes "The healing process must have been exhausting, for it is asleep in an instant.";
+ next;
+ @value = 15;
+ callfunc "QuestSagathaHappy";
+ close;
+
+L_Nothing:
+ mes "Your spell has no effect.";
+ close;
+
+S_Update_Var:
+ @Q_wr_status = @Q_status | @Q_status_upper;
+ set QUEST_MAGIC,
+ (QUEST_MAGIC & ~(@Q_MASK)
+ | (@Q_wr_status << @Q_SHIFT));
+ return;
+}
+
+012-1,57,153,0 script Mouboo NPC171,{
+ @Q_MASK = NIBBLE_2_MASK;
+ @Q_SHIFT = NIBBLE_2_SHIFT;
+
+ @Q_status = (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT;
+ @Q_status_upper = @Q_status & 12;
+ @Q_status = @Q_status & 3;
+
+ @STATE_INITIAL = 0;
+ @STATE_KILLED_MOUBOO = 1;
+ @STATE_TOOK_KILL_REWARD = 2;
+ @STATE_HEALED_MOUBOO = 3;
+
+ if (@Q_status == @STATE_KILLED_MOUBOO)
+ goto L_Dead;
+ if (@Q_status == @STATE_TOOK_KILL_REWARD)
+ goto L_took_reward;
+ if (@Q_status == @STATE_HEALED_MOUBOO)
+ goto L_healed;
+
+ mes "[Injured Mouboo]";
+ mes "You notice a mouboo lying on the ground, groaning, as if in pain.";
+ next;
+ goto L_Menu;
+
+L_Menu:
+ menu
+ "Examine the mouboo", L_examine,
+ "Give the mouboo something", L_Give,
+ "Kill the mouboo", L_Kill,
+ "Leave", L_close;
+
+L_examine:
+ mes "[Injured Mouboo]";
+ mes "Looking closer, you notice that the mouboo's left hind leg is bent at a very unnatural angle-- that seems to be the cause for its pain.";
+ next;
+ mes "[Injured Mouboo]";
+ mes "You also notice that the mouboo is lying on top of what appears to be a black turtleneck sweater.";
+ mes "Do you want to pick up the sweater?";
+ next;
+ menu
+ "Yes.", L_pickup_alive,
+ "No.", L_Menu;
+
+L_pickup_alive:
+ mes "[Injured Mouboo]";
+ mes "The Mouboo groans and pushes your hand away. It seems to be rather fond of the sweater.";
+ next;
+ goto L_Menu;
+
+L_Give:
+ @items_nr = 12;
+ setarray @items$, "CactusDrink", "CactusPotion", "ChocolateBar", "Milk", "OrangeCupcake", "RedApple", "Beer", "BottleOfWater", "TinyHealingPotion", "SmallHealingPotion", "MediumHealingPotion", "LargeHealingPotion";
+ setarray @itemnames$, "Cactus Drink", "Cactus Potion", "Chocolate Bar", "Milk", "Orange Cupcake", "Red Apple", "Beer", "Bottle of Water", "Tiny Healing Potion", "Small Healing Potion", "Medium Healing Potion", "Large Healing Potion";
+ setarray @itemeat, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0;
+
+ setarray @menuitems$, "", "", "", "", "", "", "", "", "", "", "", "", "";
+ @choices_nr = 0;
+ setarray @menuNames$, "", "", "", "", "", "", "", "", "", "", "", "", "";
+ setarray @choice_eat, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0;
+
+ @n = 0;
+ @ct = 0;
+ goto L_nloop;
+
+L_nloop:
+ @k$ = @items$[@n];
+ if (countitem(@k$) == 0)
+ goto L_nloop_skip;
+
+ @menuitems$[@ct] = @itemnames$[@n];
+ @menuNames$[@ct] = @k$;
+ @choice_eat[@ct] = @itemeat[@n];
+ @ct = @ct + 1;
+ goto L_nloop_skip;
+
+L_nloop_skip:
+ @n = @n+1;
+ if (@n < @items_nr)
+ goto L_nloop;
+
+ @menuitems$[@ct] = "Nevermind";
+
+ menu
+ @menuitems$[0], L_MenuItems,
+ @menuitems$[1], L_MenuItems,
+ @menuitems$[2], L_MenuItems,
+ @menuitems$[3], L_MenuItems,
+ @menuitems$[4], L_MenuItems,
+ @menuitems$[5], L_MenuItems,
+ @menuitems$[6], L_MenuItems,
+ @menuitems$[7], L_MenuItems,
+ @menuitems$[8], L_MenuItems,
+ @menuitems$[9], L_MenuItems,
+ @menuitems$[10], L_MenuItems,
+ @menuitems$[11], L_MenuItems,
+ @menuitems$[12], L_MenuItems;
+
+L_MenuItems:
+ @menu = @menu - 1;
+ if (@menu == @ct)
+ goto L_Menu;
+ @choice$ = @menuNames$[@menu];
+ @verb$ = "drinks";
+ if (@choice_eat[@menu])
+ @verb$ = "eats";
+ if (@choice$ != "" && countitem(@choice$))
+ goto L_consume;
+ goto L_Menu;
+
+L_consume:
+ mes "[Injured Mouboo]";
+ mes "The mouboo " + @verb$ + " your " + getitemlink(@choice$) + ".";
+ delitem @choice$, 1;
+ next;
+ if (@choice$ == "LargeHealingPotion")
+ goto L_do_heal;
+ mes "[Injured Mouboo]";
+ mes "Unfortunately, it seems to have had no effect.";
+ next;
+ goto L_Menu;
+
+L_do_heal:
+ callfunc "QuestMoubooHeal";
+ goto L_Kill;
+
+L_Kill:
+ mes "[Injured Mouboo]";
+ if (BaseLevel > 44)
+ goto L_Kill_success;
+ mes "The mouboo deflects your attack and counterattacks!";
+ mes "It misses you only barely.";
+ mes "Injured though it may be, this mouboo is still more than a match for you!";
+ next;
+ goto L_Menu;
+
+L_Kill_success:
+ mes "After some wrestling, the mouboo succumbs to your attacks.";
+ mes "[100 experience points]";
+ getexp 100, 0;
+ @Q_status = @STATE_KILLED_MOUBOO;
+ callsub S_Update_Var;
+ next;
+ goto L_Dead;
+
+L_Dead:
+ mes "[Dead Mouboo]";
+ mes "The dead mouboo is lying on top of a black T-neck sweater.";
+ getinventorylist;
+ if (@inventorylist_count == 100)
+ goto L_Nopickup;
+ getitem "BlackTurtleneckSweater", 1;
+ mes "You pull out the sweater and stuff it into your backpack.";
+ @Q_status = @STATE_TOOK_KILL_REWARD;
+ callsub S_Update_Var;
+ close;
+
+L_took_reward:
+ mes "[Dead Mouboo]";
+ mes "You see a dead mouboo.";
+ close;
+
+L_Nopickup:
+ mes "Unfortunately, you can't carry any more.";
+ close;
+
+L_healed:
+ mes "[Mouboo]";
+ mes "The mouboo is sleeping soundly, smiling in its dreams.";
+ close;
+
+L_close:
+ close;
+
+S_Update_Var:
+ @Q_wr_status = @Q_status | @Q_status_upper;
+ set QUEST_MAGIC,
+ (QUEST_MAGIC & ~(@Q_MASK)
+ | (@Q_wr_status << @Q_SHIFT));
+ return;
+}
diff --git a/npc/00000SAVE/misc/pachua.txt b/npc/00000SAVE/misc/pachua.txt
new file mode 100644
index 000000000..9c8d3ba2c
--- /dev/null
+++ b/npc/00000SAVE/misc/pachua.txt
@@ -0,0 +1,464 @@
+006-1,23,100,0 script Pachua NPC143,{
+ @LEATHER_PATCH_PRICE = 300;
+ @wants_leather_patch = QUEST_Forestbow_state & NIBBLE_4_MASK;
+
+ if ((gettime(5) >= $@xmas2011_start_day) && (gettime(5) < $@xmas2011_reward_start_day) && (gettime(6) == 12) && (gettime(7) == $@xmas2011_year))
+ @wants_leather_patch = @wants_leather_patch | (xmas11 & $@xmas11_talkedToChief);
+
+ $@xmas2011_start_day = 10;
+ $@xmas2011_reward_start_day = 25;
+
+
+ if (QUEST_MIRIAM_cheat != 0) goto L_Warp2_cheat;
+ if (QUEST_MIRIAM_start != 0) goto L_smoke;
+
+
+ @hw2011_npc_id = $@hw2011_npc_pachua;
+ if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
+ goto L_TrickOrTreat;
+
+ goto L_Begin;
+
+L_Begin:
+ mes "[Chief Pachua]";
+ mes "\"How!\"";
+ next;
+
+ if (getequipid(equip_head) == 643 || getequipid(equip_head) == 644) goto L_WearingCowboy;
+ if (getequipid(equip_legs) == 642) goto L_WearingChaps;
+
+ mes "[Chief Pachua]";
+ mes "\"For generations my tribe has been crafting special clothes out of different items.\"";
+ next;
+ goto L_Check_Mamba;
+
+L_Check_Mamba:
+ if (countitem("BlackMambaSkin") == 0 || QUEST_Mamba > 5 || BaseLevel < 50) goto L_Check_Shops;
+ if (QUEST_Mamba > 1) goto L_Check_Mamba_Again;
+
+ mes "[Chief Pachua]";
+ mes "\"Ah! Do I see a Black Mamba Skin sticking out of your bag?\"";
+ menu
+ "Yes, can you do something with it?", L_Branch_Mamba,
+ "Yes, but that's not why I'm here to see you.", L_Check_Shops;
+
+L_Check_Mamba_Again:
+ mes "[Chief Pachua]";
+ mes "\"I see you have a Black Mamba Skin with you, are you ready for me to craft something with it?\"";
+ menu
+ "Yes, take a look.", L_Branch_Mamba,
+ "No, that's not why I'm here to see you.", L_Check_Shops;
+
+L_Branch_Mamba:
+ if (QUEST_Mamba == 5) goto L_Mamba_Helm;
+ if (QUEST_Mamba == 4) goto L_Mamba_Chest;
+ if (QUEST_Mamba == 3) goto L_Mamba_Legs;
+ if (QUEST_Mamba == 2) goto L_Mamba_Boots;
+ if (QUEST_Mamba == 1) goto L_Mamba_Gloves;
+
+ mes "[Chief Pachua]";
+ mes "\"The skin of the Black Mamba can be used to craft a leather armor that is lighter than any metal armor and stronger than any other leather.";
+ mes "\"Because it is leather, it can be used to make every type of armor.";
+ mes "\"Although I know of no-one with the expertise to craft a shield, I can make the other pieces for you.";
+ mes "\"I'll start with the gloves, but I'll need two Black Mamba Skins, one Black Mamba Tongue for thread, two Black Mamba Eggs to soften the leather, a Ruby, and 5,000 gold.\"";
+
+ QUEST_Mamba = 1;
+
+ menu
+ "I actually have all of that already!", L_Mamba_Gloves_Check,
+ "Maybe later....", L_close;
+
+L_Mamba_Gloves:
+ mes "[Chief Pachua]";
+ mes "\"For a pair of Black Mamba Gloves I'll need two Black Mamba Skins, one Black Mamba Tongue for thread, two Black Mamba Eggs to soften the leather, a Ruby, and 5,000 gold.\"";
+ menu
+ "Here you are.", L_Mamba_Gloves_Check,
+ "I'll think about it.", L_close;
+
+L_Mamba_Gloves_Check:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (countitem("BlackMambaSkin") < 2 || countitem("BlackMambaTongue") < 1 ||
+ countitem("BlackMambaEgg") < 2 || countitem("Ruby") < 1) goto L_MissingItems;
+ if (Zeny < 5000) goto L_NoMoney;
+
+ delitem "BlackMambaSkin", 2;
+ delitem "BlackMambaTongue", 1;
+ delitem "BlackMambaEgg", 2;
+ delitem "Ruby", 1;
+ Zeny = Zeny - 5000;
+
+ getitem "BlackMambaGloves", 1;
+ QUEST_Mamba = 2;
+ goto L_DealDone;
+
+L_Mamba_Boots:
+ mes "[Chief Pachua]";
+ mes "\"For a pair of Black Mamba Boots I'll need four Black Mamba Skins, two Black Mamba Tongues for thread, two Rubies, and 10,000 gold.\"";
+ menu
+ "I'll take them.", L_Mamba_Boots_Check,
+ "That's way too much!", L_close;
+
+L_Mamba_Boots_Check:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (countitem("BlackMambaSkin") < 4 || countitem("BlackMambaTongue") < 2 ||
+ countitem("Ruby") < 2) goto L_MissingItems;
+ if (Zeny < 10000) goto L_NoMoney;
+
+ delitem "BlackMambaSkin", 4;
+ delitem "BlackMambaTongue", 2;
+ delitem "Ruby", 2;
+ Zeny = Zeny - 10000;
+
+ getitem "BlackMambaBoots", 1;
+ QUEST_Mamba = 3;
+ goto L_DealDone;
+
+L_Mamba_Legs:
+ mes "[Chief Pachua]";
+ mes "\"For a pair of Black Mamba Pants I'll need six Black Mamba Skins, three Black Mamba Tongues for thread, six Black Mamba Eggs to soften the leather, three Rubies, and 20,000 gold.\"";
+ menu
+ "Here you go!", L_Mamba_Legs_Check,
+ "Um, no thanks.", L_close;
+
+L_Mamba_Legs_Check:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (countitem("BlackMambaSkin") < 6 || countitem("BlackMambaTongue") < 3 ||
+ countitem("BlackMambaEgg") < 6 || countitem("Ruby") < 3) goto L_MissingItems;
+ if (Zeny < 20000) goto L_NoMoney;
+
+ delitem "BlackMambaSkin", 6;
+ delitem "BlackMambaTongue", 3;
+ delitem "BlackMambaEgg", 6;
+ delitem "Ruby", 3;
+ Zeny = Zeny - 20000;
+
+ getitem "BlackMambaPants", 1;
+ QUEST_Mamba = 4;
+ goto L_DealDone;
+
+L_Mamba_Chest:
+ mes "[Chief Pachua]";
+ mes "\"For a Black Mamba Armor I'll need ten Black Mamba Skins, ten Black Mamba Tongues for stitching, two Iron Ingots for strength, ten Rubies, and 250,000 gold.\"";
+ menu
+ "I'll take it.", L_Mamba_Chest_Check,
+ "That's outrageous!", L_close;
+
+L_Mamba_Chest_Check:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (countitem("BlackMambaSkin") < 10 || countitem("BlackMambaTongue") < 10 ||
+ countitem("IronIngot") < 2 || countitem("Ruby") < 10) goto L_MissingItems;
+ if (Zeny < 250000) goto L_NoMoney;
+
+ delitem "BlackMambaSkin", 10;
+ delitem "BlackMambaTongue", 10;
+ delitem "IronIngot", 2;
+ delitem "Ruby", 10;
+ Zeny = Zeny - 250000;
+
+ getitem "BlackMambaArmor", 1;
+ QUEST_Mamba = 5;
+ goto L_DealDone;
+
+L_Mamba_Helm:
+ mes "[Chief Pachua]";
+ mes "\"For a Black Mamba Helm I'll need eight Black Mamba Skins, eight Black Mamba Tongues for stitching, eight Black Mamba Eggs to soften the interior, twenty Rubies to absorb blows, and 100,000 gold.\"";
+ menu
+ "Can I get that boxed?", L_Mamba_Helm_Check,
+ "Not worth it to me right now.", L_close;
+
+L_Mamba_Helm_Check:
+ if (countitem("BlackMambaSkin") < 8 || countitem("BlackMambaTongue") < 8 ||
+ countitem("BlackMambaEgg") < 8 || countitem("Ruby") < 20) goto L_MissingItems;
+ if (Zeny < 100000) goto L_NoMoney;
+
+ delitem "BlackMambaSkin", 8;
+ delitem "BlackMambaTongue", 8;
+ delitem "BlackMambaEgg", 8;
+ delitem "Ruby", 20;
+ Zeny = Zeny - 100000;
+
+ getitem "BlackMambaHelm", 1;
+ QUEST_Mamba = 6;
+ goto L_DealDone;
+
+L_Check_Shops:
+ if ((countitem("JeansShorts") >= 1 && countitem("SnakeSkin") >= 10) && (countitem("FancyHat") >= 1 && countitem("SnakeSkin") >= 2)) goto L_Super_store;
+ if (countitem("JeansShorts") >= 1 && countitem("SnakeSkin") >= 10) goto L_Chaps_store;
+ if (countitem("FancyHat") >= 1 && countitem("SnakeSkin") >= 2) goto L_Cowboy_store;
+
+ mes "[Chief Pachua]";
+ mes "\"Maybe if you bring me the right materials I can make something for you.\"";
+ next;
+ if (@wants_leather_patch)
+ menu
+ "Wait, can you make a leather patch for me?", L_leather_patch,
+ "OK, bye.", L_close;
+ goto L_Super_store;
+
+S_CheckStuff:
+ mes "[Chief Pachua]";
+ mes "\"Let me see what you have there.\"";
+ next;
+ return;
+
+L_Super_store:
+ callsub S_CheckStuff;
+ mes "[Chief Pachua]";
+ mes "\"Ahh you have lots of good items to work with.\"";
+ mes "\"With them I can make you either a Cowboy hat or Snake Skin Chaps\"";
+ next;
+ if (@wants_leather_patch)
+ menu
+ "Cowboy hat, please.", L_BuyCowboy,
+ "Snake Skin Chaps sound good.", L_BuyChaps,
+ "Can you make a leather patch?", L_leather_patch,
+ "Not now, maybe later.", L_NoDeal;
+ menu
+ "Cowboy hat, please.", L_BuyCowboy,
+ "Snake Skin Chaps sound good.", L_BuyChaps,
+ "Not now, maybe later.", L_NoDeal;
+
+L_Cowboy_store:
+ callsub S_CheckStuff;
+ mes "[Chief Pachua]";
+ mes "\"To make you a Cowboy hat I will need:";
+ mes "1 Fancy hat";
+ mes "2 Snake skins";
+ mes "5.000 GP\"";
+ mes "";
+ mes "\"Do we have a deal?\"";
+ next;
+ if (@wants_leather_patch)
+ menu
+ "Yes, that's fine.", L_BuyCowboy,
+ "Can you make a leather patch?", L_leather_patch,
+ "On second thought, maybe later.", L_NoDeal;
+ menu
+ "Yes, that's fine.", L_BuyCowboy,
+ "On second thought, maybe later.", L_NoDeal;
+
+L_Chaps_store:
+ callsub S_CheckStuff;
+ mes "[Chief Pachua]";
+ mes "\"To make you a pair of Snake Skin Chaps I will need:";
+ mes "1 Jeans Shorts";
+ mes "10 Snake skins";
+ mes "10.000 GP\"";
+ mes "";
+ mes "\"Do we have a deal?\"";
+ if (!@wants_leather_patch)
+ menu
+ "Yes, that's fine.", L_BuyChaps,
+ "On second thought, maybe later.", L_NoDeal;
+ if (@wants_leather_patch)
+ menu
+ "Yes, that's fine.", L_BuyChaps,
+ "Can you make a leather patch?", L_leather_patch,
+ "On second thought, maybe later.", L_NoDeal;
+
+L_BuyChaps:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (Zeny < 10000) goto L_NoMoney;
+ if (countitem("JeansShorts") < 1) goto L_NoJeans;
+ if (countitem("SnakeSkin") < 10) goto L_NoSkins;
+ Zeny = Zeny - 10000;
+ delitem "SnakeSkin", 10;
+ delitem "JeansShorts", 1;
+ getitem "JeansChaps", 1;
+ goto L_DealDone;
+
+L_BuyCowboy:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_TooMany;
+ if (Zeny < 5000) goto L_NoMoney;
+ if (countitem("FancyHat") < 1) goto L_NoFancy;
+ if (countitem("SnakeSkin") < 2) goto L_NoSkins;
+ Zeny = Zeny - 5000;
+ delitem "SnakeSkin", 2;
+ delitem "FancyHat", 1;
+ @temp = rand(2);
+ if(@temp == 0) goto L_Cowboy_white;
+ goto L_Cowboy_black;
+
+L_Cowboy_white:
+ getitem "WhiteCowboyHat", 1;
+ goto L_DealDone;
+
+L_Cowboy_black:
+ getitem "BlackCowboyHat", 1;
+ goto L_DealDone;
+
+L_leather_patch:
+ mes "[Chief Pachua]";
+ mes "\"If you just want a piece of leather, then yes, I can make that. Bring me a snake skin and " + @LEATHER_PATCH_PRICE + " GP.\"";
+ next;
+ menu
+ "Here you are.", L_CheckPatchItems,
+ "OK, I'll be back later.", L_close,
+ "That's too expensive!.", L_NoDeal;
+
+L_CheckPatchItems:
+ if (countitem("SnakeSkin") < 1) goto L_NoSkins;
+ if (Zeny < @LEATHER_PATCH_PRICE) goto L_NoMoney;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("SnakeSkin") > 1) goto L_TooMany;
+
+ Zeny = Zeny - @LEATHER_PATCH_PRICE;
+ delitem "SnakeSkin", 1;
+ getitem "LeatherPatch", 1;
+ goto L_DealDone;
+
+L_DealDone:
+ mes "[Chief Pachua]";
+ mes "\"Here you are!";
+ mes "Come back any time.\"";
+ goto L_close;
+
+L_NoDeal:
+ mes "[Chief Pachua]";
+ mes "\"Alright, but you won't get a better deal anywhere else!\"";
+ goto L_close;
+
+L_MissingItems:
+ mes "[Chief Pachua]";
+ mes "\"You don't seem to have all the items I need to craft that. Come back when you do.\"";
+ goto L_close;
+
+L_NoMoney:
+ mes "[Chief Pachua]";
+ mes "\"Oh dear, it seems you don't have enough money.\"";
+ goto L_close;
+
+L_NoJeans:
+ mes "[Chief Pachua]";
+ mes "\"Oh dear, it seems you don't have enough jean shorts.\"";
+ goto L_close;
+
+L_NoFancy:
+ mes "[Chief Pachua]";
+ mes "\"Oh dear, it seems you don't have enough fancy hats.\"";
+ goto L_close;
+
+L_NoSkins:
+ mes "[Chief Pachua]";
+ mes "\"Oh dear, it seems you don't have enough snake skins.\"";
+ goto L_close;
+
+L_WearingCowboy:
+ mes "[Chief Pachua]";
+ mes "\"Ah, I see that you are wearing a hat made with the ancient methods of my tribe.\"";
+ next;
+ goto L_Check_Shops;
+
+L_WearingChaps:
+ mes "[Chief Pachua]";
+ mes "\"Ah, I see that you are wearing pants made by my tribe.\"";
+ next;
+ goto L_Check_Shops;
+
+L_close:
+ @LEATHER_PATCH_PRICE = 0;
+ @wants_leather_patch = 0;
+ @month = 0;
+ @start_day = 0;
+ @end_day = 0;
+ @temp = 0;
+ close;
+
+L_TooMany:
+ mes "[Chief Pachua]";
+ mes "\"You don't have room for another item. Come back later.\"";
+ goto L_close;
+
+L_smoke:
+ message strcharinfo(0), "Pachua quickly inhales from his pipe and releases a ring of smoke towards the sky!";
+ QUEST_MIRIAM_run = gettimetick(2) - QUEST_MIRIAM_start;
+ QUEST_MIRIAM_start = 0;
+ close;
+
+L_Warp2_cheat:
+ if (@warp_cheat == 1) goto L_Begin;
+ message strcharinfo(0), "Pachua releases a ring of smoke towards the sky! But, by the look on his face, you can tell he is suspicious about your methods...";
+ @warp_cheat = 1;
+ end;
+
+L_Basket:
+ mes "[Chief Pachua]";
+ mes "\"For generations my tribe has been crafting special clothes out of different items.\"";
+ mes "\"Maybe if you bring me the right materials I can make something for you.\"";
+ next;
+ menu
+ "Do you work only with clothes? Because I was looking for a basket.", L_AskBasket;
+
+L_AskBasket:
+ mes "\"A basket? In our tribe, we craft baskets of all kinds using only reeds. This basket, you need it to carry your items?\"";
+ menu
+ "No. It is for the Easter Bunny. I offered to get him one.", L_EasterBunny;
+
+L_EasterBunny:
+ mes "\"I appreciate your attitude. Maybe I can help you with that.\"";
+ menu
+ "I would be really grateful if you could do that!", L_SetStatus,
+ "Nah, I decided not to do that stupid quest.", L_close,
+ "I would prefer to talk to you about other stuff.", L_Begin; //should go to pachuas's regular chat
+
+L_SetStatus:
+ QUEST_Easter11 = 2;
+
+L_MakeBasket:
+ mes "[Chief Pachua]";
+ mes "\"I will need you to gather reeds for me.\"";
+ mes "\"5 bundles should do it.\"";
+ mes "\"You should be able to get those from mouboos as they graze.\"";
+ menu
+ "I have the Reeds!", L_CheckBasketItems,
+ "Ok, I will be back soon", L_close,
+ "I changed my mind, forget about it", L_close,
+ "Can I talk to you about another stuff?", L_Begin; //should go to pachuas's regular chat
+
+L_CheckBasketItems:
+ if(countitem("ReedBundle") < 5) goto L_EasterNotEnough;
+ if(countitem("ReedBundle") >= 5) goto L_EasterEnough;
+ goto L_close;
+
+L_EasterNotEnough:
+ mes "[Chief Pachua]";
+ mes "\"You do not have enough Reed Bundles for me to work with.\"";
+ mes "\"Go gather more.\"";
+ goto L_close;
+
+L_EasterEnough:
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("ReedBundle") > 5) goto L_EasterTooMany;
+ if(countitem("ReedBundle") < 5) goto L_EasterNotEnough;
+ delitem "ReedBundle", 5;
+ getitem "EasterBasket", 1;
+ QUEST_Easter11 = 3;
+ mes "[Chief Pachua]";
+ mes "\"You have gathered enough reeds for me to make the basket.\"";
+ mes "He skillfully soaks the reeds you brought him,";
+ mes "then swiftly weaves them into a basket shape.";
+ mes "Next, he places the damp basket in the sun to dry for a minute before handing it over to you.";
+ mes "\"Here is your Easter Basket.\"";
+ goto L_close;
+
+L_EasterTooMany:
+ mes "[Chief Pachua]";
+ mes "\"You don't have room for the Easter Basket. Come back later.\"";
+ goto L_close;
+
+L_SeeBunny:
+ mes "[Chief Pachua]";
+ mes "\"You need to return to the Easter Bunny now.\"";
+ next;
+ goto L_Begin;
+
+L_TrickOrTreat:
+ callfunc "TrickOrTreat2011";
+ goto L_Begin;
+}