Hello guys, I would like summon bomb spell
I found some scripts here in the forum, but they don't work like I want.
What I would like is:
-Player summon a monster (lets use skeleton as example), summon will last for 30 seconds if it doesn't die.
-If summon die or last for 30 seconds, it will explode in a exori area, causing damage according to the formula below.
I found some scripts here in the forum, but they don't work like I want.
What I would like is:
-Player summon a monster (lets use skeleton as example), summon will last for 30 seconds if it doesn't die.
-If summon die or last for 30 seconds, it will explode in a exori area, causing damage according to the formula below.
Code:
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 1.4) + 8
local max = (level / 5) + (magicLevel * 2.2) + 14
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")