Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
  2. if isPlayer(cid) then
  3. local specs = getSpectators(position, 1, 1)
  4. if(specs and #specs >= 5) then
  5. if(getCreatureLookDirection(cid) == NORTH) then
  6. doMoveCreature(cid, SOUTH)
  7. elseif(getCreatureLookDirection(cid) == EAST) then
  8. doMoveCreature(cid, WEST)
  9. elseif(getCreatureLookDirection(cid) == SOUTH) then
  10. doMoveCreature(cid, NORTH)
  11. elseif(getCreatureLookDirection(cid) == WEST) then
  12. doMoveCreature(cid, EAST)
  13. end
  14. end
  15. end
  16. return true
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement