Hello, I'm using an OTX2 distro with data from REALOTS. When I try to target an invisible creature (warlock, stalker) with the target (no hotkey) it says 'You can only use this runes on creatures', if I modify the spells.xml setting the needTarget = 0, I can target everyplace like ground, walls, objects with the rune! How can I manage to edit the sudden-death.lua to get creaturepos?
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.25, -30, -1.7, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end