dilcew23 1 Postado Janeiro 6, 2012 Share Postado Janeiro 6, 2012 A de Gelo é assim: local area = createCombatArea(AREA_SQUARE1X1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) doSendDistanceShoot(getCreaturePosition(cid),{x = getCreaturePosition(cid).x - math.random(4,6), y = getCreaturePosition(cid).y - 5, z = getCreaturePosition(cid).z},CONST_ME_ICEATTACK) for x = 1, 10 do addEvent(furyAttackTarget,200*x+500,cid,target,{x = getCreaturePosition(target).x + math.random(-1,1), y = getCreaturePosition(target).y + math.random(-1,1), z = getCreaturePosition(target).z}) end return true end function furyAttackTarget(cid,target,pos) if isCreature(cid) == TRUE and isCreature(target) == TRUE then doSendDistanceShoot({x = getCreaturePosition(target).x - math.random(4,6), y = getCreaturePosition(target).y - 5, z = getCreaturePosition(target).z},pos,34) doAreaCombatHealth(cid,COMBAT_ICEDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/1)+150,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/1)-150,CONST_ME_ICEATTACK) end return true end Ajudei? (: +Rep Naum custa! Link para o comentário https://xtibia.com/forum/topic/117297-globalevent-80-sky-fury/page/2/#findComment-1169971 Compartilhar em outros sites More sharing options...
Posts Recomendados