• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[TFS 1.4.2] World exp, skill and loot boost

The problem is that after uploading this script, there is no loot from all monsters. The skill is very slow Experience 1x, as if he doesn't see what's in Config lua
Everything seems to be fine, But after starting the server such strange things happen, without activating boost
 
Good morning, could the script be modified so that the boost is activated separately and by item id, that is, click on the item and modalwindows opens and has the 3 options inside and lets you choose one and in tfs 1.4.2 in the part of
function Container.createLootItem(self, item, creatureName),
local chance = item.chance

it is no longer that way it is

Code:
function Container.createLootItem(self, item)
if self:getEmptySlots() == 0 then
return true
end

local itemCount = 0
local randvalue = getLootRandom()
local itemType = ItemType(item.itemId)

if randvalue < item.chance then
if itemType:isStackable() then
itemCount = randvalue % item.maxCount + 1
else
itemCount = 1
end
end

it would be placed below that and it would still work or should I change something?
 
Back
Top