function onCastSpell(cid, var)
local playerpos = getPlayerPosition(cid)
local health = getCreatureHealth(cid)
local maxhealth = getCreatureMaxHealth(cid)
local MaximoSummon = 2
local summons = getCreatureSummons(cid)
if(table.maxn(summons) < MaximoSummon) then
local clone = doSummonCreature("Scyther", getCreaturePosition(cid))
doConvinceCreature(cid, clone)
setCreatureMaxHealth(clone, maxhealth)
doCreatureAddHealth(clone, health)
doCreatureSay(cid, 'Shredder Team', TALKTYPE_ORANGE_1)
local clone2 = doSummonCreature("Scyther", getCreaturePosition(cid))
doConvinceCreature(cid, clone2)
setCreatureMaxHealth(clone2, maxhealth)
doCreatureAddHealth(clone2, health)
return TRUE
end
end
tipo ta assim um scyther cria 2 scyther + não attacka nem se mexe só um attack os outros 2 não ajuda ae galera vlw
info
Grupo: Banidos
Registrado: 03/09/11
Posts: 186
Reputação: +59
function onCastSpell(cid, var) local playerpos = getPlayerPosition(cid) local health = getCreatureHealth(cid) local maxhealth = getCreatureMaxHealth(cid) local MaximoSummon = 2 local summons = getCreatureSummons(cid) if(table.maxn(summons) < MaximoSummon) then local clone = doSummonCreature("Scyther", getCreaturePosition(cid)) doConvinceCreature(cid, clone) setCreatureMaxHealth(clone, maxhealth) doCreatureAddHealth(clone, health) doCreatureSay(cid, 'Shredder Team', TALKTYPE_ORANGE_1) local clone2 = doSummonCreature("Scyther", getCreaturePosition(cid)) doConvinceCreature(cid, clone2) setCreatureMaxHealth(clone2, maxhealth) doCreatureAddHealth(clone2, health) return TRUE end endtipo ta assim um scyther cria 2 scyther + não attacka nem se mexe só um attack os outros 2 não ajuda ae galera vlw
Editado Setembro 13 por otal2012