its a manarune with effects, not a spell
this is my manarune script, want it to make effect like this:
this is all i could do so long, maybe someone can help me with the script?
Solved
this is my manarune script, want it to make effect like this:

this is all i could do so long, maybe someone can help me with the script?
HTML:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
setCombatParam(combat, COMBAT_PARAM_DIFFERENTAREADAMAGE, 29)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 500.3, -500, 500.3, 500)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 5) * 500.20 - 500
max = (level * 1 + maglevel * 5) * 500.50
if min < 2500 then
min = 2500
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
local pos = getPlayerPosition(cid)
local effectPositions = {
{x = pos.x - 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y + 1, z = pos.z},
{x = pos.x - 1, y = pos.y + 1, z = pos.z},
{x = pos.x, y = pos.y - 3, z = pos.z},
{x = pos.x, y = pos.y + 3, z = pos.z},
{x = pos.x - 3, y = pos.y, z = pos.z},
{x = pos.x + 3, y = pos.y, z = pos.z},
{x = pos.x - 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y + 2, z = pos.z},
{x = pos.x - 2, y = pos.y + 2, z = pos.z}
}
if doCreatureSay(cid, "Donation UH", TALKTYPE_ORANGE_1) then
end
for _, ePos in ipairs(effectPositions) do
doSendDistanceShoot(pos, ePos, 40)
doSendMagicEffect(ePos, 29)
return doCombat(cid, combat, var)
end
end
Solved
Last edited: