summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {