Auth added- enjoy!
Ps: It was reported to me that there is a bug with ring of dueling banking when using the castle wars methods. I am away until Thursday (tomorrow), and will do my best to push an update fixing this issue by Thursday evening. If your planning on using either castle wars methods , I can leave you a trial until 24 hours after the issue is fixed so that you get a fair tester of the script minus this bug.
gl
apaec
Hey guys, I noticed a lot of replies. I've been away since Sunday evening getting back on Thursday, so I won't be able to push any required updates until then when I get home. what I will fix on Thursday:
- will make script stop if you ran out of ammo
- will make script stop if not enough pots in bank, instead of continuous looping.
Did you export it like I showed, into the correct folder? Ensure its a Jar file, not a runnable jar file too.
It needs to go in users/osbot/scripts, and ensure that there are no osbot1 local scripts in that folder as they cannot co-exist.
apaec
NPC = Non player character. This means anything alive basically - enemies, guards, monsters, town criers, leprechauns, bankers etc etc
Entity = the rest - rocks, trees, bank booths, cabbages, so on. Also, export as a jar.
Awesome!
When you do get round to trying next time, can you watch out for:
Ranged pots - do they work? banking, drinking, etc.
Does the script randomly log out when it's not lost, stating it is lost?
Thanks, as these updates were untested!
apaec
Now that's really odd, I'll write a bit of code to make the script tele if it's lost. if you don't have a teleport in ur invy then it'll log/ stop script.
UPDATE V 2.06!
Bug Fixes
Emergency action: If the script recognises you're somewhere where you're not meant to be, the script will use the teleport in your inventory to get back on track. If you do not have a teleport, then the script will stop and log you out safely.
Thanks for reporting that but unfortunately that too is an error of the client, which I can do nothing about. Does the update I pushed yesterday incorporating ranged potions work?
thanks,
apaec
Meh, Jagex are on the ball with bans atm, although it's still reasonable safe if you go about botting right (ie not running a script for 24 hours w/o breaks :p)
public void potionHandler(String potionName, String potionInteraction) {
for (int i = 1; i <= 4; i++) {
if (this.inventory.contains(potionName + "(" + i + ")")) {
this.inventory.interact(
this.inventory.getSlot(potionName + "(" + i + ")"),
potionInteraction);
break;
}
}
}
Implementation:
if (this.myPlayer().getSkills().getDynamic(Skill.PRAYER) <= 25) {
potionHandler("Prayer potion", "Drink");
}
Untested I wrote it for you now but it should work
any more questions just let me know
gl
Thanks very much for the kind words yet again, and appreciate the review. I probably won't add the ability to change the gui while you're using the script as this can arise all sorts of problems, but I'll work on range pots this weekend for you. Thanks for the suggestions though!
EDIT: Just pushed V 2.05. This update now supports ranged potions and should be available within 24 hours!
(Please note that this is untested, do get back to me if it doesn't work!)
Have fun,
Apaec