Guest User

Untitled

a guest
Jan 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. import org.rsbot.script.Script;
  2. import org.rsbot.script.ScriptManifest;
  3. import org.rsbot.script.wrappers.RSGroundItem;
  4. import org.rsbot.script.wrappers.RSObject;
  5. import org.rsbot.script.wrappers.RSTile;
  6. import org.rsbot.script.wrappers.RSWeb;
  7.  
  8. @ScriptManifest(authors = { "super4tress" }, name = "super4LRCpicker", keywords = { "Picks up items" }, version = 0.1, description = "Loots from the LRC for massive cash!")
  9.  
  10. public class super4LRCpicker extends Script {
  11.  
  12. int goldore = 444;
  13. int goldoren = 445;
  14. int goldbar = 2357;
  15. int coal = 453;
  16. int coaln = 0;
  17. int rocktail = 15270;
  18. int minerals = 15263;
  19.  
  20. int deposit = 2738;
  21.  
  22. RSTile bankTile = new RSTile(3652, 5115);
  23. RSWeb webToBank = null;
  24.  
  25. @Override
  26. public int loop() {
  27. if(getMyPlayer().getLocation() == bankTile && inventory.isFull()); {
  28. bank();
  29. }
  30. if(getMyPlayer().getLocation() == bankTile && !inventory.isFull()); {
  31. loot();
  32. }
  33. if(getMyPlayer().getLocation() != bankTile && !inventory.isFull()); {
  34. loot();
  35. }
  36. if(getMyPlayer().getLocation() != bankTile && inventory.isFull()); {
  37. bank();
  38. }
  39. return 0;
  40. }
  41.  
  42. private void loot() {
  43. RSGroundItem gold1 = groundItems.getNearest(444); // Gold ore ID.
  44. RSGroundItem gold2 = groundItems.getNearest(445); // Gold ore noted ID.
  45. RSGroundItem gold3 = groundItems.getNearest(2357); // Gold bar ID.
  46. RSGroundItem coal1 = groundItems.getNearest(453); // Coal ID.
  47. RSGroundItem rocktail1 = groundItems.getNearest(15270); // Raw Rocktail ID.
  48. RSGroundItem minerals1 = groundItems.getNearest(15263); // = Living Minerals ID.
  49.  
  50. if (gold1 != null) {
  51. gold1.interact("Take " + gold1.getItem().getName());
  52. sleep(300, 500);
  53. }
  54. if (gold2 != null) {
  55. gold2.interact("Take " + gold2.getItem().getName());
  56. sleep(300, 500);
  57. }
  58. if (gold3 != null) {
  59. gold3.interact("Take " + gold3.getItem().getName());
  60. sleep(300, 500);
  61. }
  62. if (coal1 != null) {
  63. coal1.interact("Take " + coal1.getItem().getName());
  64. sleep(300, 500);
  65. }
  66. if (rocktail1 != null) {
  67. rocktail1.interact("Take " + rocktail1.getItem().getName());
  68. sleep(300, 500);
  69. }
  70. if (minerals1 != null) {
  71. minerals1.interact("Take " + minerals1.getItem().getName());
  72. sleep(300, 500);
  73. }
  74. }
  75.  
  76. private void bank() {
  77. RSObject pulley = objects.getNearest(2738);
  78. pulley.interact("Deposit Pulley Lift");
  79. sleep(800, 1200);
  80.  
  81. }
  82.  
  83. }
Add Comment
Please, Sign In to add comment