Results 1 to 13 of 13

Thread: Exp Made

  1. #1
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Exp Made

    How would i make a Function that showed how much EXP had been maded?
    Thanks
    Last edited by rya; 12-13-2009 at 08:30 PM.
    I see Now, says the blind man

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rya View Post
    How would i make a Function that showed how much EXP had been maded?
    Thanks
    maded == made or added, or maybe gained?

    um go to a site and get the XP for the object (www.runehq.com is an example), ex Copper = 17.5 xp per ore

    then do a count of the object in the inventory, or an invcount if nothing else could be in there and go...

    xp_gained := amountobject*XP so in the case of copper it is

    xp_gained := Copper_Count*17.5;

    i hope that makes sense
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    maded == made or added, or maybe gained?

    um go to a site and get the XP for the object (www.runehq.com is an example), ex Copper = 17.5 xp per ore

    then do a count of the object in the inventory, or an invcount if nothing else could be in there and go...

    xp_gained := amountobject*XP so in the case of copper it is

    xp_gained := Copper_Count*17.5;

    i hope that makes sense
    Yea did'nt think of that thanks, and for maded i did not mean to put the d in
    I see Now, says the blind man

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by rya View Post
    Yea did'nt think of that thanks, and for maded i did not mean to put the d in
    That...made me smile
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    SCAR Code:
    Procedure ProgXP;
    var I:Integer;
    Begin
      For I:=0 to HowManyPlayers -1 Do
      Begin
        Case Players[i].Integers[1] Of
          1,2,3: Players[i].Extendeds[1]:=17.5;
          4:     Players[i].Extendeds[1]:=35;
        End;
      End;
    End;
        +''+Padr(FloatToStr((Players[i].integers[80])*(Players[i].Extendeds[1])),5)+''

    Lol, lines from my powerminer, but basically:

    XP per whatever you mined/fished/whatever TIMES How many you got.

  6. #6
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    That...made me smile
    Well im party dyslexic

    YoHoJo Thanks
    I see Now, says the blind man

  7. #7
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't even have to look up anything. Everything is in SRL!
    Look in FindXP.scar
    In some cases it may be easier to just use a number but I wanted to inform you that SRL got some cool things like this.
    But in some other cases it's much easier to use this. Like in my smither I had a good use of it.

    Also looking up the starting xp and then the the xp after is a good idea too(then gained := afterxp - startxp) but it's not so good to do lots of times with color.

  8. #8
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sabzi View Post
    You don't even have to look up anything. Everything is in SRL!
    Look in FindXP.scar
    In some cases it may be easier to just use a number but I wanted to inform you that SRL got some cool things like this.
    But in some other cases it's much easier to use this. Like in my smither I had a good use of it.

    Also looking up the starting xp and then the the xp after is a good idea too(then gained := afterxp - startxp) but it's not so good to do lots of times with color.
    Aren't SRL's get exp functions broken?

  9. #9
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Lol, not ALL of them, but some here and there are broken. From what I've heard FindXP IS broken. But these are two different things.
    1) Finding how much XP you have (FindXP)
    2) Finding how much XP the script got you ^ those calculations up there.

  10. #10
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe the xps are broken a bit .
    I just checked smithing and it was okay. And if it's not okay then correct it and tell it to a dev to commit it .
    I haven't meant any calculation though. Just to get the xp for example for copper.
    And I'm not talking about reflection(maybe you FEAR thought I am talking about it). SRL>Misc>FindXP.scar

  11. #11
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    If GetXP() works, you can do
    SCAR Code:
    StartXP := GetXP(Skill);
    in the beginning and
    SCAR Code:
    NowXP := GetXP(Skill);
    GainedXP := NowXP - StartXP;
    WriteLn('Player has gained '+IntToStr(GainedXP)+' XP');
    in proggressreport

  12. #12
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    What marpis posted, is the best way imo. It's most accurate in any way. If you just do OresMined * ExpPerOre you wouldn't count lamps, etc.
    Ce ne sont que des gueux


  13. #13
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    What marpis posted, is the best way imo. It's most accurate in any way. If you just do OresMined * ExpPerOre you wouldn't count lamps, etc.
    Actually OresMined*ExpPerOre is just fine in a mining script lamps are 10-990 xp so they really don't make any difference if you happen to get a successfully solved random.

    The GetXP the only good way only in fighting scripts.

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
  •