So, i've been trying to make an mount box script, itemid 11402
scrip:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local mountid = math.random(43,103) -- you have to change 32 for your highest mount id
doPlayerAddMount(cid, mountid) --add the mount
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) --effect on player
doRemoveItem(item.uid, 1) -- remove the item
return TRUE
end
it do give the mounts i want, but it do eaven give owned mounts if rolled that id
scrip:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local mountid = math.random(43,103) -- you have to change 32 for your highest mount id
doPlayerAddMount(cid, mountid) --add the mount
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) --effect on player
doRemoveItem(item.uid, 1) -- remove the item
return TRUE
end
it do give the mounts i want, but it do eaven give owned mounts if rolled that id