Ir para conteúdo

Posts Recomendados

Teria como me ajudarem em algumas coisas ?

 

1° - Efeito não aparece para o quem usa, apenas pros outros jogadores: Segue o script abaixo -

 

 

 

function onUse(cid, item, frompos, item2, topos)
if getTilePzInfo(topos) == 0 then
if item2.itemid == 414 then
doPlayerAddHealth(cid,-9999999)
doPlayerAddHealth(cid, getPlayerStorageValue(cid, 8990) > -1 and getPlayerStorageValue(cid, 8990) or 0)
doTransformItem(item.uid,2004)
setPlayerStorageValue(cid,8999,os.time()+120)
doSendAnimatedText(getPlayerPosition(cid), "Kawarimi!", 102)
doSendMagicEffect(topos,110)
doTeleportThing(cid,topos)
elseif item2.itemid == 413 then
doPlayerAddHealth(cid,-9999999)
doPlayerAddHealth(cid, getPlayerStorageValue(cid, 8990) > -1 and getPlayerStorageValue(cid, 8990) or 0)
doTransformItem(item.uid,2004)
setPlayerStorageValue(cid,8999,os.time()+120)
doSendAnimatedText(getPlayerPosition(cid), "Kawarimi!", 102)
doSendMagicEffect(topos,110)
doTeleportThing(cid,topos)
else
doPlayerSendCancel(cid,"Kawarimi Falhou!")
end
return 0
end
end

 

 

 

2° - Magia que de dano no usuario da mesma. ( Script da Magia Abaixo )

 

 

 

area = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
attackType = 3
needDirection = false
areaEffect = 11
animationEffect = NM_ANI_ENERGY
hitEffect = 11
damageEffect = 99
animationColor = LIGHT_BLUE
offensive = true
drawblood = true
GreatEnergyBeamObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
GreatEnergyBeamObject.minDmg = (level + maglv *1) * 8.0
GreatEnergyBeamObject.maxDmg = (level + maglv *1) * 8.3
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, GreatEnergyBeamObject:ordered())
end

 

 

 

3° - Adicionar bleed ( dano por sec ) no usuario após usar tal item - O bleed poderia ficar x segundos ou acontecer y vezes.

( Sem script ainda, só preciso da função )

 

4° - Criar um dano em area ao clicar no item - Queria um script que criasse uma area x com dano instantaneo y e efeito z

 

Desculpem postar essas duvidas, se eu não tivesse tentado varias vezes não teria postado.. estou aprendendo ainda e obrigado aos que ajudarem.

Editado por Goren
Link para o comentário
https://xtibia.com/forum/topic/232762-algumas-duvidas/
Compartilhar em outros sites

×
×
  • Criar Novo...