SixNine
Active Member
- Joined
- Dec 12, 2018
- Messages
- 452
- Reaction score
- 41
Hello otland,
im new here and my first post starts with help request, thats kinda embarrassing, but i couldn't figure it out by myself. So anyway i made this simple area spell
Which is pretty simple. It takes dmg to those squares and it cast spell effect from number 2
1,1,1
1,1,1
1,2,1
1,1,1
1,1,1
My goal is to call this effect multiple times what i mean is to add effect three time for example now its like this
1,1,1
1,1,1
1,2,1 (Effect is here)
1,1,1
1,1,1
I need same effect at the same time right there
1,1,1
1,1,1(Effect is here)
1,2,1(Effect is here)
1,1,1(Effect is here)
1,1,1
im new here and my first post starts with help request, thats kinda embarrassing, but i couldn't figure it out by myself. So anyway i made this simple area spell
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
local 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, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 2, 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},
}
combat:setArea(createCombatArea(area))
function onGetFormulaValues(player, level, maglevel)
local min = (level * 10) + (maglevel * 15.5) + 25
local max = (level * 10) + (maglevel * 25) + 50
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant)
sendCustomMagicEffect(creature:getPosition(), 47, 2, 0)
return combat:execute(creature, variant)
end
1,1,1
1,1,1
1,2,1
1,1,1
1,1,1
My goal is to call this effect multiple times what i mean is to add effect three time for example now its like this
1,1,1
1,1,1
1,2,1 (Effect is here)
1,1,1
1,1,1
I need same effect at the same time right there
1,1,1
1,1,1(Effect is here)
1,2,1(Effect is here)
1,1,1(Effect is here)
1,1,1