Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
I understand, but in my case I would like it to work only for items that are on the floor(on work with the items are in backpack for example), also two more questions, how can i declare the 2 specific target id on script? and i need this working in all tiles of map, so i need this script work...
Is there any way to send x msg to the player only if he moves any item 6 square meters away to the central Tile?
I have never seen any function related to tile counting ^^ exist?
How to do a check in onDeath script
Check If the tile is pvp zone and the player condition is fire, when the player die, is teleported to a position 1020,1023,8
Hello Otlands, im looking for any way to do a script to count the online houres of each player during a month, and give a xxxx storage for top online, and reset this count every 30 days? Im looking a system like this.
i got this console msg when i use the lamp
Lua Script Error: [Action Interface]
data/actions/scripts/others/lamp_states.lua:onUse
data/actions/scripts/others/lamp_states.lua:3: attempt to call method 'isHouse' (a nil value)
stack traceback:
[C]: in function 'isHouse'...
now is working good, thanks so much !
just a question, I was thinking here... the action script maybe, is possible check if is house tile to work this system? summarizing only used lamps inside the houses.
now this, working...
Loading lamp states
Previous data stored, size: 0
Lamp is already in default state, skipping.
Restoring previous state of lamp at Position(32410, 32223, 7) to id 5907
This appear on console when i use more than 1 lamp for example.
Loading lamp states
Lua Script Error...
I add now
function loadLampStates()
local file = io.open('lamp_states.lua')
print('Loading lamp states')
if file then
wallLamps = unserialize(file:read('*a'))
print('Previous data stored, size: '.. #wallLamps)
for serializedPos, state in pairs(wallLamps) do...
no prints on console too,
all script lib here
wallLamps = {}
lampTransformIds, reverseLampTransformIds = { -- used for direct access to flip ids
[5907] = 5908
}, {}
for k, v in pairs(lampTransformIds) do
reverseLampTransformIds[v] = k
end
function table.size(t)
local size = 0...