Jump to content

Paying for help writing a simple script.


sirjechtx

Recommended Posts

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.

Link to comment
Share on other sites

 

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

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

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.

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