From 0866ab60a83869022f3fb82fa667048146f1951a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 11 Sep 2018 11:30:07 -0300 Subject: Average Rewards on Miler (final reward TBD) --- npc/019-1-1/miler.txt | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/npc/019-1-1/miler.txt b/npc/019-1-1/miler.txt index 3eb840f1a..2155ccd91 100644 --- a/npc/019-1-1/miler.txt +++ b/npc/019-1-1/miler.txt @@ -113,7 +113,7 @@ L_Quest: mesq l("Great, just bring me several boxes, once one of them have the ring I'm looking for."); close; -// Loop +// Open Present Box Loop L_Box: inventoryplace NPCEyes, 1; .@q2=getq2(LoFQuest_EPISODE); @@ -121,9 +121,30 @@ L_Box: setq2 LoFQuest_EPISODE, .@q2+1; mesn; mesc l("@@ uses his screwdriver and open the sealed gift box like a pro.", .name$); - if (.@q2 >= 70) + // Handle result + if (.@q2 >= 70) { goto L_Success; - mesc l("But the box was empty."); + } else if (.@q2 >= 50) { + .@id=any(WhiteFur, Candy, Milk, Lockpicks, MaggotSlime, CandyCane, ChocolateBar, XmasCake, GingerBreadMan, CherryCake, Plushroom, Moss, Chagashroom, BugLeg); + getitem .@id, 1; + mesc l("But there was only a(n) @@ inside.", getitemlink(.@id)); + } else if (.@q2 >= 30) { + if (rand(1,50) < .@q2) { + .@id=any(Candy, MaggotSlime, Plushroom, Chagashroom, BugLeg); + getitem .@id, 1; + mesc l("But there was only a(n) @@ inside.", getitemlink(.@id)); + } else { + .@id=rand(2,4)+.@q2; + Zeny=Zeny+.@id; + mesc l("But there was only @@ GP inside.", .@id); + } + } else if (.@q2 >= 10) { + .@id=rand(3,5)+.@q2; + Zeny=Zeny+.@id; + mesc l("But there was only @@ GP inside.", .@id); + } else { + mesc l("But the box was empty."); + } // Try again! if (countitem(PresentBox)) { -- cgit v1.2.3-60-g2f50