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

Solved Browse field bug tfs 1.3

Doomdice

The N00betarian
Joined
Jul 20, 2009
Messages
659
Reaction score
108
Location
Indiana
I have an issue when I have a item with something sparkling over it you can browse field and take the item or move it I have tried using printers browse field script and enable it in event script also. I have tried making the return true to false. I'm trying to fix it where you can disable the browse field and not able to use it.
 
Solution
Lua:
function Player:onBrowseField(position)
    local tile = Tile(position)
    if tile:getItemById(8046) or tile:getItemById(8047) then
        return false
    end
    return true
end
XML:
<event class="Player" method="onBrowseField" enabled="1" />
Lua:
function Player:onBrowseField(position)
    local tile = Tile(position)
    if tile:getItemById(8046) or tile:getItemById(8047) then
        return false
    end
    return true
end
XML:
<event class="Player" method="onBrowseField" enabled="1" />
 
Solution
Back
Top