summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNetSysFire <59517351+NetSysFire@users.noreply.github.com>2023-02-24 00:37:32 +0100
committerNetSysFire <59517351+NetSysFire@users.noreply.github.com>2023-02-24 00:37:32 +0100
commit83b38f49c81390582b6bdc98ba2137983fd9df94 (patch)
treed5eaf2fedcd7e7039c94665bf936154048a287a1
parent59509d98fff09e3f971930a8b7996c7e83e19193 (diff)
downloadserverdata-83b38f49c81390582b6bdc98ba2137983fd9df94.tar.gz
serverdata-83b38f49c81390582b6bdc98ba2137983fd9df94.tar.bz2
serverdata-83b38f49c81390582b6bdc98ba2137983fd9df94.tar.xz
serverdata-83b38f49c81390582b6bdc98ba2137983fd9df94.zip
why all the semicolons, its not javascript god dammit
-rw-r--r--npc/functions/treasure.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 668fcd4ab..7ea9b3f74 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -50,15 +50,15 @@ function script TreasureBox {
.@money=0;
// ultra rare
if (.@t % 149 == 0 || .@r < .@ur_rate)
- .@money=rand(1000, 2000)
+ .@money=rand(1000, 2000);
.@loot=any(ScrollMagnusHealC, SaviorBlueprint, DivineApple, MercBoxE, ScrollSDragon, Shemagh, Shemagh, EverburnPowder, IridiumOre, PlatinumOre, SacredImmortalityPotion, MagicApple, ElixirOfLife);
// super rare
else if (.@t % 50 == 0 || .@r < 200)
- .@money=rand(500, 750)
+ .@money=rand(500, 750);
.@loot=any(MercBoxC, ScrollMagnusHealB, SnakeEgg, LachesisBrew, ArrowAmmoBox, GoldPieces, SilverGift, TerraniteOre, LeadOre, TinOre, SilverOre, GoldOre, TitaniumOre, FluoPowder, Lockpicks, EquipmentBlueprintC, AlchemyBlueprintC, AlchemyBlueprintD, AncientBlueprint, YerbaMate, JasmineTea, DeathPotion, SacredLifePotion, SacredManaPotion, BrokenWarpCrystal, PurificationPotion, GoldenApple);
// rare
else if (.@r < 1600 || .@t == 0)
- .@money=rand(100, 300)
+ .@money=rand(100, 300);
.@loot=any(MercBoxB, MoubooSteak, ClothoLiquor, Coal, RedPlushWine, PrecisionPotion, CoinBag, DodgePotion, MoveSpeedPotion, Dagger, Lockpicks, BronzeGift, IronOre, CopperOre, BlueDye, EquipmentBlueprintB, AlchemyBlueprintB, AlchemyBlueprintC, OolongTea, Curshroom);
if (.@loot == Coal)
.@count=rand(6, 10);
@@ -66,7 +66,7 @@ function script TreasureBox {
.@count=rand(1, 3);
// uncommon
else if (.@r < 5200)
- .@money=rand(20, 80)
+ .@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)
.@count=rand(4, 6);
@@ -93,7 +93,7 @@ function script TreasureBox {
inventoryplace .@loot, .@count;
mesc l("You find %s x%d inside!", getitemlink(.@loot), .@count);
getitem .@loot, 1;
- Zeny+=.@money
+ Zeny+=.@money;
// Pointless easteregg
if ($EVENT$ = "Christmas" && .@loot == Coal)
if (alignment() >= 0)