Script bem desorganizado, vamos dar uma arrumada e implementar o que você quer,
local c = {
maxSummons = 1,
removeOnUse = "yes"
}
local summon = {
[{100, 200}] = "Dragon",
[{201, 300}] = "Hydra"
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
for m, n in pairs(summon) do
if(getPlayerLevel(cid) >= m[1] and getPlayerLevel(cid) <= m[2]) then
if(table.maxn(getCreatureSummons(cid)) < c.maxSummons) then
local monster = doCreateMonster(getThingPosition(cid), n)
doConvinceCreature(cid, monster)
if(c.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You use your Elisios Card and it disappear")
end
else
doPlayerSendCancel(cid, "You can\'t summon more monsters")
end
else
doPlayerSendCancel(cid, "You don\'t have a monster to summon")
end
return true
end
Abraços,







info
Grupo: Campones
Registrado: 09/08/10
Posts: 3
Reputação: 0
Char no Tibia: Sakura Minamoto
Galeera Olha o meu script
Tipow eu queria assim tal level summona tal bixo
exemplo
level 100 até 200 dragon,do 200 até 300 hydra
se alguem poder me ajudar eu agradeço :gcool: