Advertisement
Maespark

GoldPanning Book2 (example)

Jun 17th, 2020 (edited)
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.93 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //Macro Name: GoldPanning Book2
  3. //Macro Author: Maelune
  4. //Macro Purpose: This is an example of how to set up your 2nd book for gold
  5. //               panning. If you have not yet set up your first book, go
  6. //               open the OTHER script called "GoldPanning Book1"
  7. //
  8. //Macro Instruction: 1. In order to set up your 2nd (and all future) book, you
  9. //                   simply need to rename all of the lists, replacing the
  10. //                   1 with a 2, 2 with a 3, 3 with a 4, etc for each
  11. //                   additional book you end up adding. For this book, we
  12. //                   will be renaming GPRunes1, GPX1, GPY1, and GPZ1 to
  13. //                   GPRunes2, GPX2, GPY2, and GPZ2 respectively. It is
  14. //                   SUPER important that you get EVERY one of them in the
  15. //                   script!
  16. //                   2. You will then need to replace the coordinate values
  17. //                   in GPX2, GPY2, and GPZ2 to reflect the values for your
  18. //                   runes in your second runebook.
  19. //                   3. Don't forget to change the runebook alias so that it
  20. //                   contains your 2nd runebook's serial ID!
  21. //////////////////////////////////////////////////////////////////////////////
  22. clearjournal
  23. if not findalias 'runebook2'
  24.   //set this to the serial of you runebook
  25.   setalias 'runebook2' 0x4ca14944
  26. endif
  27. //Declare lists for runes, X, Y, and Z coords.
  28. if not listexists 'GPRunes2'
  29.   createlist 'GPRunes2'
  30. endif
  31. if not listexists 'GPX2'
  32.   createlist 'GPX2'
  33. endif
  34. if not listexists 'GPY2'
  35.   createlist 'GPY2'
  36. endif
  37. if not listexists 'GPZ2'
  38.   createlist 'GPZ2'
  39. endif
  40. //Initialize lists. Values in GPRunes1 should not require changing.
  41. if list 'GPRunes2' < 1
  42.   pushlist 'GPRunes2' 7 //Rune #1
  43.   pushlist 'GPRunes2' 13 //Rune #2
  44.   pushlist 'GPRunes2' 19 //Rune #3
  45.   pushlist 'GPRunes2' 25 //Rune #4
  46.   pushlist 'GPRunes2' 31 //Rune #5
  47.   pushlist 'GPRunes2' 37 //Rune #6
  48.   pushlist 'GPRunes2' 43 //Rune #7
  49.   pushlist 'GPRunes2' 49 //Rune #8
  50.   pushlist 'GPRunes2' 55 //Rune #9
  51.   pushlist 'GPRunes2' 61 //Rune #10
  52.   pushlist 'GPRunes2' 67 //Rune #11
  53.   pushlist 'GPRunes2' 73 //Rune #12
  54.   pushlist 'GPRunes2' 79 //Rune #13
  55.   pushlist 'GPRunes2' 85 //Rune #14
  56.   pushlist 'GPRunes2' 91 //Rune #15
  57.   pushlist 'GPRunes2' 97 //Rune #16
  58. endif
  59. if list 'GPX2' < 1
  60.   pushlist 'GPX2' 452 //X coord of rune #1
  61.   pushlist 'GPX2' 473 //X coord of rune #2
  62.   pushlist 'GPX2' 282 //X coord of rune #3
  63.   pushlist 'GPX2' 454 //X coord of rune #4
  64.   pushlist 'GPX2' 312 //X coord of rune #5
  65.   pushlist 'GPX2' 375 //X coord of rune #6
  66.   pushlist 'GPX2' 438 //X coord of rune #7
  67.   pushlist 'GPX2' 491 //X coord of rune #8
  68.   pushlist 'GPX2' 554 //X coord of rune #9
  69.   pushlist 'GPX2' 617 //X coord of rune #10
  70.   pushlist 'GPX2' 675 //X coord of rune #11
  71.   pushlist 'GPX2' 739 //X coord of rune #12
  72.   pushlist 'GPX2' 794 //X coord of rune #13
  73.   pushlist 'GPX2' 813 //X coord of rune #14
  74.   pushlist 'GPX2' 874 //X coord of rune #15
  75.   pushlist 'GPX2' 937 //X coord of rune #16
  76. endif
  77. if list 'GPY2' < 1
  78.   pushlist 'GPY2' 277 //Y coord of rune #1
  79.   pushlist 'GPY2' 305 //Y coord of rune #2
  80.   pushlist 'GPY2' 345 //Y coord of rune #3
  81.   pushlist 'GPY2' 259 //Y coord of rune #4
  82.   pushlist 'GPY2' 314 //Y coord of rune #5
  83.   pushlist 'GPY2' 371 //Y coord of rune #6
  84.   pushlist 'GPY2' 432 //Y coord of rune #7
  85.   pushlist 'GPY2' 494 //Y coord of rune #8
  86.   pushlist 'GPY2' 555 //Y coord of rune #9
  87.   pushlist 'GPY2' 617 //Y coord of rune #10
  88.   pushlist 'GPY2' 673 //Y coord of rune #11
  89.   pushlist 'GPY2' 738 //Y coord of rune #12
  90.   pushlist 'GPY2' 799 //Y coord of rune #13
  91.   pushlist 'GPY2' 813 //Y coord of rune #14
  92.   pushlist 'GPY2' 874 //Y coord of rune #15
  93.   pushlist 'GPY2' 932 //Y coord of rune #16
  94. endif
  95. if list 'GPZ2' < 1
  96.   pushlist 'GPZ2' -5 //Z coord of rune #1
  97.   pushlist 'GPZ2' -5 //Z coord of rune #2
  98.   pushlist 'GPZ2' -5 //Z coord of rune #3
  99.   pushlist 'GPZ2' -5 //Z coord of rune #4
  100.   pushlist 'GPZ2' -5 //Z coord of rune #5
  101.   pushlist 'GPZ2' -5 //Z coord of rune #6
  102.   pushlist 'GPZ2' -5 //Z coord of rune #7
  103.   pushlist 'GPZ2' -5 //Z coord of rune #8
  104.   pushlist 'GPZ2' -5 //Z coord of rune #9
  105.   pushlist 'GPZ2' -5 //Z coord of rune #10
  106.   pushlist 'GPZ2' -5 //Z coord of rune #11
  107.   pushlist 'GPZ2' -5 //Z coord of rune #12
  108.   pushlist 'GPZ2' -5 //Z coord of rune #13
  109.   pushlist 'GPZ2' -5 //Z coord of rune #14
  110.   pushlist 'GPZ2' -5 //Z coord of rune #15
  111.   pushlist 'GPZ2' -5 //Z coord of rune #16
  112. endif
  113. for 0 to GPRunes2
  114.   //Sacred Journey
  115.   useobject runebook2
  116.   pause 150
  117.   if @injournal "time to recharge"
  118.     pause 6000
  119.     useobject runebook2
  120.   endif
  121.   waitforgump 0x554b87f3 15000
  122.   replygump 0x554b87f3 GPRunes2[0]
  123.   pause 2000
  124.   clearjournal
  125.   //Panning begins
  126.   while not @injournal "to be any nuggets"
  127.     while not @findtype 0x9d7 '0' 'backpack'
  128.     endwhile
  129.     usetype 0x9d7 '0' 'backpack'
  130.     waitfortarget 15000
  131.     targettile GPX2[0] GPY2[0] GPZ2[0]
  132.     pause 150
  133.     while not @findtype 0x9d8 '0' 'backpack'
  134.       //if statement catches if you failed your panning.
  135.       //@200, this should never run.
  136.       if @injournal 'but fail to find any'
  137.         usetype 0x9d7 '0' 'backpack'
  138.         waitfortarget 15000
  139.         targettile GPX2[0] GPY2[0] GPZ2[0]
  140.         pause 150
  141.         clearjournal
  142.       endif
  143.       //If statement to handle being overweighted
  144.       //The following number should be max weight -50
  145.       if weight > 520
  146.         ////////////////////////////////////////////////////////
  147.         //This section is for what you want your macro to do when you
  148.         //become overweight. You should have something to handle
  149.         //MiBs, footwear, nuggets, and large gems. Below is an example
  150.         //of how to use an organizer properly so that it doesn't interfere
  151.         //with the rest of the macro - the 'while organizing' will form
  152.         //a dynamic pause while the organizer is running. For any additional
  153.         //methods you add for weight control, make sure you take into
  154.         //consideration how long the operation will take!
  155.         ////////////////////////////////////////////////////////
  156.         organizer 'GPOrganizer' //Setup Organizers in the Agents tab of UOS
  157.         while organizing
  158.         endwhile
  159.       endif
  160.       //If statement handles if spot is empty
  161.       if @injournal "to be any nuggets"
  162.         break
  163.       endif
  164.       //If statement pauses script while world is saving
  165.       if @injournal "world is saving"
  166.         while not @injournal "save complete"
  167.         endwhile
  168.         clearjournal
  169.       endif
  170.     endwhile
  171.     usetype 0x9d8 '0' 'backpack'
  172.   endwhile
  173.   //progressing script to the next rune
  174.   poplist 'GPRunes2' 'front'
  175.   poplist 'GPX2' 'front'
  176.   poplist 'GPY2' 'front'
  177.   poplist 'GPZ2' 'front'
  178. endfor
  179. //playmacro 'GPBook3' //Uncomment this line to add a 3rd book.
  180. //playmacro 'GPBook1' //Uncomment this line to loop back to the first book
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement