Advertisement
mixster

mixster

Aug 12th, 2009
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. pseudocode for lumberjack
  2.  
  3. begin
  4. while ActivePlayers
  5. login;
  6. if location is unknown
  7. detect location;
  8. if location is unknown
  9. attempt bank walk;
  10. if location is unknown
  11. attempt lumby tele;
  12. death walk to bank;
  13. if location is unknown
  14. Set player inactive;
  15. Next player;
  16. continue to while ActivePlayers;
  17.  
  18. while true
  19. case location
  20. bank -> walk to trees;
  21. trees -> chop the tree while inv not full;
  22. trees ->
  23. begin
  24. case (bank, fletch, burn)
  25. bank -> walk to bank;
  26. fletch -> fletch and drop;
  27. burn -> burn;
  28. else -> drop;
  29. end
  30. NextPlayer;
  31. break to while ActivePlayers;
  32. end case (bank, fletch, burn)
  33. end case location
  34. end while true
  35. end while ActivePlayer
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement