kito2
www.masteria.net
Hello, can someone make an script for an amulet that when you click on it gives a random addon and then it dissapear...
Thanks!
Thanks!
random_addons = {
{Addons goes here},
{Addons goes here}
}
for i = 1, #random_items do
item = random_items[i]
Hello, can someone make an script for an amulet that when you click on it gives a random addon and then it dissapear...
Thanks!
function onUse(cid, item, fromPosition, toPosition)
local list = maleOutfits
if getPlayerSex(cid) == 0 then
list = femaleOutfits
end
doPlayerAddOutfit(cid, list[math.random(1, #list)], math.random(1, 2))
doRemoveItem(item.uid)
return TRUE
end