Results 1 to 5 of 5

Thread: THiscores.simba

  1. #1
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default THiscores.simba

    Not sure if anything like this existed. I saw something like it by @CynicRus; here and Brandon's copy which no longer works.

    Anyways, a sample:
    Simba Code:
    Program Sample;

    {$i THiscores.simba}

    Var Hiscores : THiscores;

    Begin
      If Hiscores.Get('Far Quie') Then
      Begin
        ClearDebug();
        WriteLN('Far Quie:');
        WriteLN('-----------------------------------');
        WriteLN('Defence Experience:                ', Hiscores.Defence.Experience);
        WriteLN('Barbarian Assault Collectors Rank: ', Hiscores.Barbarian_Assault.Collectors.Rank);
        WriteLN('Dominion Tower Score:              ', Hiscores.Dominion_Tower.Score);
        WriteLN('Herblore Level:                    ', Hiscores.Herblore.Level);
        WriteLN('Slayer Rank:                       ', Hiscores.Slayer.Rank);
        WriteLN('-----------------------------------');
      End;
    End.

    Output:
    Code:
    Far Quie:
    -----------------------------------
    Defence Experience:                200000000
    Barbarian Assault Collectors Rank: 0
    Dominion Tower Score:              5133009
    Herblore Level:                    99
    Slayer Rank:                       1389
    -----------------------------------
    Successfully executed.
    Yes, some of the names seem long, but I just went word for word off of the RuneScape hiscores, like Cabbage_Facepunch_Bonanza_5_Game_Average.

    THiscores.Get( Username : string) : Boolean; will return true if the player was found.

    THiscores.simba




    Skype: obscuritySRL@outlook.com

  2. #2
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Woah, your standards are even more goofy now haha. Nice work
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  3. #3
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Can't you use array of TSkill?

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Yuck, capitalized bold keywords... (n)

    Other than that, nice job. Can visualize a lot of use cases for something like this.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  5. #5
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    G'ah. No pleasing you, Kyle. :-P.

    Just tried to make it easier to read. Could go back to my old ways. ;-).

    Could, Kasi, since that would have been much easier, but wanted to make it as easy to use as possible.




    Skype: obscuritySRL@outlook.com

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
  •