PDA

View Full Version : THiscores.simba



Obscurity
03-04-2016, 12:22 AM
Not sure if anything like this existed. I saw something like it by CynicRus; here (https://villavu.com/forum/showthread.php?t=105416) and Brandon's copy which no longer works.

Anyways, a sample:
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:

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.

27213

Kyle
03-04-2016, 01:44 AM
Woah, your standards are even more goofy now haha. Nice work :)

Kasi
03-04-2016, 02:35 AM
Can't you use array of TSkill?

KeepBotting
03-04-2016, 02:53 AM
Yuck, capitalized bold keywords... (n)

Other than that, nice job. Can visualize a lot of use cases for something like this.

Obscurity
03-04-2016, 11:07 AM
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.