summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/treasure.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index a5fd6d6be..668fcd4ab 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -68,8 +68,10 @@ function script TreasureBox {
else if (.@r < 5200)
.@money=rand(20, 80)
.@loot=any(MercBoxA, SmokeGrenade, Potatoz, MoubooSteak, ClothoLiquor, Coal, SmallMushroom, HastePotion, StrengthPotion, WoodenLog, LeatherPatch, Lockpicks, Beer, StrangeCoin, EquipmentBlueprintA, EquipmentBlueprintB, AlchemyBlueprintA, SpearmintTea, TreasureMap, DungeonMap, IcedBottle);
- if (.@loot == Coal || .@loot == Potatoz)
+ if (.@loot == Coal)
.@count=rand(4, 6);
+ else if (.@loot == Potatoz)
+ .@count=rand(4, 8);
else if (.@loot == LeatherPatch)
.@count=rand(3, 4);
else if (.@loot == StrangeCoin)
@@ -88,11 +90,16 @@ function script TreasureBox {
else if (.@loot == LeatherPatch)
.@count=rand(1, 2);
-
inventoryplace .@loot, .@count;
mesc l("You find %s x%d inside!", getitemlink(.@loot), .@count);
getitem .@loot, 1;
Zeny+=.@money
+ // Pointless easteregg
+ if ($EVENT$ = "Christmas" && .@loot == Coal)
+ if (alignment() >= 0)
+ dispbottom l("I must have been naughty.");
+ else
+ dispbottom l("My devilish actions have been rewarded!");
// Get Monster points for treasure hunting (20% from job level)
if (MPQUEST)
Mobpt+=(JobLevel/5);