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

Help-me with "Tile not Found"

Madlander

Madlander
Joined
Sep 16, 2009
Messages
318
Reaction score
16
Location
Mexico
Hello there.

i have 2 scripts in creature scripts, but both with the same error.

when a player looks in a non-tile area, the console get bugged with the same error

"tile not found"

i need a protection to block this error.


i try with:
"if getTile(cid)" <----nill value
"if getTileZone(cid)" <---- error in function.lua




Thanks For read it :thumbup:
 
in any 'getTile' function you do not use 'cid' but 'position'('pos')but if you want to get the tile where the player is standing then use this as an example, 'getTileInfo(getCreaturePosition(cid))'.
 
eg: my char is in a second floor, stand in a mountain's border (in front of my char there is the non-tile area)

and mark me errors/seg in console.
 
are you saying that when you actually look at an non-tile it actually tries to get the tile info but what it does is give a bug??
are you using a script or is that the standard 'look' function from the server?
 
Back
Top