-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetLocation.simba
More file actions
81 lines (63 loc) · 2.04 KB
/
GetLocation.simba
File metadata and controls
81 lines (63 loc) · 2.04 KB
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
{
Script: GetLocation
Version: 1.00
Author: Gimpy666
Date: 2022-11-26
Language: Pascal
IDE: Simba rev 1400
Project GitHub: https://github.com/Gimpy666/GetLocation
SRL Forums: https://villavu.com/forum/showthread.php?t=177801
Dependencies: SRL-Development // July 19 2022
https://github.com/ollydev/SRL-Development
Bot Type: Colour
Purpose: Old School Runescape colour bot. Intended for script
developing purposes. This script will write to the console
every second returning your current X, Y coorindates using
TRSWalker.
Requirements: Use the official Jagex Old School Runescape client.
Script will run indefinently.
Additional
Informtation: SRL Documentation - Walker
https://villavu.github.io/SRL-Development/walker.html
}
// Program name
program GetLocation;
// [DEFINE INCLUDES]
// SRL_USE_REMOTEINPUT - for interacting with Jagex Old School Runescape client
{$DEFINE SRL_USE_REMOTEINPUT}
// SRL-Development - for TRSWalker functions
{$I SRL/OSR.simba}
// [DEFINE TYPES]
type
// Name of record
TBot = record
// Creating a TRSWalker object
Walker : TRSWalker;
end;
// [DEFINE VARIABLES]
var
// Create the TRSWalker bot
Bot: TBot;
// [DEFINE PROCEDURES]
procedure TBot.Init;
begin
// Select the base layer map to use in order to reference your current
// position. Bitmaps available in Simba/Includes/SRL/osr/walker/maps
Walker.Setup('world');
end;
// [DEFINE THE MAIN CODE / STARTING POINT]
begin
// Call procedure Bot.Init() to initialize one time commands for preparing
// the script to run
Bot.Init();
// Infinite loop
while True do
begin
// Write the current position to the console
WriteLn(Bot.Walker.GetMyPos());
// Wait 1 second
Wait(1000, 1050);
// Loop will repeat
end;
// End of the script
end.