-
Notifications
You must be signed in to change notification settings - Fork 37
/
osr.simba
136 lines (117 loc) · 3.68 KB
/
osr.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{$DEFINE SRL_OSR}
{$IFNDEF SRL_HINTS}
{$IFDEF HINTS}
{$DEFINE SRL_HAD_HINTS}
{$ENDIF}
{$HINTS OFF}
{$ENDIF}
{$I utils.simba}
procedure TSRL.Setup;
begin
{ override me to setup things }
Self.IsSetup := True;
end;
procedure TSRL.Debug(Bitmap: TMufasaBitmap); overload;
begin
{ override me to debug things }
end;
procedure TSRL.Debug; overload;
var
Bitmap: TMufasaBitmap;
begin
Freeze();
try
Bitmap.FromClient();
Self.Debug(Bitmap);
Bitmap.Debug();
Bitmap.Free();
finally
Unfreeze();
end;
end;
begin
SRL.Setup();
end;
{$SCOPEDENUMS ON}
// The following allows individual include files to compile on their own with just having {$I SRL/osr.simba}
// Summary: It includes this file until the current file is reached.
{$IFNDEF SRL_OCR_INCLUDED} {$I osr/ocr.simba}
{$IFNDEF SRL_MISC_INCLUDED} {$I osr/misc.simba}
{$IFNDEF SRL_ITEMFINDER_INCLUDED} {$I osr/itemfinder/itemfinder.simba}
{$IFNDEF SRL_RSCLIENT_INCLUDED} {$I osr/rsclient.simba}
{$IFNDEF SRL_INTERFACE_INCLUDED} {$I osr/interface.simba}
{$IFNDEF SRL_CHOOSEOPTION_INCLUDED} {$I osr/chooseoption.simba}
{$IFNDEF SRL_CHATBUTTONS_INCLUDED} {$I osr/chatbuttons.simba}
{$IFNDEF SRL_LOGIN_INCLUDED} {$I osr/login.simba}
{$IFNDEF SRL_CHAT_INCLUDED} {$I osr/chat.simba}
{$IFNDEF SRL_MAKE_INCLUDED} {$I osr/make.simba}
{$IFNDEF SRL_GAMETABS_INCLUDED} {$I osr/gametabs.simba}
{$IFNDEF SRL_GAMETAB_INCLUDED} {$I osr/gametab.simba}
{$IFNDEF SRL_OPTIONS_INCLUDED} {$I osr/options.simba}
{$IFNDEF SRL_LOGOUT_INCLUDED} {$I osr/logout.simba}
{$IFNDEF SRL_MINIMAP_INCLUDED} {$I osr/minimap.simba}
{$IFNDEF SRL_MAINSCREEN_INCLUDED} {$I osr/mainscreen.simba}
{$IFNDEF SRL_INTERFACEAREA_INCLUDED} {$I osr/interfacearea.simba}
{$IFNDEF SRL_MM2MS_PROJECTOR_INCLUDED} {$I osr/mm2ms_projector.simba}
{$IFNDEF SRL_MM2MS_INCLUDED} {$I osr/mm2ms.simba}
{$IFNDEF SRL_XPBAR_INCLUDED} {$I osr/xpbar.simba}
{$IFNDEF SRL_INVENTORY_INCLUDED} {$I osr/inventory.simba}
{$IFNDEF SRL_BANK_INCLUDED} {$I osr/bank.simba}
{$IFNDEF SRL_BANKPIN_INCLUDED} {$I osr/bankpin.simba}
{$IFNDEF SRL_GRANDEXCHANGE_INCLUDED} {$I osr/grandexchange.simba}
{$IFNDEF SRL_DEPOSITBOX_INCLUDED} {$I osr/depositbox.simba}
{$IFNDEF SRL_CRAFTSCREEN_INCLUDED} {$I osr/craftscreen.simba}
{$IFNDEF SRL_WALKER_MAP_INCLUDED} {$I osr/walker/walker_map.simba}
{$IFNDEF SRL_WALKER_INCLUDED} {$I osr/walker/walker.simba}
{$IFNDEF SRL_STATS_INCLUDED} {$I osr/stats.simba}
{$IFNDEF SRL_EQUIPMENT_INCLUDED} {$I osr/equipment.simba}
{$IFNDEF SRL_ANTIBAN_INCLUDED} {$I osr/antiban.simba}
{$IFNDEF SRL_COMBAT_INCLUDED} {$I osr/combat.simba}
{$IFNDEF SRL_MAGIC_INCLUDED} {$I osr/magic.simba}
{$IFNDEF SRL_PRAYER_INCLUDED} {$I osr/prayer.simba}
{$IFNDEF SRL_KEYBINDINGS_INCLUDED} {$I osr/keybindings.simba}
{$SCOPEDENUMS OFF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$ELSE}{$ENDIF}
{$IFDEF SRL_HAD_HINTS}
{$HINTS ON}
{$ENDIF}
procedure TSRL.Setup; override; // Called first. Don't setup multiple times.
begin
if Self.IsSetup then
Exit;
inherited;
end;