forked from IceFire908/RRL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRRL.txt
91 lines (81 loc) · 3.15 KB
/
RRL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
RRL - Reflection Resource Library
Core Include
---------------------------------------------------------
* function SetupRRL: Boolean;
By: Timer
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}
{
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
Copyright (C) 2010 - 2011 by Joe Haddad, all rights reserved.
This file is part of the RRL project (https://github.com/Timer/RRL).
For extended permissions please contact me by E-Mail, [email protected].
}
{$DEFINE RRL}
{$IFDEF SIMBA}
{.include RRL\misc\Simba.wrappers}
{$ENDIF}
procedure r_MarkTime(out i: LongInt); forward;
function r_GetTimeFromMark(const i: LongInt): LongInt; forward;
{.include RRL\core\Mouse.txt}
{.include RRL\core\Globals.txt}
{.include RRL\core\Accounts.txt}
{.include RRL\core\Menu.txt}
{.include RRL\core\Game.txt}
{.include RRL\core\Models.txt}
{.include RRL\core\Interfaces.txt}
{.include RRL\core\Tabs.txt}
{.include RRL\core\Camera.txt}
{.include RRL\core\Characters.txt}
{.include RRL\core\Players.txt}
{.include RRL\core\Player.txt}
{.include RRL\core\Calculations.txt}
{.include RRL\core\Walking.txt}
{.include RRL\core\Path.txt}
{.include RRL\core\NPCs.txt}
{.include RRL\core\Objects.txt}
{.include RRL\core\Inventory.txt}
{.include RRL\core\Bank.txt}
{.include RRL\core\Ground.txt}
{.include RRL\core\Timing.txt}
{.include RRL\core\Randoms.txt}
{.include RRL\core\Text.txt}
function SetupRRL: Boolean;
var
m: LongInt;
begin
m := GetSystemTime;
r_SetMouseSpeed(10);
r_SetModels(False);
r_SetMiniMapAccuracy(False);
r_BuildCalculationTables;
if (not r_LoadHooks) then
begin
Writeln('Failed to load hooks.');
Exit;
end;
if (not r_HooksVersion >= r_ClientVersion) then
begin
WriteLn('Current client version: ' + IntToStr(r_ClientVersion) +
' Current hooks version: ' + IntToStr(r_HooksVersion));
WriteLn('Hooks outdated! Please wait for new hooks to arise.' + #13 +
'Sorry, and goodbye! - Reflection Resource Library [RRL].');
Exit;
end;
R_TAB_NAMES := ['Combat Styles', 'Stats', 'Quest List', 'Achievements',
'Inventory', 'Worn Equipment', 'Prayer List',
'Magic Spellbook', 'Objectives', 'Friends List',
'Ignore List', 'Clan Chat', 'Options', 'Emotes',
'Music Player', 'Notes', 'Exit'];
R_SKILL_NAMES := ['Attack', 'Defence', 'Strength', 'Hitpoints', 'Range',
'Prayer', 'Magic', 'Cooking', 'Woodcutting', 'Fletching',
'Fishing', 'Firemaking', 'Crafting', 'Smithing', 'Mining',
'Herblore', 'Agility', 'Thieving', 'Slayer', 'Farming',
'Runecrafting', 'Hunter', 'Construction', 'Summoning',
'Dungeoneering'];
r_LoadRandoms;
WriteLn('RRL was set up in ' + IntToStr(GetSystemTime - m) + ' ms, loaded ' + IntToStr(Length(r_Hooks)) + ' hooks.');
Result := True;
end;