Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.BasicStroke;
- import java.awt.Color;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Graphics2D;
- import com.rsbuddy.event.listeners.PaintListener;
- import com.rsbuddy.script.ActiveScript;
- import com.rsbuddy.script.Manifest;
- import com.rsbuddy.script.methods.Bank;
- import com.rsbuddy.script.methods.Camera;
- import com.rsbuddy.script.methods.Game;
- import com.rsbuddy.script.methods.Inventory;
- import com.rsbuddy.script.methods.Mouse;
- import com.rsbuddy.script.methods.Players;
- import com.rsbuddy.script.methods.Skills;
- import com.rsbuddy.script.util.Random;
- import com.rsbuddy.script.wrappers.Item;
- @Manifest(name = "BoneBurier", description = "Start at a bank. Not the GE. ", authors = "skutr3")
- public class BoneBurier extends ActiveScript implements PaintListener {
- int[] Bones = { 532, 526 };
- long startExp;
- long gainedExp;
- long currentExp;
- public boolean onStart() {
- Mouse.setSpeed(4);
- startExp = Skills.getCurrentExp(Skills.PRAYER);
- log("Hello Landon");
- return true;
- }
- public void antiBan() {
- int b = Random.nextInt(0, 10);
- switch (b) {
- case 1:
- if (Random.nextInt(0, 10) == 5) {
- log("[Antiban] move mouse");
- Mouse.moveSlightly();
- sleep(200, 600);
- Mouse.moveRandomly(150, 350);
- }
- break;
- case 2:
- if (Random.nextInt(0, 13) == 2) {
- log("[Antiban] Turn screen");
- Camera.setCompassAngle(Random.nextInt(30, 70));
- sleep(400, 1200);
- }
- break;
- case 3:
- if (Random.nextInt(0, 24) == 6) {
- log("[Antiban] mouse off screen");
- Mouse.moveOffScreen();
- sleep(Random.nextInt(600, Random.nextInt(1200, 2000)));
- }
- break;
- case 4:
- if (Random.nextInt(0, 18) == 3) {
- log("[antiban] Checking Xp.");
- Game.openTab(1);
- Skills.hover(Skills.COMPONENT_PRAYER);
- sleep(Random.nextInt(2100, 3400));
- }
- break;
- default:
- break;
- }
- }
- public void bury() {
- antiBan();
- if (Players.getLocal().getAnimation() != 827) {
- Item bone = Inventory.getItem(Bones);
- if (bone != null) {
- bone.interact("Bury");
- }
- }
- }
- @Override
- public int loop() {
- if (Inventory.getCount(Bones) > 0) {
- bury();
- }
- else if (!Inventory.isFull() && !Bank.isOpen()) {
- Bank.open();
- } else if (!Inventory.isFull() && Bank.isOpen()) {
- Bank.withdraw(532, 28);
- Bank.withdraw(526, 28);
- sleep(100, 150);
- Bank.close();
- }
- return 590;
- }
- final Color color1 = new Color(14, 19, 24, 126);
- final Color color2 = new Color(0, 0, 0);
- final Color color3 = new Color(241, 242, 244);
- final BasicStroke stroke1 = new BasicStroke(1);
- final Font font1 = new Font("Arial", 0, 17);
- final Font font2 = new Font("Arial", 0, 16);
- public void onRepaint(Graphics g1) {
- Graphics2D g = (Graphics2D) g1;
- currentExp = Skills.getCurrentExp(Skills.PRAYER);
- gainedExp = (currentExp - startExp);
- g.setColor(color1);
- g.fillRoundRect(548, 205, 189, 259, 16, 16);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.drawRoundRect(548, 205, 189, 259, 16, 16);
- g.setFont(font1);
- g.setColor(color3);
- g.drawString("BoneBurier by skutr3", 554, 229);
- g.setFont(font2);
- g.drawString("Xp Gained:" + gainedExp, 555, 272);
- }
- // END: Code generated using Enfilade's Easel
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement