Hello guys, I would like a help to create a spell where the player say the words and then place a trap (like feroxa silver trap) on the ground that last for 30 seconds. If no enemy step in the trap in 30 seconds, it will disappear. If a enemy step on the trap, it will take a hit based on this formula:
To set the trap, it will be just like a MW, the player will choose where to put the trap.
Thanks in advance for the help.
Lua:
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")
Thanks in advance for the help.