Jump to content

Some Errors


PwneRL33T

Recommended Posts

3d860f6dd8d8f45b7c561b340666d1a6.png

 

fc35214205cbe9902b68dfb004b78b9a.png

 

what can i do about these errors?

add skype: defectiversps

if need be

 

fixed and now running... good to see my (nearly) 2 year paint coming back to life.... sort of... nothing works atm haha

 

5bbd0ba860a7330f526227e67a953ab9.png

 

in saying that... how can i get ingame messages to work, cant seem to figure it out from the API

 

public void onMessage(Message message) {
if (message.equals("You get some oak logs.")) {
       this.logsChopped += 1;
       this.expGained += 37;
     }
     if (message.equals("A bird's nest falls out of the tree.")) {
       this.foundNest += 1;
    log("Nest Found");
     }
}

this is what i have but doesnt work...

Edited by PwneRL33T
Link to comment
Share on other sites

 

The 07 api. 

 

As for your first screenie, replace the errors with:

this.skills.getExperience(Skill.WOODCUTTING)

for your get.level, (Last error) (I don't think its in the API anymore) - use:

this.skills.getDynamic(Skill.WOODCUTTING)

 

ah thanks very much smile.png would you know about the getElapsed error?

 

the only suggestion i get from eclipse is "add cast to 'runTime'"

 

and this is what i have in my timer class that has anything to do with getElapsed

 

c9b374b0c221f544a9e48fd133bf4fd6.png

Edited by PwneRL33T
Link to comment
Share on other sites

Learn Java is all I can say, because your "errors" are just lack of knowledge of programming. Your never going to make anything of worth without knowing the basics of Java.

 i do know the basics of java, well i did about a year ago,  example

 

http://osbot.org/forum/topic/12893-seers-willow-cutter/

Link to comment
Share on other sites

facep.gif Look into the new api. We barley use the client instance now. They organized the api. So anything inventory related, they have it in the inventory class. Which could be then access with the new inventory instance. Go to the api, and look at the MethodProvider class and youll understand what i mean

 

for examples:

  • map.walk......
  • localWalker.walk........
  • camera.toEntity........
  • objects.closest.......
Edited by josedpay
Link to comment
Share on other sites

 

facep.gif Look into the new api. We barley use the client instance now. They organized the api. So anything inventory related, they have it in the inventory class. Which could be then access with the new inventory instance. Go to the api, and look at the MethodProvider class and youll understand what i mean

 

for examples:

  • map.walk......
  • localWalker.walk........
  • camera.toEntity........
  • objects.closest.......

 

 

ok fixed the ones you listed and a couple more, but just can't find these

 

bb13aada53eebc6243b18eea80b3ab15.png

Link to comment
Share on other sites

Im not going to help you out anymore. I already told you to look into the api under Method Provider. If you didnt do it, then that sucks.

 

http://osbot.org/api/org/osbot/rs07/script/MethodProvider.html

 

edit:

when you look at the class its self explanatory. facep.gif

Edited by josedpay
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...