SRL Archive - RS3 Outdated / Broken Scripts

Nameless smither! Varrock west bank


mastaraymond

2007-12-22 13:43:12

Nameless smither

[LEFT]Im 'proud' to present my first RS script :D.

To run this script, you need to install my plugin..
I included it as attachment. You need to place it the Plugins folder : ScarPath \ Plugins.

The code is made out of various technique's, it might be worth looking at when your bored.

The walking, (Yeah there almost isn't any walking), sometimes screws up.. I hope I fixed it, otherwise I'll rewrite it..

It also includes an function called "SmithSets" when you set this to True. It will smith 2 sets a load.. So for example, if it picks bronze bars. It will make 2 sets (Kite, Legs, Plate and Full helm) And as last item an Axe.. If you set this to false, it will smith Plate's (or the highest part you can smith) and if it has got bars over, it will smith an full helm..

It takes the bars out of the bank with the lowest level.. So it starts searching for Bronze, then Iron etc…
It will not try to make things you can't handle yet ;).


Nameless smither by Raymond aka Mastaraymond
Instructions:
1) Start in Varrock West bank
2) Fill in the consts below
3) Fill in the player array
4) Make sure they all have got a hammer in invetory\bank
5) Fill in your SRLId & Password.. If you dont have then make an account @ SRL Stats ^^
6) Run ^^


Smithsets, if it is set to True. The script will, if your level
is high enough, make 2 sets each load.
Loads, the script will add a random number of loads on top of this number

Post feedback?

~Raymond

