suponho q soh de pra pegar 1 montaria entao.. tente isso..
local mounts = {
[12121] = {looktype = 4},
[21212] = {looktype = 5},
[76124] = {looktype = 6},
}
function onSay(cid,words)
local mounton = 87871
local haveMount = false
local mountLook = 0
for sto, look in pairs(mounts) do
if getPlayerStorageValue(cid, sto) >= 1 then
haveMount = true
mountLook = look
break
end
end
if haveMount then
if getPlayerStorageValue(cid, mounton) <= 0 then
doSetCreatureOutfit(cid, mountLook, -1)
setPlayerStorageValue(cid, mounton, 1)
elseif getPlayerStorageValue(cid, mounton) >= 1 then
doRemoveCondition(cid, OUTFIT_CONDITION)
setPlayerStorageValue(cid, mounton,-1)
end
else
doPlayerSendTextMessage(cid, 27, "You don't have a mount.")
end
return true
end
bugado ae neh