Mariuskens
Sword Art Online 2D-MMORPG
Hello i have problem with this script
https://github.com/otland/forgottenserver/pull/1641/files
Problem one: When players kill the boss all drop the same loot like (1 boh, 2 gold gems, 10k plats and other items), and gold gems have uniquedrop="1".
Prblem two: when i edit here moster give 0 loot :nothing
Who know how i can edit it to works fine like real, unique item for best shotter and others items random loot because now if 10 players kill the ferumbras all drops the feru hat xD
thnx
https://github.com/otland/forgottenserver/pull/1641/files
Problem one: When players kill the boss all drop the same loot like (1 boh, 2 gold gems, 10k plats and other items), and gold gems have uniquedrop="1".
Prblem two: when i edit here moster give 0 loot :nothing
Code:
local score = (playerDamageOut / totalDamageOut) + (playerDamageIn / totalDamageIn) + (player.Healing / totalHealing)
score = score / 1 -- normalize to 0-1
local expectedScore = 1 / participants
local lootFactor = 1
lootFactor = lootFactor / participants ^ (1 / 3) -- tone down the loot a notch if there are many participants
lootFactor = lootFactor * (1 + lootFactor) ^ (score / expectedScore) -- increase the loot multiplicatively by how many times the player surpassed the expected score
Who know how i can edit it to works fine like real, unique item for best shotter and others items random loot because now if 10 players kill the ferumbras all drops the feru hat xD
thnx