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 ;/
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: