Boxing hit calculator

Discussion in 'RuneScape 2007 General' started by Pikachu, Jun 22, 2016.

Boxing hit calculator
  1. Unread #1 - Jun 22, 2016 at 3:18 PM
  2. Pikachu
    Joined:
    Jan 27, 2016
    Posts:
    79,158
    Referrals:
    14
    Sythe Gold:
    29,253
    Vouch Thread:
    Click Here
    Discord Unique ID:
    1053278217252900944
    Discord Username:
    abm_8
    Verified Ironman I saw Matthew Member of the Month Winner Detective Toast Wallet User
    Sythe's 15th Anniversary March Madness May the 4th Be With You Nitro Booster (2) Two Factor Authentication User Staff of the Quarter Winner Sythe's 20th Anniversary

    Pikachu Runewager.com - RuneScape Gambling
    Global Moderator Bond Holder Cool Cat Steve

    Boxing hit calculator

    This is an open source boxing calculator, it will only calculate max hits for boxing and nothing else.

    It's made in java.

    Plan on adding more to it like whips etc,

    Don't ask why I used all if and else statement, I didn't think of getting maths for strength max hit, did for rest.

    package javaapplication3;
    import java.util.Scanner;
    public class JavaApplication3 {
    public static void main(String[] args) {
    double Atkboost, strboost, maxhit, strenght;
    Scanner kb = new Scanner(System.in);
    System.out.println("What is your combat style? Accurate = 1 , Kick = 2 , defensive = 3");
    int Hey = kb.nextInt();
    if (Hey == 2) {
    //for kick
    System.out.println("What is your strenght level?");
    int str = kb.nextInt();
    if (str <= 23) {
    System.out.println("Your max hit is 3");
    } else if (str <= 33) {
    System.out.println("Your max hit is 4");
    } else if (str <= 43) {
    System.out.println("Your max hit is 5");
    } else if (str <= 53) {
    System.out.println("Your max hit is 6");
    } else if (str <= 63) {
    System.out.println("Your max hit is 7");
    } else if (str <= 73) {
    System.out.println("Your max hit is 8");
    } else if (str <= 83) {
    System.out.println("Your max hit is 9");
    } else if (str <= 93) {
    System.out.println("Your max hit is 10");
    } else if (str <= 99) {
    System.out.println("Your max hit is 11?");
    } else if (str <= 100) {
    System.out.println("this doesn't work");
    }
    //claculates for accurate
    } else if (Hey == 1) {
    System.out.println("What is your strenght level?");
    int stre = kb.nextInt();
    if (stre <= 27) {
    System.out.println("Your max hit is 3");
    } else if (stre > 28)
    {
    int level;
    level = 10;
    double hit = stre*0.1+1.3;
    System.out.println(hit);
    }
    //clacs the defence
    } else if (Hey == 3) {
    System.out.println("What is your strenght level?");
    int stre = kb.nextInt();
    if (stre <= 27) {
    System.out.println("Your max hit is 3");
    } else if (stre > 28)
    {
    int level;
    level = 10;
    double hit = stre*0.1+1.3;
    System.out.println(hit);
    }
    }
    }
    }

    package javaapplication3;
    import java.util.Scanner;
    public class JavaApplication3 {
    public static void main(String[] args) {
    double Atkboost, strboost, maxhit, strenght;
    Scanner kb = new Scanner(System.in);
    System.out.println("What is your combat style? Accurate = 1 , Kick = 2 , defensive = 3");
    int Hey = kb.nextInt();

    if (Hey == 3) {
    System.out.println("What is your strenght level?");
    int stre = kb.nextInt();
    double hit = stre*0.1+1.3;
    System.out.println(hit);

    } else if (Hey == 2) {
    System.out.println("What is your strenght level?");
    int stre = kb.nextInt();
    double hit = stre*0.1+1.6;
    System.out.println(hit);

    } else if (Hey == 1) {
    System.out.println("What is your strenght level?");
    int stre = kb.nextInt();
    double hit = stre*0.1+1.3;
    System.out.println(hit);
    }
    }
     
    Last edited: Jun 22, 2016
  3. Unread #2 - Jun 22, 2016 at 3:40 PM
  4. Meteor
    Joined:
    Mar 3, 2015
    Posts:
    2,852
    Referrals:
    2
    Sythe Gold:
    753
    born 2late 2 explore the earth b0rn 2soon 2 explore the galaxy born just in time 2 browse sith d0t org Toast Wallet User Lanturn

    Meteor Grand Master
    Retired Global Moderator

    Boxing hit calculator

    Pretty complicated for such a simple formula :p It's just floor((str+16)/10) for aggressive mode and floor((str+13)/10) for accurate/defensive mode.
     
  5. Unread #3 - Jun 22, 2016 at 3:42 PM
  6. Pikachu
    Joined:
    Jan 27, 2016
    Posts:
    79,158
    Referrals:
    14
    Sythe Gold:
    29,253
    Vouch Thread:
    Click Here
    Discord Unique ID:
    1053278217252900944
    Discord Username:
    abm_8
    Verified Ironman I saw Matthew Member of the Month Winner Detective Toast Wallet User
    Sythe's 15th Anniversary March Madness May the 4th Be With You Nitro Booster (2) Two Factor Authentication User Staff of the Quarter Winner Sythe's 20th Anniversary

    Pikachu Runewager.com - RuneScape Gambling
    Global Moderator Bond Holder Cool Cat Steve

    Boxing hit calculator

    Not really If I didn't do add the if else statement and just did the formula it be alot more basic =p
     
< odd staking | Looking for people to play with >

Users viewing this thread
1 guest


 
 
Adblock breaks this site