Jump to content

Some Errors


Recommended Posts

Posted (edited)

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
Posted (edited)

 

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
Posted (edited)

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
Posted

 

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

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

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