SRL Archive - RS3 Outdated / Broken Scripts

Taking function request


Negaal

2008-02-12 15:47:34

Title says all…
Describe exactly as you can.
Must be able to do in f2p.

Cheers

Edit: Don't accept such as walking…simple clicking…nothing what's turning to full script.

Function you request, should give me lot of math and headache.

Timothegreat

2008-02-13 00:10:15

gas finder :p

BobboHobbo

2008-02-13 00:19:02

From: Timothegreat
gas finder :p


I need thst for personal use, cuz sometimes i let one off, but sometimes i think its dinner. (mums a bad chief)

Negaal

2008-02-13 00:44:36

From: Timothegreat
gas finder :p


Umm…Why don't you use SRL's?

Anyways if you get me some pictures about gas then…I'll do it:)

kingarabian

2008-02-13 00:58:29

negaal i would appreciate it if you make a function for firemaking. So when it gets caught in a place it cant firemake it will then move away. ("You cant light a fire here").

BobboHobbo

2008-02-13 01:04:09

Ill send pictures of gas from me?

Markus

2008-02-13 02:23:17

Something that converts a 2d int array to a normal one.

Negaal

2008-02-13 10:12:50

Easy, simple, effective and working…didn't failed on most commonly failed chicken suit.


function GasIn(X, Y : integer) : Boolean;
var
CTS, i, a : integer;
PCount : TIntegerArray;
begin
SetLength(PCount, 2);
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorspeed2Modifiers(0.08, 0.25);
if FindColorTolerance(a, a, 7835543, X - 25, Y - 25, X + 25, Y + 25, 15) then
begin
for i:=0 to 1 do
begin
PCount[i]:= CountColorTolerance(7835543, X - 25, Y - 25, X + 25, Y + 25, 15);
if i = 0 then wait(250);
end;
if PCount[0] <> PCount[1] then
begin
Result := True;
Writeln('Gas found, Pixelcount change: '+FloatToStr((Abs(PCount[0] - PCount[1]) * PCount[0]) / 100)+'%');
end;
end;
SetColorspeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
end;

Edit: Finds aproch 100 pixels per gas

Negaal

2008-02-13 10:54:48

From: Markus
Something that converts a 2d int array to a normal one.

Function TIAAtoTIA(dd :Array of TIntegerArray) : TIntegerArray;
var
New : TIntegerArray;
L, K, i, j, g, d, add, ddl : integer;
begin
g := length(dd);
d := high(dd)
for g := 0 to d do
ddl := ddl + Length(dd[g]);
SetLength(New, ddl)
L := High(dd);
For i := 0 to L do
begin
K := High(dd[i])
For j := 0 to K do
begin
New[add] := dd[i][j];
Inc(Add);
end;
end;
Result := New;
end;

From: kingarabian
negaal i would appreciate it if you make a function for firemaking. So when it gets caught in a place it cant firemake it will then move away. ("You cant light a fire here").


Well, where are you burning the logs? town?, on grass or road?…

malotthouse

2008-02-13 12:22:34

Can you make a function that burns all the logs in your inventory?

ive been working on one, but my scripting isn't as good as yours.

ive been using the firemaking.scar in the includes if that helps at all

maybe you should name it 'burnall;'

id greatly appreciate it :)

Negaal

2008-02-13 13:16:48

From: malotthouse
Can you make a function that burns all the logs in your inventory?

ive been working on one, but my scripting isn't as good as yours.

ive been using the firemaking.scar in the includes if that helps at all

maybe you should name it 'burnall;'

id greatly appreciate it :)


Well, then it's like script, because it should include randomfinding, mover when object is on way, clicker, lot of testing…no sorry

Something harder though… 2 I made before were just that kind I wanted:)

Wizzup?

2008-02-13 15:24:48

From: Timothegreat
gas finder :p


I think my gasfinder still works 100%… :)
(It's not in SRL, but in New Functions/Experimental Functions on the forum)

malotthouse

2008-02-13 15:35:10

From: Negaal
Well, then it's like script, because it should include randomfinding, mover when object is on way, clicker, lot of testing…no sorry

Something harder though… 2 I made before were just that kind I wanted:)


no, i want a function that can be called. because currently i have an auto woodcutter and would love to turn it into a woodcutter/firemaker. the antirandoms and all of that can go with the other script

kingarabian

2008-02-13 16:22:45

Well, where are you burning the logs? town?, on grass or road?…


Road…..you know outside the varrock east bank?

Negaal

2008-02-13 17:08:56

From: kingarabian
Road…..you know outside the varrock east bank?


I do it tomorrow, maybe ;)

kingarabian

2008-02-13 17:09:59

From: Negaal
I do it tomorrow, maybe ;)


Aite thx dawg!!!!