Tormented
Member
- Joined
- Jan 13, 2024
- Messages
- 33
- Reaction score
- 13
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onGetFormulaValues(player, skill, attack, factor)
local min = 1
local max = 1
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
local function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
onCastSpell(player, numberToVariant(player:getId()))
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
how can i cast the spell onto toPosition with onUse?>