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

Tile Help

delton

New Member
Joined
Jun 13, 2008
Messages
230
Reaction score
0
Location
Ijuí
I need a test to see if there is a tile in pos.z(7)

Example:

I walk the stairs, but if not I cannot floor up or down

Thanks! :thumbup:
 
example :)
Lua:
function isWalkable(cid, pos)
	pos.stackpos = 253
	if (doTileQueryAdd(cid, pos) == 1) then
		return TRUE
	end
	return FALSE
end

if not isWalkable(cid,{x=93,y=132,z=7}) then
  doPlayerSendCancel(cid,"cant go there")
  end
 
Back
Top