From 59509d98fff09e3f971930a8b7996c7e83e19193 Mon Sep 17 00:00:00 2001 From: NetSysFire <59517351+NetSysFire@users.noreply.github.com> Date: Fri, 24 Feb 2023 00:31:09 +0100 Subject: add pointless easteregg --- npc/functions/treasure.txt | 11 +++++++++-- 1 file 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); -- cgit v1.2.3-60-g2f50