helmut7414
New Member
- Joined
- Mar 3, 2012
- Messages
- 14
- Solutions
- 1
- Reaction score
- 3
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
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.
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));
}
I hope someone could help me to find out how it is going to work.
Last edited: