diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-11-13 10:22:14 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-11-13 10:22:14 -0300 |
commit | 6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb (patch) | |
tree | 28f396b7202ca369b3d3f6f0e95bdc76fdd05589 | |
parent | 4fd1eaa4167235a50d493b3de0b1a1047f9eff4d (diff) | |
download | serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.gz serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.bz2 serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.xz serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.zip |
Draft finished
-rw-r--r-- | npc/024-7/afking.txt | 26 | ||||
-rw-r--r-- | npc/functions/treasure.txt | 2 |
2 files changed, 25 insertions, 3 deletions
diff --git a/npc/024-7/afking.txt b/npc/024-7/afking.txt index f3d59c8cc..a7bf4d341 100644 --- a/npc/024-7/afking.txt +++ b/npc/024-7/afking.txt @@ -109,6 +109,7 @@ function AFItemList { mesc l("@@/@@ @@", countitem(CobaltHerb), 100, getitemlink(CobaltHerb)); mesc l("@@/@@ @@", countitem(CottonCloth), 25, getitemlink(CottonCloth)); mesc l("@@/@@ @@", countitem(BlueDye), 1, getitemlink(BlueDye)); + mesc l("@@/@@ @@", format_number(Zeny), format_number(5000), "GP"); next; // FIXME Deprecate .@ scope on flag if (.@flag) { @@ -126,14 +127,35 @@ function AFItemList { } function AFDeliver { - mesc l("TODO"), 1; + inventoryplace AFKCap, 1; + if ( + countitem(SilkCocoon) < 300 || + countitem(CobaltHerb) < 100 || + countitem(CottonCloth) < 25 || + countitem(BlueDye) < 1 || + Zeny < 5000) { + mesn; + mesq l("I'll feed you to the Moubootaur %%e"); + setparam(MaxHp, readparam(MaxHp)-100); + percentheal -100, -100; + close; + } + Zeny-=5000; + delitem SilkCocoon, 300; + delitem CobaltHerb, 100; + delitem CottonCloth, 25; + delitem BlueDye, 1; + getitem AFKCap, 1; + setq FrostiaQuest_AFKCap, 2; + mesn; + mesq l("There you go. Enjoy it!"); return; } OnInit: .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, AFKCap); - setunitdata(.@npcId, UDT_HEADMIDDLE, SilkRobe); + setunitdata(.@npcId, UDT_HEADMIDDLE, SilkRobe); // TODO setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots); setunitdata(.@npcId, UDT_HAIRSTYLE, 26); setunitdata(.@npcId, UDT_HAIRCOLOR, 0); diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index 9c695da9e..19f139e4a 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -39,7 +39,7 @@ function script TreasureBox { else if (.@t % 50 == 0 || .@r < 100) .@loot=any(SmokeGrenade, SnakeEgg, LachesisBrew, ArrowAmmoBox, GoldPieces, SilverGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, AlchemyBlueprintC, AncientBlueprint); else if (.@r < 1000 || .@t == 0) - .@loot=any(MoubooSteak, ClothoLiquor, Coal, RedPlushWine, HastePotion, CoinBag, StrengthPotion, Dagger, BronzeGift, IronOre, CopperOre, AlchemyBlueprintB); + .@loot=any(MoubooSteak, ClothoLiquor, Coal, RedPlushWine, HastePotion, CoinBag, StrengthPotion, Dagger, BronzeGift, IronOre, CopperOre, BlueDye, AlchemyBlueprintB); else if (.@r < 5000) .@loot=any(Croconut, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, Beer, EquipmentBlueprintA, AlchemyBlueprintA); else |