runescape 07 combat calculator

Discussion in 'RuneScape 2007 General' started by yaswaggin, Mar 31, 2013.

runescape 07 combat calculator
  1. Unread Mar 31, 2013 at 3:11 PM
  2. Joined:
    Feb 21, 2011
    Posts:
    340
    Referrals:
    0
    yaswaggin

    yaswaggin Forum Addict

    runescape 07 combat calculator

    requirements: need an IDE to copy and paste this code so you can run and compile it


    also save file as RunescapeCombatCalculator since that is the class name.

    Code:
    
    //Programmed by: yaswaggin
    
    import java.util.Scanner;
    
    public class RunescapeCombatCalculator
    {
    	public static void main(String[] args)
    	{
    		int userAttack, userDefense, userStrength, userMage, userRange, userPrayer, userHealthPoints = 10;
    		double warrior, ranger, mager, baseCombatLevel, warriorCombatLevel, rangeCombatLevel, mageCombatLevel;
    
    		Scanner keyboard = new Scanner(System.in);
    
    		System.out.print("Enter your attack level: ");
    		userAttack= keyboard.nextInt();
    
    		System.out.print("Enter your defense level: ");
    		userDefense= keyboard.nextInt();
    
    		System.out.print("Enter your strength level: ");
    		userStrength= keyboard.nextInt();
    
    		System.out.print("Enter your mage level: ");
    		userMage= keyboard.nextInt();
    
    		System.out.print("Enter your range level: ");
    		userRange= keyboard.nextInt();
    
    		System.out.print("Enter your prayer level: ");
    		userPrayer = keyboard.nextInt();
    
    		System.out.print("Enter your HP level: ");
    		userHealthPoints = keyboard.nextInt();
    
    		baseCombatLevel = ((userDefense + userHealthPoints + (userPrayer/2)) * 0.25);
    		warrior = (userAttack + userStrength) * 0.325;
    		ranger = (3/2 * userRange) * 0.325;
    		mager =  (3/2 * userMage) * 0.325;
    
    
    		if (warrior > mager  && warrior > ranger)
    		{
    			warriorCombatLevel = baseCombatLevel + warrior;
    			System.out.println("\nYour combat level is " + warriorCombatLevel);
    		}
    
    		if (mager > warrior && mager > ranger)
    		{
    			mageCombatLevel = baseCombatLevel + mager;
    			System.out.println("\nYour combat level is " + mageCombatLevel);
    		}
    
    		if (ranger > warrior && ranger > mager)
    		{
    			rangeCombatLevel = baseCombatLevel + mager;
    			System.out.println("\nYour combat level is " + rangeCombatLevel);
    		}
    	}
    }
    
    
    
    
    
    

    sources:

    http://services.runescape.com/m=rswiki/en/Combat_Formula (used to get combat formulas without the summoning part)
     
  3. Unread Mar 31, 2013 at 3:57 PM
  4. Joined:
    Mar 1, 2013
    Posts:
    28
    Referrals:
    0
    2007rs

    2007rs Member
    Banned

    runescape 07 combat calculator

  5. Unread Mar 31, 2013 at 4:05 PM
  6. Joined:
    Feb 21, 2011
    Posts:
    340
    Referrals:
    0
    yaswaggin

    yaswaggin Forum Addict

    runescape 07 combat calculator

    my calculator might not be fancy like yours, but it actually calculates, and is accurate: (notice how combat level is 38.5, that means its 38, but halfway to 39)

    [​IMG]

    your calculate doesnt calculate lol:

    [​IMG]
     
  7. Unread Mar 31, 2013 at 5:10 PM
  8. Joined:
    Mar 1, 2013
    Posts:
    28
    Referrals:
    0
    2007rs

    2007rs Member
    Banned

    runescape 07 combat calculator

    [​IMG]

    learn how to use it. It does work.
     
  9. Unread Mar 31, 2013 at 6:37 PM
  10. Joined:
    Feb 21, 2011
    Posts:
    340
    Referrals:
    0
    yaswaggin

    yaswaggin Forum Addict

    runescape 07 combat calculator

    haha, i see why yours didnt work

    i used internet explorer, thats why.

    tried it on google chrome and it works
     
  11. Unread Mar 31, 2013 at 11:53 PM
  12. Joined:
    Oct 20, 2012
    Posts:
    238
    Referrals:
    0
    King Cudder

    King Cudder Active Member
    Banned

    runescape 07 combat calculator

    It would be helpful if the hp lvl increases as you increase another lvl
     
  13. Unread Apr 1, 2013 at 1:26 AM
  14. Joined:
    Feb 21, 2011
    Posts:
    340
    Referrals:
    0
    yaswaggin

    yaswaggin Forum Addict

    runescape 07 combat calculator

    the user types in his hp level

    i typed in 20 as an example
     
  15. Unread Apr 1, 2013 at 2:16 AM
  16. Joined:
    Feb 11, 2011
    Posts:
    244
    Referrals:
    0
    Aphexes

    Aphexes Active Member
    Banned

    runescape 07 combat calculator

    Very useful. I used to use the one off of RuneHQ. Not sure if it's necessarily the same anymore. But thanks for posting!
     
< Bots on Rs07 | Old school Bot On Facebook! >

Users viewing this thread
1 guest