diff options
Diffstat (limited to 'npc/024-7/afking.txt')
-rw-r--r-- | npc/024-7/afking.txt | 26 |
1 files changed, 24 insertions, 2 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); |