From 3f32c768d10c88de1426b83cdedfd5c7587bb978 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 Jun 2018 11:18:29 -0300 Subject: Neko and Jeans Shorts --- db/quest_db.conf | 4 ++++ npc/003-1/neko.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/db/quest_db.conf b/db/quest_db.conf index a15155597..ea8cc8467 100644 --- a/db/quest_db.conf +++ b/db/quest_db.conf @@ -188,6 +188,10 @@ quest_db: ( Id: 62 Name: "TulimsharQuest_Sewers" }, +{ + Id: 63 + Name: "TulimsharQuest_Neko" +}, // ID 71 to 90: Halinarzo Quests { diff --git a/npc/003-1/neko.txt b/npc/003-1/neko.txt index 24ec82a79..0807a60af 100644 --- a/npc/003-1/neko.txt +++ b/npc/003-1/neko.txt @@ -4,13 +4,57 @@ // Jesusalva // Description: // Another shopkeeper which babbles about Jean Shorts, how Cave Snake drops them -// and encourage players to find it +// and encourage players to find it. He pays 6.000 GP and gives 1620 xp for one. +// In future, this could grant you discounts on his shop, or allow a quest with +// a family member from his. 003-1,103,106,0 script Neko NPC_PLAYER,{ + .@q=getq(TulimsharQuests_Neko); + mesn; + mesq l("Only finest wares!"); + mes ""; + select + l("Trade"), + rif(BaseLevel > 20 && .@q == 0, l("Why do you only use the silk robe? Don't you have a shorts or something?")), + rif(.@q == 1 && countitem(JeansShorts) >= 1, l("I've brought a Jean Shorts for you.")), + l("Leave"); -hello; -shop .name$; -close; + if (@menu == 2) { + mesn; + mesq l("Oh, that's a long story."); + next; + mesn; + mesq l("You see, I was walking on the secret caves near Ched, and... well..."); + next; + mesn; + mesq l("The @@ stole my @@. Hahah. I can't find anywhere else to buy it.", getmonsterlink(CaveSnake), getitemlink(JeansShorts)); + next; + setq TulimsharQuests_Neko, 1; + mesn; + mesq l("If you bring friends, I'm sure they'll be no match. I'll pay you handsomely if you bring me one, too!"); + next; + } + if (@menu == 3) { + delitem JeansShorts, 1; + Zeny=Zeny+6000; + getexp 1620, 0; // Level 20 maximum experience + setq TulimsharQuests_Neko, 2; + mesn; + mesq l("Oh... Thank you! Here is @@ GP for it.", getitemlink(JeansShorts)); + next; + mesn; + mesq l("I'm surprised, though. It is a very good defensive item, and players can buy it for pretty high sums of money."); + next; + mesn; + mesq l("Well, profit for me! Thanks for your help. I'll tell all my family how you help me. %%1"); + next; + } + + closedialog; + goodbye; + if (@menu == 1) + shop .name$; + close; OnInit: .@npcId = getnpcid(0, .name$); -- cgit v1.2.3-70-g09d2