• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

houseitems unmoveable outside of house 2024-08-22

No permission to download

skeetzoo

Banned User
Joined
Aug 22, 2024
Messages
90
Reaction score
29
Location
theforgottenserver
skeetzoo submitted a new resource:

houseitems unmoveable outside of house - house revscript

have you ever wanted an item to never leave players house?
now its possible!
LUA:
local echangables = EventCallback

-- Define item IDs in a table
local itemIds = {
    hangableLightId = 8580,
    anotherItemId = 8581, -- Add more item IDs as needed
    yetAnotherItemId = 8582,
}

local dustbinId = 1777

-- Function to check if the position is within a house
local function isHouseTile(pos)
    local tile = Tile(pos)
    return tile and tile:getHouse() ~= nil
end

-- Function to check if...

Read more about this resource...
 
Back
Top