summaryrefslogtreecommitdiff
path: root/npc/003-0-1/maxime.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-29 15:46:17 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-29 15:46:30 -0300
commit329559c9c953e5154f670aa470293cf595743e34 (patch)
treeafc3a1539cd35c02f806adcc1f4929d432d88993 /npc/003-0-1/maxime.txt
parente9ce05a396a1669eea9673725a33eb8098d34214 (diff)
downloadserverdata-329559c9c953e5154f670aa470293cf595743e34.tar.gz
serverdata-329559c9c953e5154f670aa470293cf595743e34.tar.bz2
serverdata-329559c9c953e5154f670aa470293cf595743e34.tar.xz
serverdata-329559c9c953e5154f670aa470293cf595743e34.zip
Tonori Delight Alpha
Diffstat (limited to 'npc/003-0-1/maxime.txt')
-rw-r--r--npc/003-0-1/maxime.txt87
1 files changed, 87 insertions, 0 deletions
diff --git a/npc/003-0-1/maxime.txt b/npc/003-0-1/maxime.txt
new file mode 100644
index 000000000..ab1d29496
--- /dev/null
+++ b/npc/003-0-1/maxime.txt
@@ -0,0 +1,87 @@
+// TMW-2 Script.
+// Author:
+// Saulc
+// Jesusalva
+// Notes:
+// Bakes Tonori Delight
+
+003-0-1,77,40,0 script Maxime NPC_PLAYER,{
+ mesn;
+ mesq l("Hello. I know the secrets of the legendary @@.", getitemlink(TonoriDelight));
+ next;
+ mesn;
+ mesq l("I could easily bake one for you, provided you bring me the following:");
+ mesc l("@@/12 @@", countitem(MaggotSlime), getitemlink(MaggotSlime));
+ mesc l("@@/8 @@", countitem(Plushroom), getitemlink(Plushroom));
+ mesc l("@@/4 @@", countitem(MushroomSpores), getitemlink(MushroomSpores));
+ mesc l("@@/3 @@", countitem(ScorpionStinger), getitemlink(ScorpionStinger));
+ mesc l("@@/2 @@", countitem(RoastedMaggot), getitemlink(RoastedMaggot));
+ mesc l("@@/1 @@", countitem(CactusPotion), getitemlink(CactusPotion));
+ mesc l("150 GP");
+ next;
+ select
+ l("I have the items, please bake for me"),
+ l("Ah, nice to know.");
+
+ mes "";
+
+ if (@menu == 2)
+ goto L_Close;
+
+ if (
+ countitem(MaggotSlime) < 12 ||
+ countitem(Plushroom) < 8 ||
+ countitem(MushroomSpores) < 4 ||
+ countitem(ScorpionStinger) < 3 ||
+ countitem(RoastedMaggot) < 2 ||
+ countitem(CactusPotion) < 1 ||
+ Zeny < 150
+ ) goto L_Missing;
+
+ // 3~7 normaly, 4~10 during Summer
+ inventoryplace TonoriDelight, 12;
+ delitem MaggotSlime, 12;
+ delitem Plushroom, 8;
+ delitem MushroomSpores, 4;
+ delitem ScorpionStinger, 3;
+ delitem RoastedMaggot, 2;
+ delitem CactusPotion, 1;
+ getitem TonoriDelight, rand(3,7);
+ if (season() == SUMMER) {
+ getitem TonoriDelight, rand(1,3);
+ mesc l("During summer, more Tonori Delight can be produced.");
+ }
+ getexp rand(30, 60), 0;
+
+ mesn;
+ mesq l("Here you go, fresh from the oven!");
+ next;
+
+L_Close:
+ closedialog;
+ goodbye;
+ close;
+
+L_Missing:
+ mesn;
+ mesq l("You don't have everything I asked you for.");
+ next;
+ mesn;
+ mesq l("I always wonder if I should raise my price to teach bad kids to don't lie.");
+ close;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, ChefHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, SilkRobe);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, CottonTrousers);
+ setunitdata(.@npcId, UDT_WEAPON, AssassinBoots);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 26);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 2);
+
+ .sex = G_MALE;
+ .distance = 4;
+ npcsit;
+ end;
+}
+