And for those who care, a list of procedures in my plugin.. (Please notice some are test functions and therefore aren't working).

Function RemoveTPADistEachother(Dist : Integer; TPA : TPointArray) : TPointArray;
Function FindRocksOld(PointsDist,BoxDist,LastBoxDist : Integer;var Points : TPointArray) : Boolean;
Function FindColorsRay(var Points : TPointArray;const Color,RTol,GTol,BTol: integer; xs, ys : integer; const xe, ye : Integer;const DC : LongWord) : Integer;
Function GetHBitmap(CanvasHandle : LongWord) : LongWord;
Procedure ChangeSize(Width,Height : integer);
Procedure FreeSearchingBitmap;
Procedure CreateSearchingBitmap(Width,Height : Integer);
Procedure RGBToHSLRay(R,G,B : integer;var H,S,L : double);
Procedure CreateSearchingBitmap(Width,Height : Integer);
Function FindColorsHSL(var Points : TPointArray;Color, xs, ys, xe, ye : Integer;HTol,STol,LTol : Double;const DC : LongWord) : Integer;
Function SortColors( Colors : TIntegerArray): TIntegerArray;
Procedure SortColorsSaveCounts(var Colors,Counts: TintegerArray);
Function SortTPAMiddles ( w,h : integer; TPA : TPointArray) : TPointArray;
Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray;
Function BoxTPAToATPA(w,h : integer; Points : TPointArray) : TpointArrayArray;
Function GetTPABounds(TPA: TPointArray): TBox;
Function FloodFillTPA(TPA : TPointArray) : TPointArrayArray;
Function FloodFillTPADistance(Dist : Integer; TPA : TPointArray) : TPointArrayArray;
Function FindCommonPoint(ArrayTPA : TPointArrayArray) : TPointArray;
Function FindColorsXYZ(var Points : TPointArray;Color, xs, ys, xe, ye : Integer;XTol,YTol,ZTol : Double;const DC : LongWord) : Integer;
Procedure RGBToXYZRay(R,G,B : integer;var x,y,z : double);
Procedure XYZToRGBRay(X,Y,Z : Double;var R,G,B: integer);
function LargestTPAInATPA(ATPA: TPointArrayArray): Integer;
Function RemoveTPASameRange(Dist : Integer; TPA : TPointArray) : TPointArray;
Function FindTPAEdgePoints ( MaxW,MaxH : integer; TPA : TPointArray): TPointArray;
Procedure RGBToCMYKRay(R,G,B : integer;var C,M,Y,K : Double);
Function FindColorsCMYK(var Points : TPointArray;Color, xs, ys, xe, ye : Integer;CTol,MTol,YTol,KTol : Double;const DC : LongWord) : Integer;
Function SortTPABoxes( Boxes : TBoxArray; TPA: TPointArray) : TPointArrayArray;
Function SortTPADistance(x,y : integer; TPA : TPointArray) : TPointArray;
Function FindColorsRGB(var Points : TPointArray;const Color,RTol,GTol,BTol: integer; xs, ys : integer; const xe, ye : Integer;const DC : LongWord) : Integer;
function CenterTPA(TPA: TPointArray): TPoint;
function CenterBounds(Arr: TpointArray):Tpoint;
function MiddlePT(P1, P2: TPoint): TPoint;
Function MergeATPA(ATPA : TPointArrayArray): TPointArray;
Function AbsoluteInt ( SomeNumber : integer) : integer;
Function ColorToRGBASM( Color : integer;var R,G,B : integer):integer;
Function FindColorsHSLInt(var Points : TPointArray;Color, xs, ys, xe, ye : Integer;HTol,STol,LTol : Double;const DC : LongWord) : Integer;
Procedure CleanATPA(MinLength,MaxLength : Integer; var ATPA : TPointArrayArray);
function SortATPADistFirstPoint(x,y : integer ; ATPA : TPointArrayArray) : TPointArrayArray;
Procedure CenterTPAEx(var x,y : integer; tpa : TPointArray);
Function SortTPAToATPADist(Dist : Integer; TPA :TPointArray) : TPointArrayArray;
Function FindTPAinTPA(SearchTPA, TotalTPA : TPointArray; var Matches : TPointArray) : Boolean;
Function GayBounds(Points: TPointArray): TBox;
Function FindGapsTPA( TPA : TPointArray; MinPixels : Integer) :TpointArrayArray;
Procedure EditToBounds( var TPA : TPointArray);
Function FindMaskTolRay(xs,ys : integer; const xe,ye,Tol,ContourTol : integer;Const BackgroundAllColors : Boolean; Const Mask : TMaskRay; Const ClientDC : HDC; var mx,my : integer) : Boolean;
Function CreateMaskFromBMP( BmpDC : HDC) :TMaskRay;
Procedure RadixSort(Integers : TIntegerArray; Digits : Integer; Negative : Boolean);
procedure QuickSort(var arr: TIntegerArray; s, e: integer);
Procedure RandomArray(var Ints : TIntegerArray; MinRandom,PlusRandom : Integer; Len : Integer);
[/LEFT]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nameless Smither by Raymond

Time running: 5 Hours, 8 Minutes and 41 Seconds
Total loads: 253 rate 49 loads/hr
Total bars: 6822 rate 1325 bars/hr
Active players : 10
Potential levels gained : 38

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0) - T - Bank - Time: 24 - Rand: - 21 Loads - Smithing lvl : 40
1) - T - Bank - Time: 23 - Rand: - 22 Loads - Smithing lvl : 36
2) - T - Bank - Time: 22 - Rand: - 21 Loads - Smithing lvl : 36
3) - T - Bank - Time: 25 - Rand: - 23 Loads - Smithing lvl : 34
4) - T - Bank - Time: 31 - Rand: - 29 Loads - Smithing lvl : 38
5) - T - Bank - Time: 30 - Rand: - 29 Loads - Smithing lvl : 35
6) - F - Bank - Time: 9 - Rand: Oh Dear You Are in Lumby - 9 Loads - Smithing lvl : 33
7) - T - Bank - Time: 28 - Rand: - 26 Loads - Smithing lvl : 34
8) - T - Bank - Time: 29 - Rand: - 28 Loads - Smithing lvl : 36
9) - T - Bank - Time: 22 - Rand: - 21 Loads - Smithing lvl : 34
10) - T - Bank - Time: 25 - Rand: - 23 Loads - Smithing lvl : 33

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wizzup?

2007-12-22 13:52:22

Very nice. ;)

JAD

2007-12-22 13:59:29

Second post! :)

Looks good!

n3ss3s

2007-12-22 14:09:53

Oh my god…

a) Your plugin = pure sexiness
b) script ^^

The FindBankers looks plain awesome…

About plugins, are functions in them just as easy to make to you as in SCAR?

mastaraymond

2007-12-22 14:21:59

From: n3ss3s
Oh my god…

a) Your plugin = pure sexiness
b) script ^^

The FindBankers looks plain awesome…

About plugins, are functions in them just as easy to make to you as in SCAR?

Hmm really depends on what kind of function.. Plugin functions are sometimes even easier to make than in scar… Simply because it takes so long in scar to run it once :p.

