if #summon >= 1 then
for _, pid in ipairs(summon) do
doRemoveCreature(pid)
doCreatureSay(cid, "! ["..go.pet.."]", TALKTYPE_ORANGE_1)
end
return true
end
doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid)))
doCreatureSay(cid, "Pufff! ["..go.pet.."]", TALKTYPE_ORANGE_1)
return true
end
Pergunta
Emooooo 0
function onUse(cid, item, frompos, item2, topos)
local dolls = {
[11339] = {pet = "holy"},
}
local go = dolls[item.itemid]
local summon = getCreatureSummons(cid)
---------------------------------------------------
if #summon >= 1 then
for _, pid in ipairs(summon) do
doRemoveCreature(pid)
doCreatureSay(cid, "! ["..go.pet.."]", TALKTYPE_ORANGE_1)
end
return true
end
doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid)))
doCreatureSay(cid, "Pufff! ["..go.pet.."]", TALKTYPE_ORANGE_1)
return true
end
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados