Alguem ae se solicita a ajudar!, Eu n conssigo centralizar o poder!
ja mexi no x+1, y+1 e no Z, alguem ae ajuda pfv!
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_RED)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 321)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -500.0, 0, -550.0, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
function onCastSpell(cid, var)
local waittime = 1 -- Tempo de exhaustion
local storage = 1203
if exhaustion.check(cid, storage) then
return false
end
exhaustion.set(cid, storage, waittime)
local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local parameters = { cid = cid, var = var, combat1 = combat1 }
addEvent(onCastSpell1, 0, parameters)
return true
end