summaryrefslogtreecommitdiff
path: root/npc/024-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-13 10:22:14 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-13 10:22:14 -0300
commit6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb (patch)
tree28f396b7202ca369b3d3f6f0e95bdc76fdd05589 /npc/024-7
parent4fd1eaa4167235a50d493b3de0b1a1047f9eff4d (diff)
downloadserverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.gz
serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.bz2
serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.tar.xz
serverdata-6038eb066fc67a6c07c4d92dcb0b56bd6ed6dbdb.zip
Draft finished
Diffstat (limited to 'npc/024-7')
-rw-r--r--npc/024-7/afking.txt26
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);