From ca7a22f4ae63d68011d2ae1b4c01e880b6de17e4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 Dec 2018 18:22:55 -0200 Subject: Add 1% chance to get a Super Rare Item on Christmas Box. The selection of super rares exclude most trash, and include Ice Gladius --- db/re/item_db.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index f0f390d9c..26b423202 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2534,10 +2534,16 @@ item_db: ( noselltonpc: true } Script: <" + setarray .@s, SantaGlobe, SnowmanGlobe, UglyChristmasSweater, MercBoxB, IceGladius; setarray .@r, SantaGlobe, SnowmanGlobe, UglyChristmasSweater, TneckSweater, MercBoxA, MercBoxA, MercBoxB, ElixirOfLife, NoviceWand, LeadOre, DarkDesertMushroom; setarray .@c, BronzeGift, IcedBottle, TneckSweater, MercBoxA, MercBoxA, ClothoLiquor, Dagger, Dagger, HastePotion, HerbalTea, StrengthPotion, TrainingWand; - // 27% rare chance only - if (rand(0,100) < 27) { + .@al=rand(0,100); + // 1% super rare chance + if (.@al < 1) { + .@n=rand(getarraysize(.@s)); + getitem .@s[.@n], 1; + // 26% rare chance + } else if (rand(0,100) < 27) { .@n=rand(getarraysize(.@r)); getitem .@r[.@n], 1; } else { -- cgit v1.2.3-60-g2f50