• 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!

Windows Cant use ladder when monster corpse

Nekiro

Legendary OT User
TFS Developer
Joined
Sep 7, 2015
Messages
2,684
Solutions
127
Reaction score
2,130
Hello, i have weird issue. I cant use ladder when monster has died on ladder. Its happening only with fresh corpses maybe blood tile issue ?

Does someone know something about this ?
 
It happens when blood or other "splash" item is on tile with ladder or hole... How to fix that?
 
look at this.
Code:
<action itemid="2120" script="tools/rope.lua"/>

id 2120 is a simple rope.

tools/rope.lua
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local tile = Tile(toPosition)
    if isInArray(ropeSpots, tile:getGround():getId()) or tile:getItemById(14435) then
        player:teleportTo(toPosition:moveUpstairs(), false)
        return true
    elseif isInArray(holeId, target.itemid) then
        toPosition.z = toPosition.z + 1
        tile = Tile(toPosition)
        if tile then
            local thing = tile:getTopVisibleThing()
            if thing:isItem() and thing:getType():isMovable() then
                return thing:moveTo(toPosition:moveUpstairs())
            end
        end
        player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
        return true
    end
    return false
end

tfs 1.1 --
 
It worked with me very well.
K4OsrMB.png
 
Nice, but rope script is working for me even when its normal. Ladder isnt working and shovel when i dig.
 
Edit: It seems like its not working with fresh corpse, because fresh corpse has stackpos = 1 so ladder is under corpse... so i cant use it.

Someone know how to fix that?
 
Back
Top