Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. ;East Varrock Miner.rah
  2. ;Description: East Varrock Miner
  3. ;Instructions: Start near the mines
  4. ;Author: jRah
  5.  
  6. ;Variables
  7. set($var0, 0) ;will store the rock as a string to display in the custom info screen
  8. set($var1, 0) ;will keep track of the running time
  9. set($var2, 0) ;will keep track of the ores mined
  10. set($var3, 0) ;will keep track of the gems you collect
  11. set($var4, 0) ;will keep track of the rock selection
  12.  
  13. ;Draw Custom Info Screen
  14. drawInfo("@whi@Currently Mining: @whi@" + $var0, 1, 1);
  15. drawInfo("@whi@Ores Mined: @yel@" + $var2, 2, 1)
  16. drawInfo("@whi@Gems Mined: @yel@" + $var3, 3, 1)
  17. drawInfo("@whi@Mining For: @yel@" + $var1, 4, 1)
  18.  
  19.  
  20. :START:
  21. getOption($var5, "@ora@What type of rock would you like to mine?", "Copper", "Tin", "Iron")
  22. ifVarEqual(0, $var5) set($var0, "@yel@Copper")
  23. ifVarEqual(1, $var5) set($var0, "@yel@Tin")
  24. ifVarEqual(2, $var5) set($var0, "@yel@Iron")
  25. trackTime($var1) ;start tracking time
  26. toggle("show custominfo on") ;turn custom info screen on
  27.  
  28. :ROCK_SELECTOR:
  29. ifVarEqual(0, $var5) goto(:MINECOPPER:)
  30. ifVarEqual(1, $var5) goto(:MINETIN:)
  31. ifVarEqual(2, $var5) goto(:MINEIRON:)
  32.  
  33. :MINECOPPER:
  34. useObject(100) ;copper rock
  35. wait(500,1000)
  36. sleep(90,99)
  37. ifInvFull() goto(:WALKTOBANK:)
  38. ifServerMessageContains("you manage to obtain") inc($var2)
  39. ifServerMessageContains("gem") inc($var3)
  40. goto(:MINECOPPER:)
  41.  
  42. :MINETIN:
  43. useObject(105) ;tin rock
  44. wait(500, 1000)
  45. sleep(90,99)
  46. ifInvFull() goto(:WALKTOBANK:)
  47. ifServerMessageContains("you manage to obtain") inc($var2)
  48. ifServerMessageContains("gem") inc($var3)
  49. goto(:MINETIN:)
  50.  
  51. :MINEIRON:
  52. draw("@ora@Mining Iron", 8, 250, 1)
  53. useObject(102) ;iron rock
  54. wait(500,1000)
  55. sleep(90,99)
  56. ifInvFull() goto(:WALKTOBANK:)
  57. ifServerMessageContains("you manage to obtain") inc($var2)
  58. ifServerMessageContains("gem") inc($var3)
  59. goto(:MINEIRON:)
  60.  
  61. :WALKTOBANK:
  62. walkTo(80,520).. ;notice the auto complete operators here
  63. walkTo(102,510).
  64. goto(:BANK:)
  65.  
  66. :BANK:
  67. openBank()
  68. depositAll(copper ore)
  69. depositAll(tin ore)
  70. depositAll(iron ore)
  71. depositAll(uncut sapphire)
  72. depositAll(uncut emerald)
  73. depositAll(uncut ruby)
  74. depositAll(uncut diamond)
  75. closeBank()
  76. goto(:WALKTOMINE:)
  77.  
  78. :WALKTOMINE:
  79. walkTo(73, 538)
  80. wait(500,1000)
  81. ifNotAt(73, 538) goto(:WALKTOMINE:)
  82. goto(:ROCK_SELECTOR:)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement