Guest User

Untitled

a guest
Jul 21st, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. import java.util.Map;
  2.  
  3. import org.rsbot.accessors.RSObject;
  4. import org.rsbot.script.Script;
  5. import org.rsbot.script.ScriptManifest;
  6. import org.rsbot.script.wrappers.RSTile;
  7.  
  8. @ScriptManifest(authors = "SleepyStoner" , category = "Mining", name = "SleepyMiner", version = 1.0, description ="Mines And Banks")
  9.  
  10. public class Miner extends Script {
  11.  
  12.  
  13. public boolean onStart(Map<String, String>args){
  14. log("This is My First Script Enjoy");
  15. return true;
  16. }
  17. public boolean WalkToMine(){
  18. RSTile[] Path={new RSTile (3182,3438), new RSTile (3172,3424),new RSTile (3172,3412),new RSTile (3173,3399),new RSTile (3170,3390), new RSTile (3180,3380), new RSTile (33182,3376)};
  19. if (walkPathMM(Path)) {
  20. walkToClosestTile(Path);
  21. }
  22.  
  23. return true;
  24. }
  25. public boolean WalkToBank(){
  26. RSTile[] Path={new RSTile (3182,3438), new RSTile (3172,3424),new RSTile (3172,3412),new RSTile (3173,3399),new RSTile (3170,3390), new RSTile (3180,3380), new RSTile (33182,3376)};
  27. if (!walkPathMM(Path)) {
  28. walkToClosestTile(Path);
  29. }
  30.  
  31. return true;
  32. }
  33. public boolean MineOre(){
  34. if(!isInventoryFull()){
  35. int[] rockID={11957, 11959};
  36. }
  37.  
  38.  
  39.  
  40.  
  41. return true;
  42.  
  43. }
  44. public boolean BankOre(){
  45. if (isInventoryFull());
  46. return true;
  47. }
  48. public boolean InvoFull(){
  49. return true;
  50. }
  51. public boolean AtBank(){
  52. return true;
  53. }
  54. public boolean AtMine(){
  55. return true;
  56. }
  57. public boolean InvoEmpty(){
  58. return true;
  59. }
  60.  
  61. public void onFinish(){
  62. log("Thanks For Using");
  63. }
  64.  
  65. @Override
  66. public int loop(){
  67. if(InvoFull()){
  68. if(AtMine()){
  69. if(WalkToBank());
  70. else if(AtBank()){
  71. if(BankOre());
  72. }
  73. }
  74. else if (InvoEmpty()){
  75. if(AtBank()){
  76. if(WalkToMine());
  77. else if(AtMine()){
  78. if(MineOre()){
  79. }
  80. }
  81. }
  82. }
  83. }
  84. return 0;
  85. }
  86.  
  87. }
Add Comment
Please, Sign In to add comment