johnsamir
Advanced OT User
Hello. I have added block parcel code into my sources, but know i need to check the elevation in the client which is not being checked at all. A guy in this forum gave me a code, but it doesn't work. Also with this code i can't walk with arrow keys don't know why.
this is the code. Can comebody help me out please?
this is the code. Can comebody help me out please?
Lua:
local playerTile = player:getTile()
if (playerTile and (toTile:hasElevation() - playerTile:hasElevation() <= 1) or (playerTile:hasElevation() > 3))
player:preWalk(dir)
preWalked = true
else player:lockWalk(100)
end
Last edited: