Jump to content
  • 0

Pet System que sumona apenas 1 pet!


TaurosBR

Question

Ae pessoal! eu queria arruma meu pet system aki!

ele pode sumonar quantos pet quiser! eu queria q só podesse sumonar 1 pet ate o antigo morrer!

function onUse(cid, item, frompos, item2, topos)
local MyCreature = doSummonCreature("super mac",topos)
doConvinceCreature(cid, MyCreature)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
return 1
end

Ajuda ae!!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
function onUse(cid, item, frompos, item2, topos)

if #getCreatureSummons(cid) > 0 then
doPlayerSendCalcel(cid, "Você já sumono um monstro.")
return true
end

local MyCreature = doSummonCreature("super mac",topos)
doConvinceCreature(cid, MyCreature)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
return 1
end

Edited by caotic
Link to comment
Share on other sites

×
×
  • Create New...