Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pseudocode for lumberjack
- begin
- while ActivePlayers
- login;
- if location is unknown
- detect location;
- if location is unknown
- attempt bank walk;
- if location is unknown
- attempt lumby tele;
- death walk to bank;
- if location is unknown
- Set player inactive;
- Next player;
- continue to while ActivePlayers;
- while true
- case location
- bank -> walk to trees;
- trees -> chop the tree while inv not full;
- trees ->
- begin
- case (bank, fletch, burn)
- bank -> walk to bank;
- fletch -> fletch and drop;
- burn -> burn;
- else -> drop;
- end
- NextPlayer;
- break to while ActivePlayers;
- end case (bank, fletch, burn)
- end case location
- end while true
- end while ActivePlayer
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement