Jump to content

Paying for help writing a simple script.


Recommended Posts

Posted

Hi guys, I want to learn to write my own scripts however I am struggling understanding the API and how to implement certain functions.

I've decided I can't do it by myself and would like to know if anyone would be willing to walk me through writing my own script. It's a very simple idea and believe it's a great place to start.

If you are interested and can help me please pm me. I don't have a lot of knowledge so please bear that in mind. Thank you.

Posted

 

Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API.

  • Like 1
Posted

Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API.

 

 hmm..got any snippets you can show me of what you cannot understand?

 

you can post the code like this:

tyyfxzl.gif

  • Like 1
Posted

Ok so with this script I can see what they are doing, I understand how this is supposed to work. What I do not understand is how do you know what to type when wanting to interact with the client.

public boolean interactItems(String item1, String item2) throws InterruptedException {
        if (!this.bank.isOpen() && !this.players.myPlayer().isAnimating() && this.inventory.getItem(new String[]{item1}).interact(new String[0])) {
            return this.inventory.getItem(new String[]{item2}).interact(new String[0]);
        }
        return false;
case 2: {
                if (this.amIAnimating() && this.players.myPlayer().isMoving()) break;
                this.bank.open();
                if (this.sweetcorn && !this.inventory.contains(new int[]{this.rawSweetcorn})) {
                    this.state = "banking";
                    if (!this.inventory.isEmpty()) {
                        this.bank.depositAll();

What im really trying to understand is where do you learn what to interact with. This script was the tuna potatoes script. The code snippets such as this.amIAnimating

or state banking. What is animating do animations have different codes or are they all the same?

 

Im sure its second nature to you but when starting this is really my only issue.

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...