Sythe     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe  
  Cheap RS Gold Store
runescape 07 combat calculator
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-31-2013, 08:11 PM
Forum Addict
 
Join Date: Feb 2011
Posts: 337
 
Default 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=rswi...Combat_Formula (used to get combat formulas without the summoning part)
__________________
Too big.

Last edited by yaswaggin : 03-31-2013 at 08:16 PM.
Copy this message to clipboard Reply With Quote
  #2  
Old 03-31-2013, 08:57 PM
Member
 
Join Date: Mar 2013
Posts: 28
 
Default Re: runescape 07 combat calculator

There is also a web page one at http://2007rs.net/combatcalc.php
Copy this message to clipboard Reply With Quote
  #3  
Old 03-31-2013, 09:05 PM
Forum Addict
 
Join Date: Feb 2011
Posts: 337
 
Default Re: 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)



your calculate doesnt calculate lol:

__________________
Too big.

Last edited by yaswaggin : 03-31-2013 at 09:11 PM.
Copy this message to clipboard Reply With Quote
  #4  
Old 03-31-2013, 10:10 PM
Member
 
Join Date: Mar 2013
Posts: 28
 
Default Re: runescape 07 combat calculator



learn how to use it. It does work.
Copy this message to clipboard Reply With Quote
  #5  
Old 03-31-2013, 11:37 PM
Forum Addict
 
Join Date: Feb 2011
Posts: 337
 
Default Re: 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
__________________
Too big.
Copy this message to clipboard Reply With Quote
  #6  
Old 04-01-2013, 04:53 AM
Active Member
 
Join Date: Oct 2012
Posts: 238
Send a message via Skype™ to King Cudder
 
Default Re: runescape 07 combat calculator

It would be helpful if the hp lvl increases as you increase another lvl
Copy this message to clipboard Reply With Quote
  #7  
Old 04-01-2013, 06:26 AM
Forum Addict
 
Join Date: Feb 2011
Posts: 337
 
Default Re: runescape 07 combat calculator

Quote:
Originally Posted by King Cudder View Post
It would be helpful if the hp lvl increases as you increase another lvl
the user types in his hp level

i typed in 20 as an example
__________________
Too big.
Copy this message to clipboard Reply With Quote
  #8  
Old 04-01-2013, 07:16 AM
Active Member
 
Join Date: Feb 2011
Posts: 221
 
Default Re: 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!
__________________
Vouch Thread

Vouches : 27
Bad Trades : 1
Scammers banned : 3
Copy this message to clipboard Reply With Quote
Reply



RS Gold Flash Sale Cheap RS Gold Store

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 12:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.1