Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xobot.client.events.MessageEvent;
- import java.text.NumberFormat;
- import java.util.Locale;
- import java.awt.Color;
- import java.awt.Graphics;
- import xobot.script.wrappers.interactive.GameObject;
- import xobot.script.wrappers.interactive.GroundItem;
- import xobot.script.wrappers.interactive.Item;
- import xobot.script.wrappers.interactive.NPC;
- import xobot.script.wrappers.interactive.Player;
- import xobot.script.methods.NPCs;
- import xobot.script.methods.Bank;
- import xobot.script.methods.GameObjects;
- import xobot.script.methods.GroundItems;
- import xobot.script.methods.tabs.Inventory;
- import xobot.script.methods.tabs.Skills;
- import xobot.script.util.Filter;
- import xobot.script.util.Time;
- import xobot.script.methods.Players;
- import xobot.script.methods.Shop;
- import xobot.script.methods.Packets;
- import xobot.script.methods.Widgets;
- import xobot.script.methods.Walking;
- import xobot.script.util.Timer;
- import xobot.script.Manifest;
- import xobot.client.callback.listeners.MessageListener;
- import xobot.client.callback.listeners.PaintListener;
- import xobot.script.ActiveScript;
- import xobot.script.wrappers.Tile;
- @Manifest(authors = { "Simmy" }, name = "Universal Skeleton Horrors", description = "Will Automatically Kill Skeleton Horrors!", version = 1.01)
- public class SimmysBoxes extends ActiveScript implements PaintListener, MessageListener{
- private Timer timer;
- private static final Tile SafeSpot = new Tile(3313, 3671, 0);
- public static boolean Target = false;
- public static int Used = 0;
- public static int Won = 0;
- public static int Kills = 0;
- private static final String[] STAFF = {
- "Daan",
- "Maurits",
- "Dupe Force 2",
- "Huzaa3",
- "Nickrock234",
- "Oldest Nite",
- "Mims7099",
- "Teh Pedobear",
- "Nolan",
- "Huzaa1",
- "Miranda Kerr",
- "Mike",
- "Eater",
- "Herrodragon",
- "Stefan",
- };
- String status = "We Are Currently Starting The Script Up; Please Kick Back And Relax!";
- public boolean onStart() {
- this.timer = new Timer();
- return true;
- }
- @Override
- public void MessageRecieved(MessageEvent message) {
- if (message.getMessage().contains("HORROR kill")) {
- Kills += 1;
- }
- if (message.getMessage().contains("next hit is")) {
- Target = true;
- }
- }
- @Override
- public void repaint(Graphics g) {
- int KPH = (int) (Kills * 3600000.0D / this.timer.getElapsed());
- g.setColor(Color.WHITE);
- g.drawString("Status: " + status, 15, 235);
- g.drawString("Runtime: " + timer.toElapsedString(), 15, 250);
- g.drawString("Skeleton Horror Kills: " + Kills, 15, 265);
- g.drawString("Skeleton Horror Kills(P/Hour): " + NumberFormat.getNumberInstance(Locale.US).format(KPH), 15, 280);
- g.drawString("Universal Skeleton Horrors by Simmy", 170, 30);
- }
- @Override
- public int loop() {
- //Add Variables Here;
- NPC Horror = NPCs.getNearest(9176);
- GameObject Rock = GameObjects.getNearest(114455);
- GameObject Chest = GameObjects.getNearest(3193);
- Item Food = Inventory.getItem(391);
- Item Loots = Inventory.getItem(1543, 1544, 1545, 1546, 1547, 1548, 5973, 19064, 19778, 18834, 299, 12539, 15126, 537, 18786, 19784, 19780, 22401, 9594, 26776);
- GroundItem Loot = GroundItems.getNearest(1543, 1544, 1545, 1546, 1547, 1548, 5973, 19064, 19778, 18834, 299, 12539, 15126, 537, 18786, 19784, 19780, 22401, 9594, 26776);
- if(Rock != null) {
- if(Target == false & Players.getAll(STAFF) != null) {
- if(Skills.CONSTITUTION.getCurrentLevel() < 79 | Loots != null & Loot == null) {
- if(Food == null | Loots != null) {
- status = "We Are Quickly Teleporting To The Bank Area!";
- Packets.sendAction(315, 6, -1, 26494);
- Time.sleep(() -> Chest != null, 6500);
- }
- if(Food != null & Loots == null) {
- status = "We Are Quickly Eating A Manta Ray!";
- Food.interact("Eat");
- Time.sleep(1500);
- }
- }
- if(Loot != null) {
- status = "We Are Quickly Looting The Items Dropped From Skeleton Horror!";
- Loot.interact("Take");
- Time.sleep(1500);
- }
- if(Loots == null & Loot == null) {
- if(SafeSpot.getDistance() > 0) {
- status = "We Are Walking To The Safe Spot For Skeleton Horror!";
- SafeSpot.walk();
- Time.sleep(1500);
- }
- if(SafeSpot.getDistance() == 0 & Food != null) {
- if(Skills.CONSTITUTION.getCurrentLevel() > 80) {
- if(Horror == null & SafeSpot.getDistance() == 0) {
- status = "We Are Waiting For The Skeleton Horror To Respawn!";
- SafeSpot.walk();
- Time.sleep(() -> Horror != null, 3500);
- }
- if(Horror != null & Players.getMyPlayer().getAnimation() == -1) {
- status = "We Are Attempting To Attack The Skeleton Horror!";
- Horror.interact("Attack");
- Time.sleep(350);
- }
- if(Horror != null & Players.getMyPlayer().getAnimation() == 426) {
- status = "We Are Currently Attacking The Skeleton Horror!";
- Time.sleep(4000);
- }
- }
- }
- }
- }
- if(Target == true | Players.getAll() != null) {
- status = "We Are Teleporting Back To The Bank(Pkers Are Around!)";
- Packets.sendAction(315, 6, -1, 26494);
- Time.sleep(8500, 10000);
- Target = false;
- }
- }
- if(Chest != null) {
- if(Inventory.isFull() | Food == null | Loots != null) {
- if(Widgets.getOpenInterface() == -1) {
- status = "We Are Opening The Bank Chest!";
- Chest.interact("Open");
- Time.sleep(() -> Widgets.getOpenInterface() == 5292, 3000);
- }
- if(Widgets.getOpenInterface() == 5292) {
- if(Loots != null) {
- status = "We Are Banking Some Of Your Loots!";
- Bank.depositAllExcept(8013, 391);
- Time.sleep(() -> Loots == null, 1500);
- }
- if(Inventory.getFreeSlots() <= 4) {
- status = "We Are Depositing Your Stuff Into The Bank!";
- Bank.depositAllExcept(554, 556, 563);
- Time.sleep(() -> Inventory.getFreeSlots() >= 14, 1500);
- }
- if(Food == null) {
- status = "We Are Withdrawing A Few Manta Rays For Safety Reasons!";
- Bank.withdraw(391, 10);
- Time.sleep(() -> Food != null, 1500);
- }
- }
- }
- if(Horror == null & Rock == null & Food != null & Inventory.getFreeSlots() >= 14) {
- status = "We Are Teleporting Back To The Skeleton Horror!";
- Packets.sendAction(315, 5, -1, 26318);
- Time.sleep(() -> Rock != null, 6500);
- }
- }
- return 25;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement