Skip to content

Commit 1ccb2ba

Browse files
committed
feat: start of TRSMake
- also added more docs and an entry about the compiler directives the library makes use of
1 parent 23f4855 commit 1ccb2ba

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed

osrs.simba

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
(*
2+
# SRLT
3+
SRLT is a library used to bot OldSchool RuneScape with Simba 2.0.
4+
SRLT stands for SRL Tribute and it's heavily inspired in previous work done by
5+
the SRL Community.
6+
7+
This library is meant to do the job of both [SRL-T](https://github.com/Torwent/SRL-T)
8+
and [WaspLib](https://github.com/Torwent/WaspLib) in Simba 1.4 in a lighter,
9+
less confusing way.
10+
*)
11+
12+
(*
13+
## Compile Directives
14+
```pascal
15+
{$DEFINE DEBUG_MOUSE}
16+
{$DEFINE SRLT_DISABLE_REMOTEINPUT}
17+
{$DEFINE SRLT_KEYBINDS_DEBUG}
18+
{$DEFINE DEBUG_UPTEXT}
19+
```
20+
This are the compiler directives available in the library.
21+
22+
Add them **before** including the library to use them.
23+
24+
They should be self-explanatory.
25+
*)
26+
127
{$INCLUDE_ONCE utils.simba}
228

329
// The following allows individual include files to compile on their own with just having {$INCLUDE_ONCE SRLT/osr.simba}

osrs/interfaces/chat/make.simba

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(*
2+
# Make
3+
The "Make" menu is the chatbox menu that pops up when you attempt to craft
4+
certain items in OldSchool RuneScape.
5+
*)
6+
7+
{$DEFINE SRLT_MAKE_INCLUDED}
8+
{$INCLUDE_ONCE SRLT/osrs.simba}
9+
10+
type
11+
TRSMakeItem = record
12+
Item: String;
13+
Index, Quantity: Integer;
14+
end;
15+
16+
TRSMake = record
17+
Items: array of TRSMakeItem;
18+
const QUANTITY_ALL: Integer = 0;
19+
end;
20+
21+

osrs/interfaces/mainscreen/bank.simba

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Record responsible to handle the bank interface.
4141
Bounds: TBox;
4242
Slots: TRSSlotInterface;
4343
Items: TRSItemInterface;
44-
4544
Title: TRSInterfaceTitle;
4645
Scroll: TRSScrollBar;
4746

@@ -62,12 +61,11 @@ Record responsible to handle the bank interface.
6261
NotNow, MoreInfo: TBox;
6362
end;
6463

64+
{%codetools off}
6565
Cache: record
6666
Quantity: Integer;
6767
Items: TStringMap<TBankPosition>;
6868
end;
69-
70-
{%codetools off}
7169
_IsOpenHelperBox: TBox;
7270
{%codetools on}
7371
const QUANTITY_ALL: Integer = 0;

osrs/remoteinput.simba

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{$DEFINE SRLT_REMOTEINPUT_INCLUDED}
22
{$INCLUDE_ONCE SRLT/osrs.simba}
33

4+
{.$DEFINE SRLT_DISABLE_REMOTEINPUT}
5+
46
{$loadlib ../plugins/libremoteinput/libremoteinput}
57

68
type

utils/input/mouse.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Methods to interact with the mouse.
66
{$DEFINE SRLT_MOUSE_INCLUDED}
77
{$INCLUDE_ONCE SRLT/utils.simba}
88

9-
{.$DEFINE DEBUG_MOUSE} // Enable me to record mouse path + clicks. Will be displayed when script terminates.
9+
{.$DEFINE DEBUG_MOUSE}
1010

1111
{$IFDEF SIMBAHEADLESS}
1212
{$UNDEF DEBUG_MOUSE}

0 commit comments

Comments
 (0)