About the FindBankers.. Took me a while to get everything straight.. After some testing it worked, surprisingly :D

mastaraymond

2007-12-22 20:04:11

I just runned it, its working flawless.
(I got an old version of SRL so the FindDead bug was still there ;) )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nameless Smither by Raymond

Time running: 5 Hours, 8 Minutes and 41 Seconds
Total loads: 253 rate 49 loads/hr
Total bars: 6822 rate 1325 bars/hr
Active players : 10
Potential levels gained : 38

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0) - T - Bank - Time: 24 - Rand: - 21 Loads - Smithing lvl : 40
1) - T - Bank - Time: 23 - Rand: - 22 Loads - Smithing lvl : 36
2) - T - Bank - Time: 22 - Rand: - 21 Loads - Smithing lvl : 36
3) - T - Bank - Time: 25 - Rand: - 23 Loads - Smithing lvl : 34
4) - T - Bank - Time: 31 - Rand: - 29 Loads - Smithing lvl : 38
5) - T - Bank - Time: 30 - Rand: - 29 Loads - Smithing lvl : 35
6) - F - Bank - Time: 9 - Rand: Oh Dear You Are in Lumby - 9 Loads - Smithing lvl : 33
7) - T - Bank - Time: 28 - Rand: - 26 Loads - Smithing lvl : 34
8) - T - Bank - Time: 29 - Rand: - 28 Loads - Smithing lvl : 36
9) - T - Bank - Time: 22 - Rand: - 21 Loads - Smithing lvl : 34
10) - T - Bank - Time: 25 - Rand: - 23 Loads - Smithing lvl : 33

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

bullzeye95

2007-12-22 20:19:47

Very nicely done!

I call the smelter ;)

NiCbaZ

2007-12-23 04:00:28

mastaraymond, thanks for this i dont see many scripts from devs, good work i have never seen a script like this before.

mastaraymond

2007-12-23 06:29:56

From: nicbaz
mastaraymond, thanks for this i dont see many scripts from devs, good work i have never seen a script like this before.

Your welcome :rolleyes:

Santa_Clause

2007-12-23 06:48:36

Very nice…! Time to actually look at it :p

King of Knives

2007-12-23 06:58:50

Let's see how well this works :D Got 2,5k Mith bars on my main.

-Knives

mastaraymond

2007-12-23 07:08:30

From: King of Knives
Let's see how well this works :D Got 2,5k Mith bars on my main.

-Knives


Increase the amount of loads in that case :p

Oh, btw! Its only smithing free stuff.. I don't have any members :p.

the scar noob

2007-12-23 12:43:53

Okay Ray, I already saw your script yesterday and you know I like it:)
It's a very nice looking script, far abov emy level I think (sure the DrawTPA etc:p);

Great work!!

Regards,

~Your friend Tsn.

mastaraymond

2007-12-23 20:30:29

From: the scar noob
Okay Ray, I already saw your script yesterday and you know I like it:)
It's a very nice looking script, far abov emy level I think (sure the DrawTPA etc:p);

Great work!!

Regards,

~Your friend Tsn.

You will get there.. I got there to ;) ..

Thanks for your comment..

~Raymond

King of Knives

2007-12-26 15:38:29

Not bad at all, Raymond :)

Here's my proggy. It ended because I ran out of bars :(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nameless Smither by Raymond

Time running: 1 Hours, 18 Minutes and 17 Seconds
Total loads: 75 rate 57 loads/hr
Total bars: 2001 rate 1533 bars/hr
Active players : 1
Potential levels gained : 1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0) astaraymond - T - Bank - Time: 71 - Rand: - 73 Loads - Smithing lvl : 69

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Thanks :D

-Knives

Flamesfan4ever

2007-12-26 18:14:35

Hmm…doesn't work so well for me. I only gets to the part where it turns on Run, but then the mouse sticks to the top-left corner of the client, then logs off a few seconds later. Help would be appreciated. =)

mastaraymond

2007-12-27 12:58:14

From: Flamesfan4ever
Hmm…doesn't work so well for me. I only gets to the part where it turns on Run, but then the mouse sticks to the top-left corner of the client, then logs off a few seconds later. Help would be appreciated. =)


Seems like you didn't set your runescape client well…

Or you stand in the wrong place.. Somehow :rolleyes:

@Knives.. Cool \o/. When i ran it there were a few bugs in walking, because some crappy "stray-dog" was walking in the line of the bankers :D

