Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.rarebot.script.Script;
- import com.rarebot.script.ScriptManifest;
- import com.rarebot.script.wrappers.RSNPC;
- @ScriptManifest(name = "OldsDecanter", version = 0.1, description = "Decants Un-notable Potions", authors = "Oldrs4ever")
- public class OldsDecanter extends Script
- {
- /*
- 1 Dose Potion ID's
- Recover Special = 15303
- Super Antifire = 15307
- Extreme Attack = 15311
- Extreme Strength = 15315
- Extreme Defence = 15319
- Extreme Magic = 15323
- Extreme Range = 15327
- Super Prayer = 15331
- Overload = 15335
- */
- /*
- 2 Dose Potion ID's
- Recover Special = 15302
- Super Antifire = 15306
- Extreme Attack = 15310
- Extreme Strength = 15314
- Extreme Defence = 15318
- Extreme Magic = 15322
- Extreme Range = 15326
- Super Prayer Restore = 15330
- Overload = 15334
- */
- /*
- 3 Dose Potion ID's
- Recover Special = 15301
- Super Antifire = 15305
- Extreme Attack = 15309
- Extreme Strength = 15313
- Extreme Defence = 15317
- Extreme Magic = 15321
- Extreme Range = 15325
- Super Prayer Restore = 15329
- Overload = 15333
- */
- int Banker = 3418;
- int BobBarter = 6524;
- int Potions = 15333;
- public int loop()
- {
- RSNPC bob = npcs.getNearest(BobBarter);
- RSNPC banker = npcs.getNearest(Banker);
- try
- {
- if(!inventory.contains(Potions))
- {
- if (banker != null && getMyPlayer().getAnimation() == -1)
- {
- camera.turnTo(banker);
- banker.interact("Bank Banker");
- sleep(random(700,1000));
- if (bank.isOpen())
- {
- bank.depositAll();
- if (bank.getItem(Potions) != null)
- {
- sleep(random(200,300));
- bank.withdraw(Potions, 0);
- sleep(random(500, 800));
- bank.close();
- }
- }
- }
- }
- else if (inventory.contains(Potions))
- {
- camera.turnTo(bob);
- bob.interact("Decant Bob Barter (herbs)");
- sleep(random(1000,1500));
- }
- }catch(Exception ex){}
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment