Ir para conteúdo

Featured Replies

Postado
local config = {
jumps5 = 10,
walktime = 10
}

combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_HITCOLOR, COLOR_PINK)
setCombatParam(combat5, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 22)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -40.0, 0, -65.0, 0)

function onCastSpell(cid)
if exhaustion.check(cid, 4132213952) == TRUE then
    doPlayerSendCancel(cid, "Podera usar novamente dentro de 5 segundos.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
function move5343(cid, pos, n)
local n = n or 0

if (n < config.jumps5) then
if (isCreature(cid)) then
local pos = pos or getCreaturePosition(cid)
local target = getCreatureTarget(cid)

local dir = (target ~= 0) and getDirectionTo(pos, getCreaturePosition(target)) or getCreatureLookDirection(cid)
local tpos = (target ~= 0) and getCreaturePosition(target)

local newPos

if ((target ~= 0) and ((pos.x-0 == tpos.x) and (pos.y == tpos.y))) then
newPos = tpos
else
newPos = getPosByDir(pos, dir)
end

if ((getTopCreature(newPos).uid == 1) and doTileQueryAdd(cid, newPos) ~= 0) then return false end

doCombat(cid, combat5, {
pos = newPos,
type = 2
})

addEvent(move5343, config.walktime, cid, newPos, n + 1)
end
end
end

move5343(cid)
exhaustion.set(cid, 4132213952, 3.0)
return true
end

Olá! alguém poderia "consertar" essa spell? os "erros" são que quando se da target em algum alvo ela segue ele, queria que ela fosse apenas em linha reta. Outro é que quando o player gira de sentido (está andando sentindo para baixo \/ e vira esquerda < a habilidade acompanha). A proposta é que ela vá em linha reta "x" vezes e ao tocar em player  com 10% da vida o execute. Att!.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo