• 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 Double Loot Text

SanSero

Member
Joined
Jul 26, 2017
Messages
18
Reaction score
12
hello everyone :)
im facing a problem i added 2x item loot in onDropLoot tfs 1.4
i want to know which item/loot i got from the storage to use it on the loot text
Lua:
if player:getStorageValue(lionStorage) >= 1 then
    local itemOne = corpse:createLootItem(monsterLoot[i])
end
    local item = corpse:createLootItem(monsterLoot[i])
if not item then
    print('[Warning] DropLoot:', 'Could not add loot item to corpse.')
end
how should Text be?
Lua:
text = ("Loot of %s: %s and Double Loot: %s"):format(mType:getNameDescription(), corpse:getContentDescription(), lootDoubleContent)
i am trying to show normal loot and double loot drop separated not all loot together but this text show all loot 2 times in each %s
 
Back
Top