Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos = getPlayerPosition(cid)
- local pos_dir = getPositionByDirection(pos, direction)
- local pos = getCreaturePosition(cid)
- for i = 1, 8 do
- if isWalkable(getPosByDir(pos, i), true, false, false, true) then
- doTeleportThing(cid, getPosByDir(pos, i), true)
- end
- end
- if not ignoreParalyzeCheck then
- if getCreatureNoMove(cid) and not getParalyzeNoMove(cid) then
- return false
- end
- end
- doMoveCreature(cid, direction)
- else
- doMoveCreature(cid, getClosestFreeTile(cid, pos, true))
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement