Jump to content

Client Does Not Want to Show My Local Scripts


Goku1

Recommended Posts

@ScriptManifest(name = "ScriptName", author = "YourName", version = 1.0, info = "", logo = "") 
public class YourScript extends Script {

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

 

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

 

  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. 

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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