BotScaper
-
Posts
14 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by BotScaper
-
-
7 minutes ago, Prolax said:
This is not enough: if(kurask != null){
Should check if your player is not interacting, not in combat, etc.
would this work?
if(kurask != null && !players.myPlayer().isUnderAttack()){
-
I think I fixed my code up if anyone would like to check, I have everything up to Banking done (which is just eat, loot, and attack)
-
29 minutes ago, Apaec said:
You can more or less use the tea thiever skeleton as a starting point, however it may help you to look at some complete scripts, so i'd recommend browsing the combat section of the local scripts sub-forum and downloading some of the scripts there. Then you can decompile some of the jars, and provided they are not obfuscated you should get a rough idea of what the source code is! There should be a bunch of free java decompilers (even online ones) available online
~apa
Could I PM you a small script to see if im getting onto the right start, I tried using lists to define which items to pick up and which food to eat
-
7 minutes ago, Keven said:
getInventory().interact("Eat", "Foodname");
thank you!
I can turn foodname into a list to provide multiple options right?
-
I am taking a java course thats halfway done the semester I just wanted to try my hand at something different
-
So I took the skeleton from the topic in tutorials and I wanted to know what I have to do to make my bot eat under a certain hp
This is the snippet of code.
NPC kurask = npcs.closest("Kurask"); if(kurask != null){ kurask.interact("Attack"); getGroundItems().closest(loot).interact("Take"); if (getSkills().getDynamic(Skill.HITPOINTS) > random(20,getSkills().getStatic(Skill.HITPOINTS)-22)){
Also if you know a formula that works well for calculating what hp to eat at I would love to know.
-
Hey is there a skeleton for an attack bot i could find anywhere.
-
do you know why the bank pin wont be entered? Possibly because of the update?
- 1
-
could I have a trial?
- 1
How do I make my script eat .
in Scripting Help
Posted
if(kurask != null && !players.myPlayer().isUnderAttack()||!players.myPlayer().isAnimating()||kurask.isVisible()){