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

OTX loot multiplier

helmut7414

New Member
Joined
Mar 3, 2012
Messages
19
Solutions
1
Reaction score
4
Hello,

I am useing OTX Server 2 Series with [TFS 1.3] Monster Levels and I am looking for someone who could help me adding a LootMultiplier into my source which scales with monster levels.
An Experience multiplier I have already added for the levels and I despair at the lootMultiplier.


I have tryed to add it on this code
C++:
uint16_t Monsters::getLootRandom()
{
    return (uint16_t)std::ceil((double)random_range(0, MAX_LOOTCHANCE) / g_config.getDouble(ConfigManager::RATE_LOOT));
}
but everytime I add something and kill a monster with loot the server is crashing.
I hope someone could help me to find out how it is going to work.
 
Last edited:
Back
Top