Flamesfan4ever

2007-12-27 13:20:17

From: mastaraymond
Seems like you didn't set your runescape client well…

Or you stand in the wrong place.. Somehow :rolleyes:

@Knives.. Cool \o/. When i ran it there were a few bugs in walking, because some crappy "stray-dog" was walking in the line of the bankers :D


Where should I be standing?

mastaraymond

2007-12-27 13:32:09

From: Flamesfan4ever
Where should I be standing?

Varrock West Bank..

And if your standing there and still aint working. Could you send me a picture of your runescape client? (A bmp…)

So i can find out whats wrong, thnx!

Flamesfan4ever

2007-12-27 15:07:48

From: mastaraymond
Varrock West Bank..

And if your standing there and still aint working. Could you send me a picture of your runescape client? (A bmp…)

So i can find out whats wrong, thnx!


I just use Firefox. That's my "client". Lulz.

bullzeye95

2007-12-27 19:53:55

From: Flamesfan4ever
I just use Firefox. That's my "client". Lulz.


I'm sure he uses Firefox… he means send him a picture of the whole RS screen so he can see what's going on and how to fix your problem ;)

mastaraymond

2007-12-28 12:01:44

From: bullzeye95
I'm sure he uses Firefox… he means send him a picture of the whole RS screen so he can see what's going on and how to fix your problem ;)


Indeed :D..

Are you sure you dragged the client good? Otherwise, i might have to edit my tolerance's a bit.

burningice08

2008-06-10 14:34:11

What's a TMaskRay because the script says its an unknown identifier

mastaraymond

2008-06-10 17:23:36

From: burningice08
What's a TMaskRay because the script says its an unknown identifier

Install the plugin ;)

mager guy

2008-06-11 14:43:06

I don't know how to install the plugin i used winrar to move it into the plugins folder of scar but it still doesn't know what a TMaskRay is

randy marsh

2008-08-28 03:31:08

Is this still working?

mastaraymond

2008-08-28 05:54:03

From: djcheater
Is this still working?

I'm not sure.. Maybe some SRL functions changed, but if you update those.. If varrock has changed it probably won't work anymore.. Try it :).

randy marsh

2008-08-28 05:55:39

Ok will do i let you no!

AzulDrake

2008-08-28 06:36:11

Will be trying this script out tonight and will let you know if I experience any errors :)

mastaraymond

2008-08-28 06:38:54

From: AzulDrake
Will be trying this script out tonight and will let you know if I experience any errors :)

