Jump to content

Progressive fighter


Kramnik

Recommended Posts

Hello, trying to make a very simple progressive fight which would get me base 10s or 20s combat stats, found my older script when I tried to make it but some how its not working. After getting 5 Str and swithing to attack he keeps on training attack. Am I missing else if logic here? I am pretty sure it I put everything under one if with else it would work, but I thought else ifs would look more tidy

{if (str < 5) {
                getTabs().open(Tab.ATTACK);
                sleep(1000);
                if (config != 1) {
                    modeStr.interact("Lunge");
                    sleep(random(3000, 7000));
                    return 500;
                }
        } else if (atk < 5) {
            getTabs().open(Tab.ATTACK);
            sleep(1000);
            if (config != 0){
                modeAtk.interact("Stab");
                sleep(random(3000, 7000));
            }
        } else if (str < 10) {
            getTabs().open(Tab.ATTACK);
            sleep(1000);
            if (config != 1) {
                modeAtk.interact("Lunge");
                sleep(random(3000, 7000));

            }

        } else if (atk < 10) {
            getTabs().open(Tab.ATTACK);
            sleep(1000);
            if (config != 0){
                modeAtk.interact("Stab");
                sleep(random(3000, 7000));
            }


        } else if (def < 10) {
            getTabs().open(Tab.ATTACK);
            sleep(1000);
            if (config != 3) {
                modeDef.interact("Block");
                sleep(random(3000, 7000));
            }


        } else {
            getTabs().open(Tab.ATTACK);
            sleep(1000);
            if (config != 1) {
                modeStr.interact("Stab");
                sleep(random(3000, 7000));
            }

 

Edited by kramnik
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...