Page 1 of 2 12 LastLast
Results 1 to 25 of 27

Thread: Runescape CMB lvl formule

  1. #1
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default Runescape CMB lvl formule

    Someone please post here forumule to CALC RuneScape combat lvl forumle.. NOT PHP script.. i need all lvl includeing Summoning.
    it should be with ATTACK, STRENGHT, DEFENCE, HITPOINTS, PRAYERS, RANGE, MAGE and SUMMONING.
    in one formule. need just math simple. not scripting

  2. #2
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

  3. #3
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    You should be able to understand my function, if not, highest out of these formulas:


    I made a new script, check it out!.

  4. #4
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    here is 3 formules, cmb range and mage.. i need one with all skills here is
    (maxe(maxe(0.25*((atk+str) + ((atk+str) / 3)+def+hp+(0.5*pray)+(0.5*sum)), 0.25*(2*range+def+hp+(0.5*pray)+(0.5*sum))), (0.25*(2*mage+def+hp+(0.5*pray)+(0.5*sum)))));

    and it work on scar.. i wanna use on visual basic.. that 3 formules i was found in google.. but i cant do one formule whit all three skill, range mage and summoning... and sure main cmb skills...

  5. #5
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Quote Originally Posted by Laimonas171 View Post
    here is 3 formules, cmb range and mage.. i need one with all skills here is
    (maxe(maxe(0.25*((atk+str) + ((atk+str) / 3)+def+hp+(0.5*pray)+(0.5*sum)), 0.25*(2*range+def+hp+(0.5*pray)+(0.5*sum))), (0.25*(2*mage+def+hp+(0.5*pray)+(0.5*sum)))));

    and it work on scar.. i wanna use on visual basic.. that 3 formules i was found in google.. but i cant do one formule whit all three skill, range mage and summoning... and sure main cmb skills...
    You know how the combat system works?
    The combat system is class-based, basically either your range, mage, or atk+str decide what your combat level will be. This class-combat level is then added to the base combat level, which is made of def, hp, pray and summoning. The highest class-combat level is used.
    So, if you got a high mage level, your range/melee skills wont make a difference to your combat level, so it isn't used.
    And if you know a bit of visual basic, you should be able to convert my scar version to VB, maxe is basically if a > b then result := a else result := b;
    I made a new script, check it out!.

  6. #6
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    You know how the combat system works?
    The combat system is class-based, basically either your range, mage, or atk+str decide what your combat level will be. This class-combat level is then added to the base combat level, which is made of def, hp, pray and summoning. The highest class-combat level is used.
    So, if you got a high mage level, your range/melee skills wont make a difference to your combat level, so it isn't used.
    And if you know a bit of visual basic, you should be able to convert my scar version to VB, maxe is basically if a > b then result := a else result := b;
    oh thank you

  7. #7
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    67
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This formula does not seem to be 100% accurate.

    One of my accounts has the following stats...
    atk = 40;
    str = 52;
    def = 1;
    hp = 43;
    pray = 1;
    sum = 1;
    range = 1;
    mage = 15;

    The script then gives the following results...
    Internal CB level: 41.75
    Real CB level: 41

    Problem is the account is level 40.

  8. #8
    Join Date
    Nov 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think everyone knows this already but gj for trying

  9. #9
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Quote Originally Posted by The_Scripts View Post
    This formula does not seem to be 100% accurate.

    One of my accounts has the following stats...
    atk = 40;
    str = 52;
    def = 1;
    hp = 43;
    pray = 1;
    sum = 1;
    range = 1;
    mage = 15;

    The script then gives the following results...
    Internal CB level: 41.75
    Real CB level: 41

    Problem is the account is level 40.
    Got the 'bug'.
    Basically, RS uses 13/10 (= 1.3), which I thought that it was a mistake and they meant 4/3 (= 1.3333 etc.), so I made the 3/2 * 4/3 = 12/6 = 2. But it is 1.3*1.5 = 1.95, so that caused a bit of a difference. Melee they used the normal 13/10, but I made that 4/3 too.
    And I forgot the 'odd prayer levels don't count', fixed that too
    Gives now cb 40.9 = 40
    I made a new script, check it out!.

  10. #10
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    ok i made something.. for me it calcs very good

    VB6 calc Source in Attachment

  11. #11
    Join Date
    Aug 2007
    Location
    irc://irc.rizon.net:6667/srl
    Posts
    1,566
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Laimonas171 View Post
    ok i made something.. for me it calcs very good

    VB6 calc Source in Attachment
    I just started VB, but instead of having that giant area to the side, couldn't you have just used tooltips when you mouse over each skill rather than showing txt?

    "Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much because they live in the gray twilight that knows neither victory nor defeat."
    — Theodore Roosevelt

  12. #12
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by [-jesus-] View Post
    I just started VB, but instead of having that giant area to the side, couldn't you have just used tooltips when you mouse over each skill rather than showing txt?
    if i good understand question then you double click on item in my spot it's textboxes

    in right side of script window you see Change on most of other objects it is Click
    Chouse MouseMove

    then write

    Code:
    Label1.caption = "your text"
    i made it on all text boxes and on the main form. if you have more questions or i can help you just text me
    sorry for bad english.

  13. #13
    Join Date
    Apr 2006
    Location
    I live in NH
    Posts
    611
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This may or may not help, but the most accurate combat formula (that I could find) is moderated by a kid on the RuneScape forums.

    http://forum.runescape.com/forums.ws...3330028,goto,1

    I also based my calculations off of his when I wrote my stats grabber.
    DFM Form Parser - SCAR Obfuscator - Master Keylogger - RuneScape Stats Grabber - Index Cards

  14. #14
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Hoi :
    SCAR Code:
    function combatLevel(attack, defence, strength, hp, prayer, ranged, magic, summoning: integer): Extended;
    var
      Base, melee, ranger, mage: extended;
    begin
      Base := defence + hp + floor(prayer / 2) + floor(summoning / 2)) * 0.25;

      melee := (attack + strength) * 0.325;
      ranger := floor(ranged * 1.5) * 0.325;
      mage := floor(magic * 1.5) * 0.325;

      Result := Base + Max(Max(melee, ranger), mage);
    end;

    This has not been tested, Max requires integers so I'm pretty sure this will give a error, just need to change extended to integers. I rather have a end result of extended though. So a > setup might have to be implemented.
    Last edited by Narcle; 05-29-2009 at 07:43 AM.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  15. #15
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Code:
    function combatLevel(attack, defence, strength, hitpoints, prayer, ranged, magic, summoning) {
    	var advance;
    	
    	var base = (defence + hitpoints + Math.floor(prayer / 2) + Math.floor(summoning / 2)) * 0.25;
    
    	var melee = (attack + strength) * 0.325;
    	var range = Math.floor(ranged * 1.5) * 0.325;
    	var mage = Math.floor(magic * 1.5) * 0.325;
    	var max = Math.max(melee, range, mage);
    	
    	if(max == melee)
    		var type = 'Warrior';
    	else if(max == range)
    		var type = 'Ranger';
    	else if(max == mage)
    		var type = 'Mage';
    
    	advance = '<div style="text-align: left;">Combat Level: <span class="value"><b>'+Math.round((base + max) * 100) / 100+'</b> '+type+'</span></div><br />';
    stolen from zybez's calculator... thank goodness it was in html

    Edit: btw, the calculations part is in javascript...

  16. #16
    Join Date
    Dec 2008
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In vb.net (maybe 6 too) it should look like this:
    [NOT TESTED]
    dim deflvl as integer = 99
    dim hitlvl as integer = 99
    dim praylvl as integer = 99
    dim sumlvl as integer = 99

    dim def as integer = deflvl * 100
    dim hit as integer = hitpoints * 100
    dim pray as integer
    dim sum as integer

    if pralvl mod 2 then
    pray = (praylvl - 1) * 50
    else
    pray = praylvl *50
    end if

    if sumlvl mod 2 then
    sum = (sumlvl - 1) * 50
    else
    sum = sumlvl *50
    end if

    dim base as integer = def + hit + pray + sum
    msgbox ("Base found, it is: " & base)
    [/NOT TESTED]

    Keep going yourself

    cant test, dont have vb at this comp

    EDIT: Based on this: http://forum.runescape.com/forums.ws...3330028,goto,1 as Ron mentioned

  17. #17
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function CombatLevel(Attack, Defence, Strength, Hitpoints, Prayer, Ranged, Magic, Summoning : integer) : integer;
    var
      E1, E2, E3 : extended;
      I1, I2, I3 : integer;
      Base, Maxx : extended;
    begin
      Base := (Defence + Hitpoints + Floor(Prayer /2) + Floor(Summoning / 2)) * 0.25;
      E1 := (Attack + Strength) * 0.325;
      E2 := Floor(Ranged * 1.5) * 0.325;
      E3 := Floor(Magic * 1.5) * 0.325;
      Maxx := MaxE(I1, MaxE(I2, I3));
      Result := (Round(Base + Maxx) * 100) / 100;
    end;

    There you go, ported from JavaScript (mormonman's post) to SCAR/Pascal .
    Last edited by Da 0wner; 05-30-2009 at 06:37 AM. Reason: wtf, java lol? javascript :p

  18. #18
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    No one noticed that this was a gravedig?

  19. #19
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I did, but it was gravedug by a developer so whatever.

  20. #20
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Yeah same and everyone seemed to be putting good input in instead of spam so...

    T~M

  21. #21
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Especially my function, works fine .

  22. #22
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    ported from Java (mormonman's post)

    Hahahahahahahahahahaha.


  23. #23
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wat?

  24. #24
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Wat?
    I see no Java anywhere on this page. There's some Javascript, but no Java. Huge difference in the two.

  25. #25
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, JavaScript, that's what I thought it was . I didn't look on the page just copied what mormonman said (he said it was java >.>). Works fine though.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. RuneScape Lag?
    By botsrs in forum NOTA
    Replies: 3
    Last Post: 11-22-2008, 11:22 PM
  2. omg the new runescape??
    By Scaper in forum News and General
    Replies: 1
    Last Post: 07-01-2008, 12:39 PM
  3. Runescape 3 :)
    By bashbro900 in forum News and General
    Replies: 9
    Last Post: 04-29-2008, 04:39 PM
  4. HELp in Runescape please!!!!!
    By dandaman in forum RuneScape News and General
    Replies: 11
    Last Post: 10-26-2007, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •