Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. weapon = 237
  2. x = 32777
  3. y = 31249
  4. z = 7
  5.  
  6. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  7. function onWalkerSelectLabel(labelName)
  8. local func = loadstring(labelName)
  9. if (func) then func()
  10. end
  11. end
  12.  
  13. function paj()
  14. Walker.Stop()
  15. if(direction == "north") then
  16. Self.UseItemWithGround(weapon, x, y-1, z)
  17. end
  18. if (direction == "south") then
  19. Self.UseItemWithGround(weapon, x, y+1, z)
  20. end
  21. if (direction == "east") then
  22. Self.UseItemWithGround(weapon, x, y+1, z)
  23. end
  24. if (direction == "west") then
  25. Self.UseItemWithGround(weapon, x, y-1, z)
  26. end
  27. Walker.Start()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement