WarOfTheTitans
Active Member
- Joined
- Feb 3, 2012
- Messages
- 430
- Reaction score
- 37
My script is checking a position on the map if it is walkable. Sometimes it I remove the tile (there is no tile, a entire black tile) and then I get this error when the script checks the position again:
Here is the function (from scarlet(omnislash))
Code:
[26/05/2012 22:40:16] [Error - TalkAction Interface]
[26/05/2012 22:40:16] data/talkactions/scripts/Dada.lua:onSay
[26/05/2012 22:40:16] Description:
[26/05/2012 22:40:16] (luaDoTileQueryAdd) Tile not found
Here is the function (from scarlet(omnislash))
LUA:
function isWalkable(cid,pos)
local aux = pos
aux.stackpos = 253
if doTileQueryAdd(cid, pos) == 1 and getTilePzInfo(pos) == FALSE and getTileHouseInfo(pos) == FALSE and isCreature(getThingFromPos(aux).uid) == FALSE then
return TRUE
end
return FALSE
end