I'm not sure how stable this script is, since I've only ran it once.. But I can always try to fix bugs :). (I wouldn't recommend to use this as an overnight script).. Just run and watch it for a while with smart :p.

oglokes

2008-08-28 18:52:07

Hmm I filled in my name, pass and nick, as well as the Srl Id and pass.
What is
RCMaster := '';
RCLoc := '';
???
Also when i try running the script i get:
Failed when compiling
Line 1: [Error] (1:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Documents and Settings\Owner\Desktop\Smither Public.scar


Btw. If anyone would like to look this over, please tell me if I made any mistakes or if I need to fill anything else in.
Const
Loads = 10;
StartPlayer = 0;
SmithSets = False;
DebugBoxDebug = False;
Procedure DeclarePlayers;
begin;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
RCMaster := '';
RCLoc := '';

SRLID := '6013';
SRLPassword := '******';

Players[0].Name :='*******';
Players[0].Pass :='************';
Players[0].Nick :='****';
Players[0].Active:=True;
end;

mastaraymond

2008-08-28 19:28:58

From: oglokes
Hmm I filled in my name, pass and nick, as well as the Srl Id and pass.
What is ???
Also when i try running the script i get:

Btw. If anyone would like to look this over, please tell me if I made any mistakes or if I need to fill anything else in.

You need to install the plugin.. Just leave the rcloc and rcmaster emty if ya don't use..

bullzeye95

2008-08-28 23:47:26

He did install the plugin. Try first restarting SCAR to see if that works. If not, restart your computer and it will work.
RCLoc and RCMaster don't need to be filled in.

Marcus99

2008-08-31 15:50:24

I don't mean to sound ungrateful bu I get failures to compile with the plug in and there seem to be some conflicts with your plug in and other scripts. To close Scar I have to kill the process because I am bombarded with infinite address errors. Once I remove XFindRock.dll everything works like it did.

Nameless Smither with XFindRock.dll
Failed when compiling
Line 1: [Error] (1:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\Scripts\Nameless Smither Public.scar

Narcles with XFindRock.dll
Failed when compiling
Line 1: [Error] (23:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\includes\srl/srl/misc/Smart.scar

Multi Miner with XFindRock.dll
Failed when compiling
Line 1: [Error] (1:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\Scripts\Multi Miner 0.04 Public.scar

mastaraymond

2008-08-31 17:17:32

From: Marcus99
I don't mean to sound ungrateful bu I get failures to compile with the plug in and there seem to be some conflicts with your plug in and other scripts. To close Scar I have to kill the process because I am bombarded with infinite address errors. Once I remove XFindRock.dll everything works like it did.

Nameless Smither with XFindRock.dll
Failed when compiling
Line 1: [Error] (1:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\Scripts\Nameless Smither Public.scar

Narcles with XFindRock.dll
Failed when compiling
Line 1: [Error] (23:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\includes\srl/srl/misc/Smart.scar

Multi Miner with XFindRock.dll
Failed when compiling
Line 1: [Error] (1:1): Unable to register function Function SortTPAToATPA (w,h : integer; TPA : TPointArray) : TPointArrayArray; in script C:\Program Files\SCAR 3.15\Scripts\Multi Miner 0.04 Public.scar

Oh that does make sense. My fault.. The plugin posted here is outdated. I will upload the new one in a few secs. Hold on :).

I'm sorry. Besides, please don't expect to much from this script. Don't want you to get disappointed.

EDIT: Uploaded.. Tell me if you receive any errors.

oglokes

2008-09-05 14:27:55

From: bullzeye95

RCLoc and RCMaster don't need to be filled in.


Ok, thanks, I'll try this script out whenever I get some free time on my hands. For now I'm stickin to leveling up my strength! Narcle for teh win!! lol =)

mastaraymond

2008-09-05 14:33:38

Your sig pissed me off pretty bad.

PvH

2008-09-05 15:18:20

I'm sorry mastaraymond, its outdated;)
I fixed a lot of things, and its still not working, it needs some seriously updates:p
Such as outdated functions, wrong names of things, semicolons needed and so on XD
I hope you can update this soon as I bought a lot of ores to smith:p
Good luck and thanks:)

PvH

mastaraymond

2008-09-05 16:13:13

From: PvH
I'm sorry mastaraymond, its outdated;)
I fixed a lot of things, and its still not working, it needs some seriously updates:p
Such as outdated functions, wrong names of things, semicolons needed and so on XD
I hope you can update this soon as I bought a lot of ores to smith:p
Good luck and thanks:)

PvH

O, I thought so :). I might give a shot at it, but can't promise anything ^_^.

PvH

2008-09-05 16:15:49

From: mastaraymond
O, I thought so :). I might give a shot at it, but can't promise anything ^_^.


Hehe, its alright.
Ohh wait a moment, you need to do it!
Thats why they call you MASTAraymond, right:rolleyes:
Nah, just kidding:p
Take your time, even though a fast update would be awsome XD
Btw, the code looks pretty good for a first script *cough awsome *cough*

Maybe change the program name to something else besides hoi ?XD
English guys don't understand hoi :p

PvH

mastaraymond

2008-09-06 06:36:49

From: PvH
Hehe, its alright.
Ohh wait a moment, you need to do it!
Thats why they call you MASTAraymond, right:rolleyes:
Nah, just kidding:p
Take your time, even though a fast update would be awsome XD
Btw, the code looks pretty good for a first script *cough awsome *cough*

Maybe change the program name to something else besides hoi ?XD
English guys don't understand hoi :p

PvH

My default script is "hoi" ^^.. Kinda random ^_^

Vampspiro

2008-10-10 19:33:12

lolz we are so lacking a good smither and this was one of the best out there !!
hehe i would love to see a update comming along to kick ass xD

gangsta-444

2008-12-10 08:34:55

Line 197: [Error] (16403:1): Semicolon (';') expected in script C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Smither Public.scar

Why Does It Say That…?

Line 197: SetLength(result,LengthBar);

Help Please… Thanks

Alligaattor

2009-08-30 15:28:57

does this still work?

mastaraymond

2009-08-30 15:33:22

Doubt it. Will close topic, thanks.