Results 1 to 6 of 6

Thread: XP to be considered as a decimal?

  1. #1
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default XP to be considered as a decimal?

    I'm not quite sure where to post this or if it's been menioned before but.. should the function stats_IncVariable(varName: String, value: Integer) be changed so that 'value' is an extended type? This would encompass experience points with decimals.

    Otherwise, I'll quite happily round my decimal to an integer

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  2. #2
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Why?

    Rs counts xp to round numbers...

  3. #3
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    That's not what it says on the wiki :S I don't believe you are correct, because I think internally, they are decimals.. Ever made something like cannonballs? The xp counter alternates between 25 and 26 xp points. Which would mean you are give 25-point-something xp for each bar..

    I don't really mind though :P It'd just improve accuracy hahah

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  4. #4
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    You can gain half exps like as you mentioned, cannonballs. But they are displayed as integers, even on the stats tab, it doesn't say xxxxx.5 till you make the next ball.

    If you don't need to know the decimal in-game, there's no reason to need to know it from a script. Also, if it was extended, the only way it'd know if it gained a decimal of experience would be if there was a list of everything that can give .5 or w/e of exp. You can't grab this info from the game as it's displayed rounded.

    Not worth the hassle of doing that over whether its 25.5 or 25 then 26

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  5. #5
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Just Inc your xp by 25 every other time and 26 every another.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Simba Code:
    var
      XPMod: Integer;

    procedure updateWithHalfMod(var x: Integer);
    begin
      x := x + XPMod;
      XPMod := (XPMod + 1) mod 2;
    end;
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Posting Permissions

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