Advertisement
j311yf1sh

Untitled

Feb 4th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <Bart39> so the way i did it with warehousing was using 2 functions
  2. <Bart39> TSM.generateMoves
  3. <Bart39> builds the table of moves
  4. <Bart39> then calls the function that does the actual move on a timedelay
  5. <Bart39> TSM.moveItem()
  6. <j311yf1sh> What's stored in generate moves?
  7. <Bart39> picks the 1st move in the table - tries to do it and if succesful deletes the move from the table
  8. <Bart39> then calls TSM.generateMoves again on a timedelay
  9. <Bart39> uggh 3 functions actually
  10. <Bart39> TSMAPI:MoveItems is the 1st step - that builds the master table of moves needed
  11. <Bart39> TSM.generateMoves then checks that table and generates a table of moves still required
  12. <Bart39> TSM.moveItem() takes the 1st move from the 2nd table - if successful - deletes it from the 1st table
  13. <Bart39> then returns to TSM.generateMoves
  14. <Bart39> which rebuilds the table of moves still needed
  15. <Bart39> so your looping round till nothing left
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement