diff options
-rw-r--r-- | npc/014-1/galimatia.txt | 36 |
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; } |