darkjav
Senior Developer
Hello,
The drowning condition not dissapear later of step in or step out, on few floors ,under water.
This only dissapear when player logout, but if the player have pk, so this become infinite:
https://imgur.com/a/6esQo
I use the same file that repository on Github of TFS 1.2
So i have this file identical:
https://www.diffchecker.com/Gfns8UHo
I think that problem is also in movements.xml, on this lines:
http://pastebin.com/wRsnPJb4
Please anybody can check it? I try to fix adding more type items of floor, but not possible.
Thanks!
The drowning condition not dissapear later of step in or step out, on few floors ,under water.
This only dissapear when player logout, but if the player have pk, so this become infinite:
https://imgur.com/a/6esQo
I use the same file that repository on Github of TFS 1.2
Code:
local condition = Condition(CONDITION_DROWN)
condition:setParameter(CONDITION_PARAM_PERIODICDAMAGE, -20)
condition:setParameter(CONDITION_PARAM_TICKS, -1)
condition:setParameter(CONDITION_PARAM_TICKINTERVAL, 2000)
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if player == nil then
return true
end
if math.random(1, 10) == 1 then
position:sendMagicEffect(CONST_ME_BUBBLES)
end
player:addCondition(condition)
return true
end
function onStepOut(creature, item, position, fromPosition)
local player = creature:getPlayer()
if player == nil then
return true
end
player:removeCondition(CONDITION_DROWN)
return true
end
So i have this file identical:
https://www.diffchecker.com/Gfns8UHo
I think that problem is also in movements.xml, on this lines:
http://pastebin.com/wRsnPJb4
Please anybody can check it? I try to fix adding more type items of floor, but not possible.
Thanks!