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

can someone post the function getTileItemById

Status
Not open for further replies.

Ralfegor

New Member
Joined
Apr 6, 2008
Messages
297
Reaction score
1
i need the function getTileItemById to add it in data/lib/function.lua
 
Lua:
-- Function by Colandus
function getTileItemById(pos, itemid)
    pos.stackpos = 0
    local thing = getTileThingByPos(pos)
    while thing.uid > 0 and thing.itemid ~= itemid do
        pos.stackpos = pos.stackpos + 1
        thing = getTileThingByPos(pos)
    end

    return thing
end
 
Status
Not open for further replies.
Back
Top