• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

random items mod

mmheo

New Member
Joined
Sep 14, 2017
Messages
157
Reaction score
1
im use this mod [Mod] Random Item Stats (https://otland.net/threads/mod-random-item-stats.130295/)
any one can help me to change chance for getPlayerStorageValue(cid, 170297) ?? work with player storage
change this
Lua:
tiers['rare'] = {
color = 66, -- color of 'RARE' text
extra = {0, 0},
attrNames = true, -- show attribute names instead of rare
chance = {
[1] = 10000,
[2] = 5000 -- chance for 2nd stat
}
}

to be like this

Code:
tiers['rare'] = {
color = 66, -- color of 'RARE' text
extra = {0, 0},
attrNames = true, -- show attribute names instead of rare
chance = {
[1] = getPlayerStorageValue(cid, 170297),
[2] = getPlayerStorageValue(cid, 170297)-- chance for 2nd stat
}
}

anyone can help me to do it ?
use 0.4
 
Back
Top