diff options
author | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-24 00:31:09 +0100 |
---|---|---|
committer | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-24 00:31:09 +0100 |
commit | 59509d98fff09e3f971930a8b7996c7e83e19193 (patch) | |
tree | c3ba76894e3727f243eda589d84bb896afa526ad | |
parent | 2ef3e7daf56875c6ffe697702679cc8219ef37f6 (diff) | |
download | serverdata-59509d98fff09e3f971930a8b7996c7e83e19193.tar.gz serverdata-59509d98fff09e3f971930a8b7996c7e83e19193.tar.bz2 serverdata-59509d98fff09e3f971930a8b7996c7e83e19193.tar.xz serverdata-59509d98fff09e3f971930a8b7996c7e83e19193.zip |
add pointless easteregg
-rw-r--r-- | npc/functions/treasure.txt | 11 |
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); |