Spell De Gelo

aldroyd
em Lixeira Pública

aldroyd

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/11/09Posts: 13Char no Tibia: Kravoth

Esse script ta la na area, by Belianmort

 

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_ANI_FLAMMINGARROW)

 

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

 

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,CONST_ANI_FIRE)

 

doAreaCombatHealth(cid,COMBAT_FIREDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HITBYFIRE)

 

end

 

end

 

Alguem faz uma igual só que de gelo?

 

Por favor, tentei e nao consegui..

 

Pra 8.5 :blush:

\Mattheus ~*

Ex Moderador
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 11/02/09Posts: 559Char no Tibia: Deep Druid

Testa ela 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_ANI_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

 

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,CONST_ANI_ICE)

 

doAreaCombatHealth(cid,COMBAT_FIREDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_ICEDAMAGE)

 

end

 

end

 

Se não conseguir me avisa.

 

Abraços.

[/ Construçãao .

aldroyd

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/11/09Posts: 13Char no Tibia: Kravoth

Fmz vo testa e ja edito aki!

 

-- Edit

 

Nao funfo nao vey.. Continua de fogo. Mas no lugar de fire arrow sobe um spear normal. Mesmo erro q tava dando qndo eu tentei arrumar... =/

Lordfire

TFS Maintainer
avatar
Lenda
Lenda

INFOS

Grupo: LendaRegistrado: 04/10/06Posts: 2605Gênero: MasculinoChar no Tibia: Knight Orion

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_ANI_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

 

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,CONST_ANI_ICE)

 

doAreaCombatHealth(cid,COMBAT_ICEDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_ICEDAMAGE)

 

end

 

end

aldroyd

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/11/09Posts: 13Char no Tibia: Kravoth

Continua nao funcionando :/