diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-11-13 10:14:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-11-13 10:14:34 -0300 |
commit | 4fd1eaa4167235a50d493b3de0b1a1047f9eff4d (patch) | |
tree | 1d0d7c21605d8021f66e2e3fc2b6861b575dae95 /npc | |
parent | 52576af721441838634458bf57b9b5c425152595 (diff) | |
download | serverdata-4fd1eaa4167235a50d493b3de0b1a1047f9eff4d.tar.gz serverdata-4fd1eaa4167235a50d493b3de0b1a1047f9eff4d.tar.bz2 serverdata-4fd1eaa4167235a50d493b3de0b1a1047f9eff4d.tar.xz serverdata-4fd1eaa4167235a50d493b3de0b1a1047f9eff4d.zip |
Drafts
Diffstat (limited to 'npc')
-rw-r--r-- | npc/024-7/afking.txt | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/npc/024-7/afking.txt b/npc/024-7/afking.txt index 0060e05af..f3d59c8cc 100644 --- a/npc/024-7/afking.txt +++ b/npc/024-7/afking.txt @@ -10,13 +10,14 @@ function AFGrinding; function AFKingGelid; function AFItemList; - //function AF + function AFDeliver; if (BaseLevel < 47) { npctalkonce l("*AFK: I am Away From Keyboard*"); end; } .@q=getq(FrostiaQuest_AFKCap); + .@flag=false; switch (.@q) { case 0: // Mission not started @@ -31,6 +32,7 @@ l("Good, I need to talk with the King."), l("You have a nice hat."), l("Do you know where I can level up?"), + rif(.@flag, l("I would like a hat like yours.")), l("Nothing, good bye!"); mes ""; switch (@menu) { @@ -38,16 +40,23 @@ AFKingGelid(); case 2: AFPrologue(); + .@flag=true; case 3: AFGrinding(); + case 4: + setq FrostiaQuest_AFKCap, 1; + AFItemList(); default: close; } } while (true); break; case 1: // Mission accepted + AFItemList(); break; case 2: // Mission complete + npctalkonce l("*AFK: I am Away From Keyboard*"); + end; break; } @@ -92,6 +101,31 @@ function AFKingGelid { } function AFItemList { + mesn; + mesq l("Sure, no problem! For this awesome hat which I can make it myself, you'll need to bring me a few items!"); + next; + mes ".:: "+l("Item List")+" ::."; + mesc l("@@/@@ @@", countitem(SilkCocoon), 300, getitemlink(SilkCocoon)); + mesc l("@@/@@ @@", countitem(CobaltHerb), 100, getitemlink(CobaltHerb)); + mesc l("@@/@@ @@", countitem(CottonCloth), 25, getitemlink(CottonCloth)); + mesc l("@@/@@ @@", countitem(BlueDye), 1, getitemlink(BlueDye)); + next; + // FIXME Deprecate .@ scope on flag + if (.@flag) { + mesn; + mesq l("Now I'll be waiting!"); + close; + } + select + l("Okay, I'll be back!"), + l("I have everything you've asked for."); + mes ""; + if (@menu == 2) + AFDeliver(); + return; +} + +function AFDeliver { mesc l("TODO"), 1; return; } |