• 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 Use ladder with fluid underneath

CastorFlynn

Member
Joined
Aug 29, 2021
Messages
88
Reaction score
8
In this specific case where the ladder is created in the quest, if there is any fluid below where this occurs, it is not possible to use the ladder.

ladder issue.png

Lua:
local ladderPosition = Position(32854, 32321, 11)

function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if not player then
        return true
    end

    local ladderItem = Tile(ladderPosition):getItemById(5543)
    if not ladderItem then
        Game.createItem(5543, 1, ladderPosition)
        player:say('You hear a rumbling from far away.', TALKTYPE_MONSTER_SAY, false, player)
    end
    return true
end

function onStepOut(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if not player then
        return true
    end

    local ladderItem = Tile(ladderPosition):getItemById(5543)
    if ladderItem then
        ladderItem:remove()
        player:say('You hear a rumbling from far away.', TALKTYPE_MONSTER_SAY, false, player)
    end
    return true
end
 
I’d say it can be caused by:
  • wrong item config in dat/otb file (flag onTop)
  • server sends wrong stackPos to client
  • if it’s OTC it can be client issue

What distro? Which client?
I’d debug that first:

 
Last edited:
Back
Top