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

Update 2 line to TFS 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Could someone help me update 2 lines to TFS 1.2? I'm trying, but always have a problem..

Code:
local tile = getTileThingByPos(p)
       if tile.uid ~= 0 and getItemInfo(tile.itemid).group == 1 and getTileInfo(p).protection and getTileItemById(p, 1387).uid == 0 and hasItemProperty(tile.uid, CONST_PROP_BLOCKSOLID) == false then

btw, how I use in TFS 1.2 to use effect X in the position 1000, 1000, 7?

Thanks.
 
Last edited:
Code:
doSendMagicEffect(pos, magicEffect, ...)
or
Code:
Position(pos):sendMagicEffect(magicEffect, ...)
 
I have no idea what 'getItemInfo(tile.itemid).group' is but besides that, how is this?
Code:
local tile = Tile(p)
if tile:hasFlag(TILESTATE_PROTECTIONZONE) and tile:getItemById(1387).uid == 0 and tile:hasFlag(CONST_PROP_BLOCKSOLID) == false then
 
Back
Top