Jump to content

Tip.It Combat Calculator Question


Leader Rob

Recommended Posts

Hello, i am trying to create a combat calculator based on the old forum for my clan, to act as a clan entry calculator, i used the formula i acquired from the Runescape Wikia

 

which is this one:

ea94cf83a87ec43cb246d541a6460137.png

 

but i have found that my calculator is out compared to Tip.it's by a few numbers after the decimal place, and i was wondering if i was using the right formua.

 

here is the calculator for my clans website

 

http://www.assentedorder.com/combat

Link to comment
Share on other sites

Do you intentionally want the old 138 combat formula? With EoC the combat formula was changed incredibly (much much easier, however). You'll see a new combat calculator for Tip.It out in the next day or so. :).

09144a99bb.png

Link to comment
Share on other sites

When the site returns it'll be the defence level + highest combat skill + two.

 

As for the old formula, I really can't grab that for you at the moment because our tools are also temporarily down. :P.

 

when the tools are back up, will you post it for me please?

Link to comment
Share on other sites

I was asleep and by the time I had woken up they'd released my new one. I didn't get a chance to grab the old one.

 

I know I have it in a script somewhere on my old HDD. If I come across it, I'll be sure to post it!

09144a99bb.png

Link to comment
Share on other sites

I was asleep and by the time I had woken up they'd released my new one. I didn't get a chance to grab the old one.

 

I know I have it in a script somewhere on my old HDD. If I come across it, I'll be sure to post it!

 

cheers

Link to comment
Share on other sites

Though I don't have the exact formula used for our calculator, I believe the calculation you need is:

 

0.4875 * Ranged OR 0.4875 * Magic OR 0.325 * Strength + 0.325 * Attack

 

(determined by the highest of 1.5 x ranged, 1.5 x magic, or Strength + Attack)

 

+ 0.25 * Defence + 0.25 * Constitution + 0.25 * (Summoning/2) + 0.25 * (Prayer/2)

 

This is basically the formula you gave. However, note that when calculating combat levels from Summoning and Prayer, truncate any remainder after dividing by 2.

 

E.g. 97 Summoning would count for 12 combat levels, not 12.125, and only 98 Summoning would count for 12.25 combat levels. 97 Summoning and 97 Prayer would add together to give only 24 combat levels, but 96 Summoning and 98 Prayer would give 24.25 combat levels.

 

Hope this answers your query.

6Ij0n.jpg

In real life MMO you don't get 99 smithing by making endless bronze daggers.

Link to comment
Share on other sites

I have been getting help off htmlforums.com for this code thats being designed and i posted your reply and this is what the person helping me said

 

 

Hi there Robertjones6

The calculation that you have given is exactly the same as the one given here...

 

 

....when calculating combat levels from Summoning and Prayer, truncate any remainder after dividing by 2.

 

97 Summoning would count for 12 combat levels, not 12.125,

and only 98 Summoning would count for 12.25 combat levels.

97 Summoning and 97 Prayer would add together to give only 24 combat levels,

but 96 Summoning and 98 Prayer would give 24.25 combat levels

What do you mean by truncate?

 

 

Javascript has Math.floor(), Math.ceil() and Math.round(), and also toFixed() can specify th number of decimal places.

 

Sorry, but I cannot see the mathematical pattern that would give..

 

96/8=12

97/8=12

98/8=12.25

 

What would be the values of...

 

85/8

60/8

53/8

 

...for example?

 

Can you elucidate for me?

 

 

can you shed any light into how i should reply

Link to comment
Share on other sites

Sorry, but I cannot see the mathematical pattern that would give..

 

96/8=12

97/8=12

98/8=12.25

 

The part of the formula you're looking for is actually:

 

Floor(Summon/2)/4, so Floor(98/2)/4 = 49/4 = 12.25

However Floor(97/2) = Floor(48.5)/4 = 48/4 = 12

 

If you throw in I assume math.floor(Summon/2)/4 + math.floor(prayer/2)/4 in place of the existing summon and prayer terms it should fall out nicely

safersbanner.png

Play Safe! smile.gif - Got useful information for the tip.it website? Post here!

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.