summaryrefslogtreecommitdiff
path: root/npc/014-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-04-27 17:23:04 -0300
committerJesusaves <cpntb1@ymail.com>2022-04-27 17:23:04 -0300
commit1eceda2f05a2ce613e6847de36d078fabeb450f4 (patch)
tree3f2eed96027e68dc8133c0b300a52c13b165b042 /npc/014-1
parenteee72bc0c84cdc445aa85f996f9403b55a60e173 (diff)
downloadserverdata-1eceda2f05a2ce613e6847de36d078fabeb450f4.tar.gz
serverdata-1eceda2f05a2ce613e6847de36d078fabeb450f4.tar.bz2
serverdata-1eceda2f05a2ce613e6847de36d078fabeb450f4.tar.xz
serverdata-1eceda2f05a2ce613e6847de36d078fabeb450f4.zip
Galimatia now buys honey with 50% profit.
She also sells the hat but it is expensive! (Repeatable)
Diffstat (limited to 'npc/014-1')
-rw-r--r--npc/014-1/galimatia.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/npc/014-1/galimatia.txt b/npc/014-1/galimatia.txt
index 1f6e57640..8298cd904 100644
--- a/npc/014-1/galimatia.txt
+++ b/npc/014-1/galimatia.txt
@@ -7,11 +7,47 @@
014-1,126,21,0 script Galimatia NPC_BEEKEEPER,{
mesn;
mesq l("Feel free to collect honey from the hives. Remember to bottle them before picking up... You can use the discardable bottles I keep near them for that.");
+ if (!countitem(Honey)) close;
+ next;
+ mesn;
+ mesq l("I can also pay %d GP per %s.", .price, getitemlink(Honey));
+ if (countitem(BeeStinger)) mesc l("But if you bring me %d %s and %d %s and %s GP, I can give you a %s!", 20, getitemlink(BeeStinger), 10, getitemlink(Honey), fnum(3500));
+ next;
+ do
+ {
+ select
+ rif(countitem(Honey), "Sell a honey for %d GP", .price),
+ rif(countitem(Honey) >= 10 &&
+ countitem(BeeStinger) >= 20 &&
+ Zeny >= 3500, "Deal, I want the hat!"),
+ l("Nice, thanks.");
+ mes "";
+ switch (@menu) {
+ case 1:
+ delitem Honey, 1;
+ Zeny+=.price;
+ break;
+ case 2:
+ delitem Honey, 10;
+ delitem BeeStinger, 20;
+ Zeny-=3500;
+ getitem BeeKeeperHat, 1;
+ mesn;
+ mesq l("Thanks, here is your hat!");
+ close;
+ break;
+ case 3:
+ close;
+ break;
+ }
+ } while (true);
// FIXME: Quest for [Bee Keeper Hat]
+ // BeeStinger
close;
OnInit:
.sex = G_FEMALE;
.distance = 4;
+ .price = getiteminfo(Honey, ITEMINFO_SELLPRICE) * 15 / 10;
end;
}