diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-12 18:13:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-03-12 18:13:39 -0300 |
commit | 78f9c88f4ab17a12ce6eceef510e0bc8b2e603ed (patch) | |
tree | 4a523647feb78f3481f5e68bac7d5401c8a7f375 /npc/005-1 | |
parent | 6d2f3122c810daee837d210adf1e594915939a42 (diff) | |
download | serverdata-78f9c88f4ab17a12ce6eceef510e0bc8b2e603ed.tar.gz serverdata-78f9c88f4ab17a12ce6eceef510e0bc8b2e603ed.tar.bz2 serverdata-78f9c88f4ab17a12ce6eceef510e0bc8b2e603ed.tar.xz serverdata-78f9c88f4ab17a12ce6eceef510e0bc8b2e603ed.zip |
Finish Maya as I want
Diffstat (limited to 'npc/005-1')
-rw-r--r-- | npc/005-1/maya.txt | 79 |
1 files changed, 66 insertions, 13 deletions
diff --git a/npc/005-1/maya.txt b/npc/005-1/maya.txt index ed8794396..80a5f3121 100644 --- a/npc/005-1/maya.txt +++ b/npc/005-1/maya.txt @@ -9,8 +9,8 @@ // 00 Default, no quest selected. // 01 First quest accepted: Need 3 cotton cloth and 3 maggot slime // 02 First quest completed: Reward Candor shirt -// 03 Second quest accepted: Need -// 04 Second quest completed: Reward +// 03 Second quest accepted: Need 3 ScorpionStinger and 10 Piou Feathers +// 04 Second quest completed: Reward 700 GP (precise calculation) // 05 wolvern tooth +20k + 2000monster point ->claw pendant 005-1,42,37,0 script Maya NPC_RAIJIN_FEMALE_LEGION_ARTIS,{ @@ -21,13 +21,11 @@ if (.@maya == 1) goto L_QuestAccepted; if (.@maya == 2) - goto L_NextQuestPending; + goto L_Quest2; if (.@maya == 3) - goto L_NextQuestPending; + goto L_Quest2Accepted; if (.@maya == 4) goto L_NextQuestPending; - if (.@maya == 5) - goto L_NextQuestPending; L_QuestNotStarted: mesn; @@ -50,13 +48,10 @@ L_QuestAccepted: mes ""; menu rif(countitem("Cotton Cloth") >= 3 && countitem("Maggot Slime") >= 3, l("Here they are!")), L_QuestCompleted, - rif(countitem("Cotton Cloth") < 3 && countitem("Maggot Slime") < 3, l("Oh, then I don't have enough! I'll bring more later!")), L_Close, + rif(countitem("Cotton Cloth") < 3 || countitem("Maggot Slime") < 3, l("Oh, then I don't have enough! I'll bring more later!")), L_Close, l("Can we get back to that later?"), -; close; -L_Close: - close; - L_QuestCompleted: delitem CottonCloth, 3; delitem MaggotSlime, 3; @@ -69,10 +64,68 @@ L_QuestCompleted: mesq l("Thanks for the help. Here, take this shirt and some money."); close; + + + +L_Quest2: + mesn; + mesq l("Thanks again for the help. You have proven that you are resourceful."); + next; + if (BaseLevel < 7) mesn; + if (BaseLevel < 7) mesq l("But maybe you should help other people and get some levels before returning to me."); + if (BaseLevel < 7) close; + mesn; + mesq l("As always, I can use a helping hand around here. Interested?"); + mes ""; + menu + l("Sure"),-, + l("No, thanks."),L_Close; + + mes ""; + mesn; + mesq l("Good! I want 3 @@ and 10 @@. I have a contract to transform that in good money.", + getitemlink(ScorpionStinger), getitemlink(PiouFeathers)); + setq CandorQuest_Maya, 3; + close; + +L_Quest2Accepted: + mesn; + mesq l("I see you have brought @@/3 @@ and @@/10 @@ for me.", + countitem(ScorpionStinger),getitemlink(ScorpionStinger), + countitem(PiouFeathers),getitemlink(PiouFeathers)); + mes ""; + menu + rif(countitem(ScorpionStinger) >= 3 && countitem(PiouFeathers) >= 10, l("Here they are!")), L_QuestCompleted, + rif(countitem(ScorpionStinger) < 3 || countitem(PiouFeathers) < 10, l("Oh, then I don't have enough! I'll bring more later!")), L_Close, + l("Can we get back to that later?"), -; + close; + +L_Quest2Completed: + delitem ScorpionStinger, 3; + delitem PiouFeathers, 10; + set Zeny, Zeny + 700; + setq CandorQuest_Maya, 4; + + // Reward Calculation: Piou base is 3 and Stinger base is 25. + // Maya will pay in a 1.5x factor + 300 GP she owed you + a small bonus to round things + // (3*3*1.5)+(25*10*1.5) = roughly 389 GP + 300 + bonus(11) = 700 + + mes ""; + mesn; + mesq l("Thanks for the help! If you help people, they'll start trusting you. Once they trust you, they'll give you quests which are very important to them;"); + next; + mesn; + mesq l("And once they entrust you with what is important for them, they'll pay better. Here is 700 GP. Come back later."); + close; + + L_NextQuestPending: -mesn; -mesq l("Thanks again for the help. You have proven that you are resourceful. Come back again later."); -close; + mesn; + mesq l("Thanks again for the help. You have proven that you are resourceful. Come back again later."); + close; + +L_Close: + close; OnInit: |