Oldrs4ever

OldsDecanter

Jun 2nd, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. import com.rarebot.script.Script;
  2. import com.rarebot.script.ScriptManifest;
  3. import com.rarebot.script.wrappers.RSNPC;
  4.  
  5.  
  6.  
  7. @ScriptManifest(name = "OldsDecanter", version = 0.1, description = "Decants Un-notable Potions", authors = "Oldrs4ever")
  8. public class OldsDecanter extends Script
  9. {
  10.  
  11. /*
  12. 1 Dose Potion ID's
  13.  
  14. Recover Special = 15303
  15. Super Antifire = 15307
  16. Extreme Attack = 15311
  17. Extreme Strength = 15315
  18. Extreme Defence = 15319
  19. Extreme Magic = 15323
  20. Extreme Range = 15327
  21. Super Prayer = 15331
  22. Overload = 15335
  23. */
  24.  
  25.  
  26. /*
  27. 2 Dose Potion ID's
  28.  
  29. Recover Special = 15302
  30. Super Antifire = 15306
  31. Extreme Attack = 15310
  32. Extreme Strength = 15314
  33. Extreme Defence = 15318
  34. Extreme Magic = 15322
  35. Extreme Range = 15326
  36. Super Prayer Restore = 15330
  37. Overload = 15334
  38. */
  39.  
  40.  
  41. /*
  42. 3 Dose Potion ID's
  43.  
  44. Recover Special = 15301
  45. Super Antifire = 15305
  46. Extreme Attack = 15309
  47. Extreme Strength = 15313
  48. Extreme Defence = 15317
  49. Extreme Magic = 15321
  50. Extreme Range = 15325
  51. Super Prayer Restore = 15329
  52. Overload = 15333
  53.  
  54. */
  55.  
  56.  
  57. int Banker = 3418;
  58. int BobBarter = 6524;
  59. int Potions = 15333;
  60.  
  61.  
  62. public int loop()
  63. {
  64. RSNPC bob = npcs.getNearest(BobBarter);
  65. RSNPC banker = npcs.getNearest(Banker);
  66.  
  67. try
  68. {
  69. if(!inventory.contains(Potions))
  70. {
  71. if (banker != null && getMyPlayer().getAnimation() == -1)
  72. {
  73. camera.turnTo(banker);
  74. banker.interact("Bank Banker");
  75. sleep(random(700,1000));
  76. if (bank.isOpen())
  77. {
  78. bank.depositAll();
  79. if (bank.getItem(Potions) != null)
  80. {
  81. sleep(random(200,300));
  82. bank.withdraw(Potions, 0);
  83. sleep(random(500, 800));
  84. bank.close();
  85. }
  86. }
  87. }
  88. }
  89.  
  90. else if (inventory.contains(Potions))
  91. {
  92. camera.turnTo(bob);
  93. bob.interact("Decant Bob Barter (herbs)");
  94. sleep(random(1000,1500));
  95. }
  96.  
  97. }catch(Exception ex){}
  98. return 0;
  99. }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment