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
I think you could maybe put this kind of thing on the premium SDN? I'm not sure if it's allowed as it's not really a bot script but it relates to runescape. Perhaps you could give that a shot!
Heya ! There used to be a delay however I got a complaint that it was handing around and so I removed the delay. I think if you have a delay, it will go attack a crab, realise world is too full and will want to hop, however cant because it's in combat. Admittedly it would hop after killing 1 crab, but idk, It seems to be fine as it is for me. I mean alot of people at rock crabs run this script so even if I added a delay, alot of bots would hop at the same time xD
If others want this feature as well, I'll implement it. Thanks for letting me know!