• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Boarders and CONST_PROP_MOVEABLE

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
500
Solutions
4
Reaction score
101
Location
player:getTown()
Why boarders have moveable property? o_O

Code:
for i = 1, 10 do
      local tempItem = tile:getThing(i)
      if tempItem == nil then
            break
      elseif tile:hasProperty(CONST_PROP_MOVEABLE, tempItem) then
            print(i..' '..tempItem:getId())
      end
end

Example output:
Code:
1 4551
2 8309
3 5901

1. - Boarder
2. - Nails
3. - Wood

How I can skipp boarders (using another propherty?)

#EDIT

Solved
tempItem:getType():isMovable()
 
Last edited:
Top