Jump to content
Sign in to follow this  
UnknownUser

Pkhonor Dragon bones Prayer

Recommended Posts

- Have dragon bones in first bank slot

- Uses Dragon bones on Alter



Source - "http://pastebin.com/ZCTN0jBQ "

Save as   " Prayer.java "

To do - 

Not started
In progress
Finished


-
Create paint & Gui " Looking for some one to do  the paint "
- Supports all bones
- Completes all randoms.

- Uses alter



 

 

Edited by UnknownUser

Share this post


Link to post
Share on other sites

- Have dragon bones in first bank slot

- Uses Dragon bones on Alter

Source - "http://pastebin.com/ZCTN0jBQ "

Save as   " Prayer.java "

To do - Not startedIn progressCompleted

- Create paint & Gui " Looking for some one to do  the paint "- Supports all bones- Uses alter

- Completes all randoms.

Goodluck man, you should change your 'completes all randoms' to red aswell as it won't do that at the minute and could be misleading :)

Share this post


Link to post
Share on other sites

Anti-Random Strategy (could be cleaned up)

 


    Area bobsIsland = new Area(new Tile(2511, 4765),
            new Tile(2511, 4790),
            new Tile(2542, 4790),
            new Tile(2542, 4765));
 

private int[] randoms = { 410, 1091, 3117, 3022, 3351, 409 };

 

public class Antis implements Strategy

    {
        public boolean activate()
        {
            for (Npc n : Npcs.getNearest(randoms))
            {
                if (n.getLocation().distanceTo() < 3)
                {
                    antiRandom = n;
 
                    return true;
                }
            }
            return false;
        }
 
        public void execute()
        {
            sleep(750);
 
            System.out.println("There is a random nearby!");
 
            sleep(750);
 
            if (antiRandom.getDef().getId() == 1091)
            {
                SceneObject[] portal = SceneObjects.getNearest(8987);
 
                for (int i = 0; i < portal.length; i++)
                {
                    if (bobsIsland.contains(Players.getMyPlayer().getLocation()))
                    {
                        final SceneObject portal2 = portal;
 
                        portal2.interact(0);
 
                        Time.sleep(new SleepCondition() {
                            @Override
                            public boolean isValid() {
                                return portal2.getLocation().distanceTo() < 2;
                            }
 
                        }, 7500);
 
                        portal2.interact(0);
                        sleep(1000);
                    }
                }
 
                System.out.println("Bob's Island has been completed");
            }
            else if (antiRandom.getDef().getId() == 3022 || antiRandom.getDef().getId() == 3351 || antiRandom.getDef().getId() == 409)
            {
                System.exit(0);
 
                System.out.println("A mod called a Genie random onto you.n" +
                        "The client was closed to protect your account.");
            }
            else
            {
                antiRandom.interact(0);
                sleep(1500);
 
                System.out.println("Sandwich lady/Old man random has been completed");
            }
 
            rCount++;
        }
    }

Share this post


Link to post
Share on other sites

