Jump to content

Progressive fighter


Recommended Posts

Posted (edited)

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

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