Skip to content

Instantly share code, notes, and snippets.

View Kils-dev's full-sized avatar
🎯
Focusing on automation

Kils-dev

🎯
Focusing on automation
  • Microsoft Corporation
  • Portugal
View GitHub Profile
@Kils-dev
Kils-dev / Solving_The_door_problem-by-slacky.txt
Created March 31, 2024 22:20
Solving_The_door_problem-by-slacky
program new;
{$DEFINE SRL_USE_REMOTEINPUT}
{$I SRL/osr.simba}
(*
This solution assumes that you have an anchor that is either perpendicular or parallel to the door
(it's either in the angle of facing the closed door, or it's facing the open door)
//
//|
@Kils-dev
Kils-dev / Quick_prayer_selector_example.txt
Last active January 18, 2024 21:46
Get old selected QuickPrayers, deselect them and select the ones you want
{$I SRL-T/osr.simba}
{$I WaspLib/osr.simba}
procedure quickprayerselector;
var
OldSelected: array of ERSPrayer;
DesiredPrayer: ERSPrayer;
i: Integer;
Match: Boolean;
begin
QuickPrayer.Open;
@Kils-dev
Kils-dev / Simba_Solving_the_door_problem
Created January 2, 2024 16:42
A way to solve Simbas door problem with color finding doors using anchors
program new;
{$DEFINE SRL_USE_REMOTEINPUT}
{$I SRL/osr.simba}
(*
This solution assumes that you have an anchor that is either perpendicular or parallel to the door
So it's either in the angle of facing the closed door, or it's facing the open door.
Concept:
Find the door, and find an object which we call anchor, in this case it's a black ledger
@Kils-dev
Kils-dev / learn_CaseofStrings_with_ ERSSpell_type_function
Created January 1, 2024 00:17
Case of strings with ERSSpell type function demo
{$I SRL-T/osr.simba}
{$I WaspLib/osr.simba}
const
HeadName = 'Ensouled bloodveld head';
function EnsouledHeadHandler: ERSSpell;
begin
case HeadName of
'Ensouled goblin head', 'Ensouled monkey head', 'Ensouled imp head ',
@Kils-dev
Kils-dev / RSRegion_test.simba
Last active March 23, 2024 22:59 — forked from TazE-scripts/RSRegion_test.simba
Finding your coordinates within RSRegion
{$I SRL-T/osr.simba}
{$I WaspLib/osr.simba}
var
RSW: TRSWalker;
StartTile: TPoint;
X: Int32;
MyPos := RSW.GetMyPos;
const
@Kils-dev
Kils-dev / learn_to_walkpath.simba
Created November 21, 2023 23:06 — forked from TazE-scripts/learn_to_walkpath.simba
How to use walkpath with RSR.WalkPath
{$I SRL-T/osr.simba}
{$I WaspLib/osr.simba}
function RandomizePath(const Path: TPointArray; Range: Integer): TPointArray;
var
i: Integer;
randomValue: Integer;
begin
// Initialize the result with the same length as the input path
SetLength(Result, Length(Path));