• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Question [Solved]

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Solutions
2
Reaction score
115
Example:
LUA:
if hasProperty(itemEx.uid, CONST_PROP_BLOCKSOLID) == FALSE then

What will not allow you to create something on another object.
Unless it is a ground tile?

Problem:
I use this, although I can still create stuff on boxes or chests...then it crashes my server.
 
What about the example I gave you before?
Worked perfect for me, couldn't create anything on anything else than ground tiles.

LUA:
  local teleportPosition = getThingFromPos({x=toPosition.x, y=toPosition.y, z=toPosition.z, stackpos=1})
if teleportPosition.itemid <= 0 then
        doCreateTeleport(1387, {x=1, y=1, z=7}, toPosition)
end
 
Why do you all use 'stackpos'?
Check new TFS 0.3 functions to get item with itemid from tile. You dont have to know stackpos to add/remove item from x/y/z tile. Maybe it's problem with your script.
 
Back
Top