• 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!

Lua Loot smaller than x1

T

tejdi

Guest
Hello!
Is it possible to make loot x0.5?
How to achieve that?

Lua:
-- Rates
-- NOTE: rateExp is not used if you have enabled stages above
rateExp = 1
rateSkill = 1
rateLoot = 1
rateMagic = 1
rateSpawn = 1

Setting rateLoot = .5 or = 0.5 doesn't work (there is no loot at all then)
 
Hello!
Is it possible to make loot x0.5?
How to achieve that?

Lua:
-- Rates
-- NOTE: rateExp is not used if you have enabled stages above
rateExp = 1
rateSkill = 1
rateLoot = 1
rateMagic = 1
rateSpawn = 1

Setting rateLoot = .5 or = 0.5 doesn't work (there is no loot at all then)


Your current config values are declared as integers here, and you will have to declare the ones you want to use after decimal point as floats.
You can follow an example given in this gist
 
Last edited:
Back
Top