ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
- Joined
- Dec 17, 2011
- Messages
- 1,713
- Solutions
- 31
- Reaction score
- 965
- Location
- Santiago - Chile
- GitHub
- ralke23
- Twitch
- ralke23
Hello, i've been searching for a spell that removes utamo vita, a "dispell".
At the moment i searched and found this Barrier with on/off + if 0 mana = dispell but is not working. I leave the last result of this post:
Can someone make this work?
Grettings!!
using OTX 2.1 based on tfs 0_3
At the moment i searched and found this Barrier with on/off + if 0 mana = dispell but is not working. I leave the last result of this post:
Code:
local shield = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(shield, CONDITION_PARAM_TICKS, -1)
function onCastspell(cid, var)
if hasCondition(cid, CONDITION_MANASHIELD) then
doRemoveCondition(cid, CONDITION_MANASHIELD)
else
doAddCondition(cid, shield)
end
return true
end
Can someone make this work?
Grettings!!
using OTX 2.1 based on tfs 0_3
Last edited: