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

Loot from bosses with chance tfs 0.3.6

adamox223

New Member
Joined
Oct 21, 2017
Messages
99
Reaction score
4
Hi, i need find script for loot from bosses with chance for each item and count, and it need be lua, i cant find it on internet, so maybe you can help me?

I fint this, need add more items, and chance for each item.. can anybody add this? because if i add this, then errors ;/

Code:
function onKill(cid, target)
local Name = "Monster"

     if (getCreatureName(target) == Name) then
        local rand = math.random(1, 100) 
            if rand > 50 then
                doPlayerAddItem(cid, 1687, 1)
                                       
            else
        return TRUE
    end
end
  return TRUE 
end
 
Last edited:
Back
Top