Stanos
Veteran OT User
TFS 1.2
Hello,
so i have this spell which is target spell and i have no clue how to achieve think like this. Lets say you cast this spell to target, and everyone around him get dmg to,
1, 1, 1
1, 2, 1
1, 1, 1
so its square shape so number 2 (target) get dmg, number ones get dmg to
i dont even know if its possible
Spell im trying to edit \/
target* lul.
Hello,
so i have this spell which is target spell and i have no clue how to achieve think like this. Lets say you cast this spell to target, and everyone around him get dmg to,
1, 1, 1
1, 2, 1
1, 1, 1
so its square shape so number 2 (target) get dmg, number ones get dmg to
i dont even know if its possible
Spell im trying to edit \/
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENCHANTEDSPEAR)
combat:setFormula(COMBAT_FORMULA_LEVELMAGIC, -6.0, 0, -6.1, 0)
function onCastSpell(creature, variant)
local player = Player(creature)
if not player then
return false
end
local target = player:getTarget()
if not target then
return false
end
local position = target:getPosition() + Position(2, 0, 0)
position:sendMagicEffect(131)
return combat:execute(creature, variant)
end
target* lul.
Last edited by a moderator: