summaryrefslogtreecommitdiff
path: root/npc/019-1-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-11 11:30:07 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-11 11:30:07 -0300
commit0866ab60a83869022f3fb82fa667048146f1951a (patch)
tree9447fd82fddb8bcb8374ed0644fc6837cfe5883b /npc/019-1-1
parent940db96c1d6df39ffa7563ddb0753c9912991ff3 (diff)
downloadserverdata-0866ab60a83869022f3fb82fa667048146f1951a.tar.gz
serverdata-0866ab60a83869022f3fb82fa667048146f1951a.tar.bz2
serverdata-0866ab60a83869022f3fb82fa667048146f1951a.tar.xz
serverdata-0866ab60a83869022f3fb82fa667048146f1951a.zip
Average Rewards on Miler (final reward TBD)
Diffstat (limited to 'npc/019-1-1')
-rw-r--r--npc/019-1-1/miler.txt27
1 files 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)) {