SRL Archive - RS3 Outdated / Broken Scripts

Xeon's Functions & Procedures.


Xeon

2007-05-27 21:22:04

Xeon's Functions & Procedures


I will update this page every time I create a new function/ procedure. (Hopefully make this an include when I have enough procedures/ functions/ feedback [Xi.scar])

I will be taking any requests for new Functions & Procedures or modifications to existing ones.

Please comment on anything you see, as for SCAR is not my primary coding language and I need feed back.

Every one is allowed to use the below just as long as you credit properly. :sasmokin:


-Change Log-
6th June 2007 - Added XiCompassWalk, description tags too. Rev3.
27th May 2007 - Revised XiAutoColor, Now has a StartTol. Rev2
27th May 2007 - Added the Function & Procedure request option.
27th May 2007 - Created Thread and Added Auto Color Function. Rev1

-Functions-

{*******************************************************************************
function XiAutoColor(BitMap, StartTol, MaxTol, xs, ys, xe, ye: Integer): Integer;
By: Xeon.
Description: Returns the color of a given Bit Map.
*******************************************************************************}

function XiAutoColor(BitMap, StartTol, MaxTol, xs, ys, xe, ye: Integer): Integer;
var
XAC: TPoint;
begin
while not (FindBitMapToleranceIn(BitMap, XAC.x, XAC.y, xs, ys, xe, ye, StartTol))
or (StartTol > MaxTol) do
begin
StartTol := StartTol + 1;
end;
if not (StartTol > MaxTol) then
begin
Result := GetColor(XAC.x, XAC.y);
Writeln('Color Auto Picked with a ' + IntToStr(StartTol) + ' tolerance.');
end;
end;

Will add more soon…


-Procedures-

{*******************************************************************************
procedure XiCompassWalk(Radial, Radius, xmod, ymod : Integer);
By: Xeon, orignally by Sythe's A-Walk.
Description: Walks "Blindly" According to which direction the compass is facing.
*******************************************************************************}

procedure XiCompassWalk(Radial, Radius, xmod, ymod : Integer);
var
XCW: TPoint;
begin
XCW.x := Round(Radius * Sin((Pi/180)* FixD(rs_GetCompassAngleDegrees + Radial)) + MMCX);
XCW.y := Round(-Radius * Cos((Pi/180)* FixD(rs_GetCompassAngleDegrees + Radial)) + MMCY);
MouseFindFlag(XCW.x, XCW.y, xmod, ymod);
Flag;
end;

Will add more soon…


-XEON

Xeon

2007-05-27 22:28:39

-Reserved-

Xeon

2007-05-27 22:35:09

-Reserved-

Xeon

2007-05-29 15:56:29

Please, I would really like some requests :(

I'm currently working on 2-D Arrays and Multi-D Array/TPoints to make limitless array-coloring finding functions, but I REALLY needs some suggestions on what new procedures/ functions to make.

-XEON

Wanted

2007-06-05 01:18:40

What are you saying? His procedures do use SRL… he said he is going to make his on extended include… it doesn't use any includes BUT SRL.

Negaal

2007-08-27 12:30:08

well, bitmaps are not best way to autocolor, you should use dtm's, but i can't help you… i'm still learning in scar….:D

Hugolord

2007-08-27 12:32:21

From: negaal
well, bitmaps are not best way to autocolor, you should use dtm's, but i can't help you… i'm still learning in scar….:D


i think bitmaps are way better IMHO

and if u want dtms use DDTMs

ShowerThoughts

2007-08-27 13:22:53

nice work is linearwork not the same as xicompasswalk?

Negaal

2007-08-27 18:24:10

From: hugolord
i think bitmaps are way better IMHO

and if u want dtms use DDTMs



…sigh… why am i reading fake scar guides so much…?