/tmp/jc_32445/Prayer.java:5: error: package ethan45.scripts.impopener does not exist
import ethan45.scripts.impopener.Timer;
^
/tmp/jc_32445/Prayer.java:8: error: cannot find symbol
public class Prayer extends Script implements LoopTask {
^
symbol: class Script
/tmp/jc_32445/Prayer.java:8: error: cannot find symbol
public class Prayer extends Script implements LoopTask {
^
symbol: class LoopTask
/tmp/jc_32445/Prayer.java:7: error: cannot find symbol
@ScriptManifest(author = "Unknown User", category = Category.PRAYER, description = "Uses dragon bones", name = "Prayer", servers = { "Pkhonor" }, version = 1.0)
^
symbol: class ScriptManifest
/tmp/jc_32445/Prayer.java:12: error: cannot find symbol
    Timer time = new Timer(2000);
    ^
symbol: class Timer
location: class Prayer
/tmp/jc_32445/Prayer.java:12: error: cannot find symbol
    Timer time = new Timer(2000);
     ^
symbol: class Timer
location: class Prayer
/tmp/jc_32445/Prayer.java:15: error: cannot find symbol
        Item[] Bone = Inventory.getItems(DRAGON_BONES);
         ^
symbol: variable Inventory
location: class Prayer
/tmp/jc_32445/Prayer.java:18: error: cannot find symbol
                Bank.close();
                ^
symbol: variable Bank
location: class Prayer
/tmp/jc_32445/Prayer.java:19: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:23: error: cannot find symbol
            Menu.sendAction(447, 536, 0, 3214);
            ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:24: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:27: error: cannot find symbol
         Menu.sendAction(62, 1080449077, 53, 48);
         ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:28: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:31: error: cannot find symbol
         Menu.sendAction(315, 6701056, 261, 2498);
         ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:32: error: cannot find symbol
                Time.sleep(20000);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:36: error: cannot find symbol
        if (Inventory.getCount() < 1) {
         ^
symbol: variable Inventory
location: class Prayer
/tmp/jc_32445/Prayer.java:41: error: cannot find symbol
                Menu.sendAction(646, DRAGON_BONES - 1, 0, 23412);
                ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:43: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:44: error: cannot find symbol
                Menu.sendAction(53, DRAGON_BONES - 1, 0, 5382);
                ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:45: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:47: error: cannot find symbol
                Menu.sendAction(200, 20905984, 50, 5384);
                ^
symbol: variable Menu
location: class Prayer
/tmp/jc_32445/Prayer.java:48: error: cannot find symbol
                Time.sleep(400);
                ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:56: error: cannot find symbol
                        Time.sleep(50);
                        ^
symbol: variable Time
location: class Prayer
/tmp/jc_32445/Prayer.java:67: error: cannot find symbol
        return Loader.getClient().getOpenInterfaceId() == 23350;
         ^
symbol: variable Loader
location: class Prayer
24 errors

Share this post


Link to post
Share on other sites

/tmp/jc_12164/BrAltarPro.java:12: error: package org.brad.enums does not exist
import org.brad.enums.Bones;
^
/tmp/jc_12164/BrAltarPro.java:13: error: package org.brad.randoms does not exist
import org.brad.randoms.MysteriousOldMan;
^
/tmp/jc_12164/BrAltarPro.java:14: error: package org.brad.randoms does not exist
import org.brad.randoms.SandwichLady;
^
/tmp/jc_12164/BrAltarPro.java:15: error: package org.brad.utils does not exist
import org.brad.utils.BankManager;
^
/tmp/jc_12164/BrAltarPro.java:16: error: package org.brad.utils does not exist
import org.brad.utils.ItemManager;
^
/tmp/jc_12164/BrAltarPro.java:17: error: package org.brad.utils does not exist
import org.brad.utils.Methods;
^
/tmp/jc_12164/BrAltarPro.java:18: error: package org.brad.utils does not exist
import org.brad.utils.Teleports;
^
/tmp/jc_12164/BrAltarPro.java:28: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.Bank;
^
/tmp/jc_12164/BrAltarPro.java:29: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.BotMouse;
^
/tmp/jc_12164/BrAltarPro.java:30: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.Calculations;
^
/tmp/jc_12164/BrAltarPro.java:31: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.Camera;
^
/tmp/jc_12164/BrAltarPro.java:32: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.Inventory;
^
/tmp/jc_12164/BrAltarPro.java:33: error: package org.rev317.api.methods does not exist
import org.rev317.api.methods.Skill;
^
/tmp/jc_12164/BrAltarPro.java:34: error: package org.rev317.api.wrappers.scene does not exist
import org.rev317.api.wrappers.scene.SceneObject;
^
/tmp/jc_12164/BrAltarPro.java:35: error: package org.rev317.api.wrappers.scene does not exist
import org.rev317.api.wrappers.scene.Tile;
^
/tmp/jc_12164/BrAltarPro.java:43: error: cannot find symbol
    private final Tile EDGE_BANK_TILE = new Tile(3093, 3491);
     ^
symbol: class Tile
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:46: error: cannot find symbol
    public static Bones bones = null;
     ^
symbol: class Bones
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:56: error: cannot find symbol
    private final Skill skill = Skill.PRAYER;
     ^
symbol: class Skill
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:43: error: cannot find symbol
    private final Tile EDGE_BANK_TILE = new Tile(3093, 3491);
     ^
symbol: class Tile
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:56: error: cannot find symbol
    private final Skill skill = Skill.PRAYER;
     ^
symbol: variable Skill
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:61: error: cannot find symbol
        UI.main(null);
        ^
symbol: variable UI
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:71: error: cannot find symbol
        tasks.add(new SandwichLady());
         ^
symbol: class SandwichLady
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:72: error: cannot find symbol
        tasks.add(new MysteriousOldMan());
         ^
symbol: class MysteriousOldMan
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:89: error: cannot find symbol
        if (ItemManager.hasItem(bones.getId())) {
         ^
symbol: variable ItemManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:91: error: cannot find symbol
            if (BankManager.isBankOpen()) {
             ^
symbol: variable BankManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:92: error: cannot find symbol
                Bank.close();
                ^
symbol: variable Bank
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:105: error: cannot find symbol
        final SceneObject altar = Methods.getObject(useEdge ? 10638 : 409);
         ^
symbol: class SceneObject
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:105: error: cannot find symbol
        final SceneObject altar = Methods.getObject(useEdge ? 10638 : 409);
         ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:108: error: cannot find symbol
            if (Calculations.distanceTo(altar.getLocation()) > 5) {
             ^
symbol: variable Calculations
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:111: error: cannot find symbol
                        Calculations.tileToMinimap(altar.getLocation(), true));
                        ^
symbol: variable Calculations
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:115: error: cannot find symbol
                Camera.turnTo(altar);
                ^
symbol: variable Camera
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:117: error: cannot find symbol
            if (!Teleports.isCombatTeleportsOpen()) {
             ^
symbol: variable Teleports
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:119: error: cannot find symbol
                        ItemManager.getItem(bones.getId()), "Use");
                        ^
symbol: variable ItemManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:118: error: cannot find symbol
                ItemManager.interactWithItem(
                ^
symbol: variable ItemManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:126: error: cannot find symbol
                            return Teleports.isCombatTeleportsOpen();
                             ^
symbol: variable Teleports
/tmp/jc_12164/BrAltarPro.java:131: error: cannot find symbol
            } else if (Teleports.isCombatTeleportsOpen()) {
             ^
symbol: variable Teleports
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:133: error: package Teleports.CombatTeleport does not exist
                if (Teleports.CombatTeleport.NEVER_MIND.teleport())
                 ^
/tmp/jc_12164/BrAltarPro.java:135: error: cannot find symbol
                            && ItemManager.hasItem(bones.getId()); i++) {
                             ^
symbol: variable ItemManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:137: error: cannot find symbol
                        final int count = Inventory.getCount(bones.getId());
                         ^
symbol: variable Inventory
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:139: error: cannot find symbol
                        if (Inventory.getCount(bones.getId()) == count)
                         ^
symbol: variable Inventory
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:150: error: cannot find symbol
        if (BankManager.isBankOpen()) {
         ^
symbol: variable BankManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:152: error: cannot find symbol
            if (!ItemManager.hasItem(bones.getId())) {
             ^
symbol: variable ItemManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:153: error: cannot find symbol
                final int count = Inventory.getCount(true, bones.getId());
                 ^
symbol: variable Inventory
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:154: error: cannot find symbol
                if (BankManager.withdraw(bones.getId(), 0))
                 ^
symbol: variable BankManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:159: error: cannot find symbol
                            return Inventory.getCount(true, bones.getId()) > count;
                             ^
symbol: variable Inventory
/tmp/jc_12164/BrAltarPro.java:164: error: cannot find symbol
        } else if (Calculations.distanceTo(EDGE_BANK_TILE) > 5 && useEdge) {
         ^
symbol: variable Calculations
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:167: error: cannot find symbol
                    Calculations.tileToMinimap(EDGE_BANK_TILE, true), true);
                    ^
symbol: variable Calculations
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:169: error: cannot find symbol
        } else if (BankManager.openBank(false)) {
         ^
symbol: variable BankManager
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:175: error: cannot find symbol
                    return BankManager.isBankOpen();
                     ^
symbol: variable BankManager
/tmp/jc_12164/BrAltarPro.java:221: error: cannot find symbol
        Methods.plusMouse(g, Color.RED, new Point(BotMouse.getMouseX(),
         ^
symbol: variable BotMouse
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:222: error: cannot find symbol
                BotMouse.getMouseY()));
                ^
symbol: variable BotMouse
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:221: error: cannot find symbol
        Methods.plusMouse(g, Color.RED, new Point(BotMouse.getMouseX(),
        ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:237: error: cannot find symbol
        g.drawString("Runtime: " + Methods.getTimeRunning(startTime), 551, 455);
         ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:241: error: cannot find symbol
        g.drawString("Prayer Xp/Hr: " + Methods.formatNumber(gained) + " / "
         ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:242: error: cannot find symbol
                + Methods.perHour(gained, startTime), 551, 406);
                 ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:247: error: cannot find symbol
        g.drawString("Bones Used/Hr: " + Methods.formatNumber(used) + " / "
         ^
symbol: variable Methods
location: class BrAltarPro
/tmp/jc_12164/BrAltarPro.java:248: error: cannot find symbol
                + Methods.perHour(used, startTime), 551, 431);
                 ^
symbol: variable Methods
location: class BrAltarPro
Note: /tmp/jc_12164/BrAltarPro.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
57 errors

Share this post


Link to post
Share on other sites

I've got a modified version of this script that is working for Ultimate Scape if anybody is interested.

 

Of course all credit for the script goes to Unknown User, I simply just edited the necessary values.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×