notle 59 Postado Setembro 13, 2011 Share Postado Setembro 13, 2011 (editado) 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 Editado Setembro 13, 2011 por otal2012 Link para o comentário https://xtibia.com/forum/topic/167706-ajuda-ai-galera/ Compartilhar em outros sites More sharing options...
Posts Recomendados