Dominik ms
Member
- Joined
- Jan 20, 2010
- Messages
- 424
- Reaction score
- 6
PHP:
pos = getCreaturePosition(pid)
for i = 0, 7 do
ground = {x=pos.x, y=pos.y, z=0+i}
if isWalkable(ground) == true then
doTeleportThing(pid, ground, true)
doRemoveConditions(pid, false)
return true
end
end
I am on pos z = 0, use script, now if tile under my self is walkable the i am teleporting down, up to ground tile (7).