Guest User

Untitled

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