GA
pedido

SPELL

Por Garrosh, 02 de jun. de 2013 em Scripts

otserv
tibia
5
926
GarroshG
02 de junho de 2013 às 17:38

eu queria uma spell q quando o player usa-se ele morre-se tipo um selfdestruction happy.png

alguem sabe fazer?

SkymagnumS
02 de junho de 2013 às 17:41
local arr = {
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1}
}

local area = createCombatArea(arr)

function onCastSpell(cid, var)

local MIN, MAX = 1000, 1500
local EFF = 39

doAreaCombatHealth(cid, COMBAT_HOLYDAMAGE, getThingPos(cid), area, -MIN, -MAX, EFF)
doCreatureAddHealth(cid, - getCreatureHealth(cid))

return true
end

Editado Junho 2 por Skymagnum

GarroshG
02 de junho de 2013 às 18:44

como eu coloco essa position para magia q ta torta?

 

local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z}

doSendMagicEffect(position, effect)

end

end

end

end

 

 

é pq estou usando o efeito /z 67

Editado Junho 2 por Garrosh

EnselfE
03 de junho de 2013 às 19:51

como eu coloco essa position para magia q ta torta?

 

local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z}

doSendMagicEffect(position, effect)

end

end

end

end

 

 

é pq estou usando o efeito /z 67

 

 

 

Tenta assim.

 

 

local position = {x=getPlayerPosition(cid).x+0, y=getPlayerPosition(cid).y+0, z=getPlayerPosition(cid).z}

doSendMagicEffect(position, effect)

 

 

Editado Junho 3 por Enself

vital900V
04 de junho de 2013 às 19:40

sanado?