Jump to content

Client Does Not Want to Show My Local Scripts


Recommended Posts

Posted

The first script listed in my pic is a free local woodcutter from the second one is a script of my own. This is how my script looks like with the manifest: http://puu.sh/kVkBw/cdf1628968.png

 

 

  1. The "logo" parameter in the Manifest should be not text, as it is an image, hence logo. :p
  2. As well, you have errors in your script, meaning it won't compile, correctly at least, while the errors exist.
Posted

The reason for the error is because your using old osb coding format. Before we needed to grab client instance to be able to grab our methods.

Instead now script is above method provider. And MP have all these class that are organized with methods.

You should read uo on the method prover class

Posted

 

  1. The "logo" parameter in the Manifest should be not text, as it is an image, hence logo. tongue.png
  2. As well, you have errors in your script, meaning it won't compile, correctly at least, while the errors exist.

 

This is a simple tree woodcutter. I cannot get rid of the errors because of these options:

 

http://puu.sh/kVlJV/83773f04ea.png

 

http://puu.sh/kVlM2/0495d57901.png

 

http://puu.sh/kVlMY/26529bd576.png

 

What would be alternative options to handling this?

The reason for the error is because your using old osb coding format. Before we needed to grab client instance to be able to grab our methods.

Instead now script is above method provider. And MP have all these class that are organized with methods.

You should read uo on the method prover class

Is the new coding format easier than the old? I need the examples of the new methods converted from my powerchop script. 

Posted

This is a simple tree woodcutter. I cannot get rid of the errors because of these options:

 

http://puu.sh/kVlJV/83773f04ea.png

 

http://puu.sh/kVlM2/0495d57901.png

 

http://puu.sh/kVlMY/26529bd576.png

 

What would be alternative options to handling this?

Is the new coding format easier than the old? I need the examples of the new methods converted from my powerchop script. 

 

http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/

Posted (edited)

I attempted to use that guide but it does not translate well to understand a simple woodcutter from a simple thiever. I managed to fix the issue of the scripts not showing up. I had .jar in a few of the scripts within the OSBot folder, along with multiple old versions of the OSBot folders scattered in my Pc. I deleted the client and everything related to OSBot and re downloaded and problem was fixed. Now I am having personal issues with my powerchops script. After starting the script, this is what it says in the log field: http://puu.sh/kVoj6/4c40353f39.png 

 

I can't grasp the knowledge on how to fix my three errors. Any tips? I just want it to be a simple regular tree cutter.

 

 

http://puu.sh/kVlJV/83773f04ea.png

 

http://puu.sh/kVlM2/0495d57901.png

 

http://puu.sh/kVlMY/26529bd576.png

Edited by Goku1
Posted

No need to define the inventory as something.

 

As in Apeac's tutorial, he simply used:

if (inventory.isFull()) {
Tree entity:

Entity tree = objects.closest("TREE_NAME");
Camera:

Camera.toEntity(tree);
Tell him to use the getter methods instead of the public fields.

Also op you didn't even look through the api. And if you remove the word client where you have most of the errors it should get rid of some errors

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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