johnsamir
Advanced OT User
Hello
I need to find where is the "walk on game window click function". But i don't know where it could be at otcv8 or in mehah otclient. Need to find this function to add a new code related to check server elevation. I have added this piece of code, developed by @Terotrificy to walking lua, Which checks the server elevation, bloking player path if there are two or more stacked items that has elevation when a player walks with arrows keys, so i need the same but for when a player walk with game mouseclick. enlighten me please
I need to find where is the "walk on game window click function". But i don't know where it could be at otcv8 or in mehah otclient. Need to find this function to add a new code related to check server elevation. I have added this piece of code, developed by @Terotrificy to walking lua, Which checks the server elevation, bloking player path if there are two or more stacked items that has elevation when a player walks with arrows keys, so i need the same but for when a player walk with game mouseclick. enlighten me please
Lua:
local playerTile = player:getTile()--agregado 7.x block parcel
if toTile and toTile:isWalkable() then
if not player:isServerWalking() and not ignoredCanWalk then
if (playerTile and (toTile:getElevation() - playerTile:getElevation() <= 1) or (playerTile:getElevation() > 3)) then
player:preWalk(dir)
preWalked = true
end
end--agregado 7.x block parcel