-
Notifications
You must be signed in to change notification settings - Fork 0
/
srl.simba
88 lines (72 loc) · 2.54 KB
/
srl.simba
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
(*
SRL
===
The SRL file is the most important file in SRL. It's the file included in
every script that requires an SRL function. Without this file included, the
SRL library isn't available to you.
*)
{$include_once lib/utilities/types/types.simba}
{$include_once lib/utilities/time.simba}
{$include_once lib/utilities/drawing.simba}
{$include_once lib/utilities/pixelshift.simba}
{$include_once lib/utilities/color.simba}
{$include_once lib/utilities/math.simba}
{$include_once lib/core/globals.simba}
{$include_once lib/core/mouse.simba}
{$include_once lib/core/debug.simba}
{$include_once lib/core/text.simba}
{$include_once lib/core/players.simba}
{$include_once lib/core/client.simba}
{$include_once lib/interfaces/gametabs/gametab.simba}
{$include_once lib/interfaces/gametabs/backpack.simba}
{$include_once lib/interfaces/gametabs/stats.simba}
{$include_once lib/interfaces/lobby/lobby.simba}
{$include_once lib/interfaces/lobby/worlds.simba}
{$include_once lib/interfaces/mainscreen.simba}
{$include_once lib/interfaces/actionbar.simba}
{$include_once lib/interfaces/minimap.simba}
{$include_once lib/interfaces/bankscreen.simba}
{$include_once lib/interfaces/pinscreen.simba}
{$include_once lib/interfaces/depositbox.simba}
{$include_once lib/interfaces/options.simba}
{$include_once lib/interfaces/chatbox.simba}
{$include_once lib/interfaces/conversationbox.simba}
{$include_once lib/interfaces/production.simba}
{$include_once lib/interfaces/chooseoption.simba}
{$include_once lib/interfaces/lodestone.simba}
{$include_once lib/interfaces/toolscreen.simba}
{$include_once lib/interfaces/progressscreen.simba}
{$include_once lib/interfaces/powerscreen.simba}
{$include_once lib/misc/srlstats.simba}
{$include_once lib/misc/antiban.simba}
{$include_once lib/misc/items.simba}
{$include_once lib/tesseract/tesseract.simba}
{$IFDEF SMART}
{$include_once lib/misc/smart.simba}
{$ENDIF}
{$f+}
function setupSRL(): boolean;
var
t := getSystemTime();
begin
print('setupSRL()', TDebug.HEADER);
print('Setting up SRL...');
setSupressExceptions(true);
{$IFNDEF SMART}
activateClient();
{$ELSE}
initSmart(smartForceNewClient);
if (smartEnableDrawing) then
smartSetupDrawing();
{$ENDIF}
if (waitClientReady()) then
print('Client is ready.')
else begin
print('Client is taking too long to load, terminating...');
print('setupSRL(): '+toStr(result), TDebug.FOOTER);
terminateScript();
end;
result := true;
print('Setup SRL in '+toStr(getSystemTime() - t)+'ms.');
print('setupSRL(): '+toStr(result), TDebug.FOOTER);
end;