summaryrefslogtreecommitdiff
path: root/db/re/item_db.conf
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-24 18:22:55 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-24 18:22:55 -0200
commitca7a22f4ae63d68011d2ae1b4c01e880b6de17e4 (patch)
treebbe1afb44a90b658c2c488a559a8073ed2b4d135 /db/re/item_db.conf
parentbb6fdda965182e34896a264a861166dcf63a371e (diff)
downloadserverdata-ca7a22f4ae63d68011d2ae1b4c01e880b6de17e4.tar.gz
serverdata-ca7a22f4ae63d68011d2ae1b4c01e880b6de17e4.tar.bz2
serverdata-ca7a22f4ae63d68011d2ae1b4c01e880b6de17e4.tar.xz
serverdata-ca7a22f4ae63d68011d2ae1b4c01e880b6de17e4.zip
Add 1% chance to get a Super Rare Item on Christmas Box.
The selection of super rares exclude most trash, and include Ice Gladius
Diffstat (limited to 'db/re/item_db.conf')
-rw-r--r--db/re/item_db.conf10
1 files 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 {