21 minutos atrás, Alphapetboy disse:Como eu faço para os ataques ficarem no centro do pokémon atacado e não do lado dele?
Quando eu uso um efeito muito grande como ataque direto, ele não se encaixa no pokémon. tentei mudar usando algum ataque mas nada deu certo.
Spells de ataques que tentei mudar:
elseif spell == "Ember" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), (isMega(cid) and getMegaID(cid) == "X") and 57 or 3)
doDanoInTargetWithDelay(cid, target, FIREDAMAGE, min, max, (isMega(cid) and getMegaID(cid) == "X") and 291 or 291) --alterado v1.7
doBurnPoke(cid, target)
_________________________________________________________________________________________________________________________________
elseif spell == "Dragon Claw" then
doDanoWithProtect(cid, DRAGONDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 365)
_________________________________________________________________________________________________________________________________
elseif spell == "Moonblast" then
local p = getThingPosWithDebug(cid)
p.x = p.x+1
p.y = p.y+1
sendEffWithProtect(cid, p, 388)
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 60)
doDanoInTargetWithDelay(cid, target, FAIRYAMAGE, min, max, 288)
creio q seja nesta parte p.x = p.x+1
p.y = p.y+1 , tente mudar esses valores +1 para +2 etc










info
Grupo: Campones
Registrado: 16/10/15
Posts: 81
Reputação: +11
Gênero: Masculino
Char no Tibia: Cortez
Como eu faço para os ataques ficarem no centro do pokémon atacado e não do lado dele?
Quando eu uso um efeito muito grande como ataque direto, ele não se encaixa no pokémon. tentei mudar usando algum ataque mas nada deu certo.
Spells de ataques que tentei mudar:
elseif spell == "Ember" then
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), (isMega(cid) and getMegaID(cid) == "X") and 57 or 3)
doDanoInTargetWithDelay(cid, target, FIREDAMAGE, min, max, (isMega(cid) and getMegaID(cid) == "X") and 291 or 291) --alterado v1.7
doBurnPoke(cid, target)
_________________________________________________________________________________________________________________________________
elseif spell == "Dragon Claw" then
doDanoWithProtect(cid, DRAGONDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 365)
_________________________________________________________________________________________________________________________________
elseif spell == "Moonblast" then
local p = getThingPosWithDebug(cid)
p.x = p.x+1
p.y = p.y+1
sendEffWithProtect(cid, p, 388)
doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 60)
doDanoInTargetWithDelay(cid, target, FAIRYAMAGE, min, max, 288)
GIF https://gyazo.com/96551a6faf4ba1f273a775e8b789e5f6