• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua SD not reaching invisible creatures OTX2

necroids

New Member
Joined
Jul 6, 2010
Messages
18
Reaction score
0
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
 
you are using an old repository all the bugs that you're are menthioning were solved mate, in repo 772 /8.6

from the repository the 2 errors of invisible are the ones that I couldn't correct...


in the rest I managed to leave the most similar to the last version


 
from the repository the 2 errors of invisible are the ones that I couldn't correct...


in the rest I managed to leave the most similar to the last version


don't know why but mattyx removed repository otx2 2.9 where the fixes were
 
Back
Top