Encore 0 Share Posted June 28, 2016 This is as far as i got with 20 minutes of fucking around =/ getLocalPlayer().hoverSkill(PRAYER); with public static final Skill PRAYER; declared up top Link to comment Share on other sites More sharing options...
Zawy 877 Share Posted June 28, 2016 whats wrong Link to comment Share on other sites More sharing options...
Encore 0 Author Share Posted June 28, 2016 im trying to learn you troll how do i check the api to see which method can be called on what? pretty sure i have a promising script going >=] Link to comment Share on other sites More sharing options...
Zawy 877 Share Posted June 28, 2016 im trying to learn you troll how do i check the api to see which method can be called on what? pretty sure i have a promising script going >=] Well, http://dreambot.org/javadocs for a begin. Link to comment Share on other sites More sharing options...
Encore 0 Author Share Posted June 28, 2016 i have more fun with tinkering, but yeah been there doing that, i have trouble understanding how to use most of the stuff on there though. Link to comment Share on other sites More sharing options...
slasso 27 Share Posted June 28, 2016 i have more fun with tinkering, but yeah been there doing that, i have trouble understanding how to use most of the stuff on there though. I suggest learning the basics of Java before trying to learn how to make a script. Once you learn how Objects work you will understand the javadocs a lot more. Link to comment Share on other sites More sharing options...
Encore 0 Author Share Posted June 28, 2016 I suggest learning the basics of Java before trying to learn how to make a script. Once you learn how Objects work you will understand the javadocs a lot more. =[ i thought i understood objects... looking at the Skill constructor, does that mean i should create a skill object, and pass to it, a already created client object?... then access.hove through the skill objecT? Constructor Summary Constructors Constructor and Description Skills(Client client) forgive my noobiness guys... ill get better... eventually Link to comment Share on other sites More sharing options...
slasso 27 Share Posted June 28, 2016 =[ i thought i understood objects... looking at the Skill constructor, does that mean i should create a skill object, and pass to it, a already created client object?... then access.hove through the skill objecT? Constructor Summary Constructors Constructor and Description Skills(Client client) forgive my noobiness guys... ill get better... eventually You don't need to do that for many of the classes you wish to use in DreamBot. http://dreambot.org/javadocs/org/dreambot/api/methods/MethodContext.html This class here already getters for many things you will need, so you don't have to pass the client around. Luckily, your main script class extends AbstractScript which extends MethodContext. That mean you can do getSkills() and this gets you the Skills object you want. Link to comment Share on other sites More sharing options...
Encore 0 Author Share Posted June 28, 2016 cool. thanks a bunch. ill try to understand what you said more fully Link to comment Share on other sites More sharing options...
Mad 86 Share Posted June 28, 2016 ur field that you declared "Skill prayer" is null, as it it has no value assigned to it. You have to set a value to it by using the = operator. How is java to know you want the prayer tab if you don't set a value? All it sees is you created a field with the type Skill and named it prayer. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.