NO

Ajuda Ai Galera

Por notle, 13 de set. de 2011 em Archived

1
496
notleN
13 de setembro de 2011 às 05:22

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 :D

Editado Setembro 13 por otal2012