-
Notifications
You must be signed in to change notification settings - Fork 0
/
SRL.simba
165 lines (149 loc) · 6.43 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
//----------------------------------------------------------------------------//
//-- SRL Standard Resource Library --//
//----------------------------------------------------------------------------//
//-- by: Azeroth, Bebe, BenLand100, benleegt, Boreas, c0de, Cheesehunk --//
//-- Coh3n, dakota, Dankness, driger1592, EvilChicken!, Flyboy, --//
//-- Freddy1990, Hobbit, IceFire908, inferno, Kernel Klink, Knightstreak, --//
//-- Krazy_Meerkat, Krichevskoy, Liquid, Lorax, lordsaturn, Mad Cow, --//
//-- marpis, Markus, masquerader, mastaraymond, moparisthebest, --//
//-- Mutant Squirrle, n3ss3s, N1ke, Naum, Nava2, nielsie95, phantombmx, --//
//-- pups, Pyro, RAM, Rasta Magician, realrune, Renax, Ron, RsN, --//
//-- SKy Scripter, solemn wishes, Spky, SRL, Starblaster100, Stupid3ooo, --//
//-- Sumilion, tarajunky, The Claw, The_Rs_Monkey, TRiLeZ, Wizzup?, --//
//-- WT-Fakawi, XxKanexX, Yakman, YoHoJo, ZephyrsFury, _ChArMz, --//
//-- --//
//-- ....... and the SRL Community. --//
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
//-- SRL Optional SMART --//
//-- --//
//-- SMART Minimizable Autoing Resource Thing --//
//----------------------------------------------------------------------------//
{$IFDEF SMART}
{$IFNDEF SRL_SMART}
{.include_once SRL/misc/smart.simba}
{$ENDIF}
{$ENDIF}
//----------------------------------------------------------------------------//
//-- SRL Level 1 Includes --//
//-- --//
//-- Low Level Math, Mouse Movement and Color routines. --//
//----------------------------------------------------------------------------//
{.include_once SRL/core/globals.simba}
{.include_once SRL/core/math.simba}
{.include_once SRL/core/mouse.simba}
{.include_once SRL/core/color.simba}
{.include_once SRL/core/players.simba}
//----------------------------------------------------------------------------//
//-- SRL Level 2 Includes --//
//-- --//
//-- Interface and OCR routines. --//
//----------------------------------------------------------------------------//
{.include_once SRL/core/text.simba}
{.include_once SRL/core/timing.simba}
{.include_once SRL/core/chat.simba}
{.include_once SRL/core/gametab.simba}
//----------------------------------------------------------------------------//
//-- SRL Level 3 Includes --//
//-- --//
//-- MapWalking, AntiRandoms, Objects, Bank, Symbol and many more... --//
//----------------------------------------------------------------------------//
{.include_once SRL/core/animation.simba}
{.include_once SRL/core/flag.simba}
{.include_once SRL/core/worldswitcher.simba}
{.include_once SRL/core/login.simba}
{.include_once SRL/core/autocolor.simba}
{.include_once SRL/core/mapwalk.simba}
{.include_once SRL/core/object.simba}
{.include_once SRL/core/amount.simba}
{.include_once SRL/core/inventory.simba}
{.include_once SRL/core/bank.simba}
{.include_once SRL/core/symbol.simba}
{.include_once SRL/core/globalstats.simba}
{.include_once SRL/core/antiban.simba}
{.include_once SRL/core/antirandoms/common.simba}
{.include_once SRL/core/antirandoms/certer.simba}
{.include_once SRL/core/antirandoms/demon.simba}
{.include_once SRL/core/antirandoms/forester.simba}
{.include_once SRL/core/antirandoms/quiz.simba}
{.include_once SRL/core/antirandoms/sandwich.simba}
{.include_once SRL/core/antirandoms/evilbob.simba}
{.include_once SRL/core/antirandoms/leo.simba}
{.include_once SRL/core/antirandoms/frog.simba}
{.include_once SRL/core/antirandoms/molly.simba}
{.include_once SRL/core/antirandoms/pillory.simba}
{.include_once SRL/core/antirandoms/pinball.simba}
{.include_once SRL/core/antirandoms/maze.simba}
{.include_once SRL/core/antirandoms/capnarnav.simba}
{.include_once SRL/core/antirandoms/beekeeper.simba}
{.include_once SRL/core/antirandoms/abyss.simba}
{.include_once SRL/core/antirandoms/mordaut.simba}
{.include_once SRL/core/antirandoms/prisonpete.simba}
{.include_once SRL/core/antirandoms/mime.simba}
{.include_once SRL/core/antirandoms/antirandoms.simba}
(*
SetUpSRL
~~~~~~~~~~~
.. code-block:: pascal
procedure SetUpSRL;
Initiates SRL
.. note::
by SRL Dev Team
*)
procedure SetUpSRL;
var
T: Integer;
begin
SetUpBoxes; //Sets up box variables in globals.simba
T := GetTimeRunning;
MouseSpeed := 15;
{$IFDEF UseLaptopMouse}
LMouse_MissChance := 75;
{$ENDIF}
CheckHPFirst := True;
Reincarnate := False;
TalkAfterRandoms := False;
Banks := 0;
RoadColor := 0;
WaterColor := 0;
BankColor := 0;
LampSkill := 'mining';
LoadCosineArrays;
SymbolAccuracy:= 0.8;
LoadTeleRandoms;
SolveSRLRandoms := True;
UseFindMod := True;
LogoutOnMod := True;
UseFindTrade := True;
Screenshots := False;
GraphicsSet := False;
AllowPVP := False;
ScreenShots := True;
WarnSensitivity := -2;
SetupAutoColors;
AddOnTerminate('FreeSRL');
SetSupressExceptions(true);
Writeln ('SRL Compiled in '+ IntToStr(GetTimeRunning - T) + ' ms.');
{$IFDEF SRL_SMART}
if (Smart_Server = 0) then
begin
Smart_Server := 1
Smart_Signed := True;
Smart_SuperDetail := False;
end;
Writeln('SMART Initialized.' + #10 + 'Loaded: Server ' + IntToStr(Smart_Server) + ', Members: ' + BoolToStr(Smart_Members)
+ ', Signed: ' + BoolToStr(Smart_Signed) + ', Super Detail: ' + BoolToStr(Smart_SuperDetail) + '.');
SmartSetupEx(Smart_Server, Smart_Members, Smart_Signed, Smart_SuperDetail);
SetTargetArray(SmartImageArray, 765,503);
repeat
Wait(100);
if (GetTimeRunning - T) > 120000 then
Break;
until (RSReady);
{$ELSE}
Smart_Server := 0;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
{$ENDIF}
end;