E ai people I am needing a system pra to take off damage in aquaticas areas sub, when it is not used the Helmet of the Deep, for evolutions 0.78.
however of this error:
In this in case that I am using for action, but it will be had for movmentes does not have problem ^^
local drowning = createConditionObject(CONDITION_WATER)
addDamageCondition(drowning, 500, 4000, -20)
function onEquip(cid, item, slot)
if getPlayerUnderwater(cid) ~= 0 then
doTargetCombatDispel(0, cid, CONDITION_WATER, CONST_ME_NONE)
end
end
function onDeEquip(cid, item, slot)
if getPlayerUnderwater(cid) ~= 0 then
doTargetCombatCondition(0, cid, drowning, CONST_ME_NONE)
end
end
however of this error:
In this in case that I am using for action, but it will be had for movmentes does not have problem ^^