SRL Archive - RS3 Outdated / Broken Scripts

[REF] Flour Buyer


Capricorn

2009-06-08 05:23:14

Heres a little flour buyer, gets me around 110k - 180k with the current prices a hour. If you encounter any problems post and ill see if I can fix it. Run at port Khazard.

Some things that I know happen is that sometimes it misses the shopkeeper just a little bit, and for some reason WalkToTile does not wait til you reach the flag.

Feel free to shoot any suggestions or questions my way too. Setting up is pretty easy, theres only one constant and just goto declare players.

Some progress reports of my own

|
| Ran for: 6 Minutes and 35 Seconds |
| Banked 17 times |
| 155 trips a hour |
| Banking: 4173 a hour |
| Total Time taken as break: 0:0:0 |

| Ran for: 19 Minutes and 26 Seconds |
| Banked 51 times |
| 157 trips a hour |
| Banking: 4248 a hour |
| Total Time taken as break: 0:0:0 |

| Ran for: 27 Minutes and 25 Seconds |
| Banked 72 times |
| 157 trips a hour |
| Banking: 4252 a hour |
| Total Time taken as break: 0:0:0 |


Enjoy.

mormonman

2009-06-08 05:29:36

add stoof for running out of money. don't use invfull for and if then statement. if you run outta money, then this thing will just sit there, then do nextplayer(true); forever. that is bannage.

yourock*insertnumbershere* told you it didn't matter if i told them.

Capricorn

2009-06-08 05:34:01

Alright, something I probably overlooked since I just bring like a million GP lol. Thanks for the feedback.

[JS]

2009-06-08 05:38:38

what exactly does script do?

ian.

2009-06-08 05:41:07

From: [JS]
what exactly does script do?


Buys pots of flour in Port Khazard then banks, and repeats.

yourock12345

2009-06-08 05:42:13

From: mormonman
add stoof for running out of money. don't use invfull for and if then statement. if you run outta money, then this thing will just sit there, then do nextplayer(true); forever. that is bannage.

yourock*insertnumbershere* told you it didn't matter if i told them.


Dang…
Nobby noob noob noob. lol u meanie…

mormonman

2009-06-08 05:44:23

From: yourock12345
Dang…
Nobby noob noob noob. lol u meanie…


ownt.

capricorn, go learn some more stoof, like how to get ge prices.

Simtoon

2009-06-09 01:40:39

i made a simple script like this its really gay


program MultiBuyer;
{.include SRL\SRL\Misc\SMART.scar}
{.include SRL\SRL.scar}

var
x, y, DTM, I: Integer;

const
Debug = False;

{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
function OpenBankWg: Boolean;
By: Nicbaz & Wizzup
Description: WithDraws Money
Status: Good
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

procedure DebugATPA(aPoints: T2DPointArray);
var
ClientBMP, I, I2: Integer;
Pic: TBox;
begin
if Debug = false then
Exit;
Pic := GetATPABounds(aPoints);
DisplayDebugImgWindow(Pic.x2 - Pic.x1, Pic.y2 - Pic.y1);
ClientBMP := BitmapFromString(Pic.x2 - Pic.x1, Pic.y2 - Pic.y1, '');
CopyClientToBitmap(ClientBMP, Pic.x1, Pic.y1, Pic.x2, Pic.y2);
for I := 0 to High(aPoints) do
begin
for I2 := 0 to High(aPoints[i]) do
FastSetPixel(ClientBMP, aPoints[i][I2].X - Pic.x1, aPoints[i][I2].Y -
Pic.y1, Random(839894));
end;
SafeDrawBitmap(ClientBMP, GetDebugCanvas, 0, 0);
FreeBitmap(ClientBMP);
end;

{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Function Find: Boolean;
By: Nicbaz
Description: FindS the keeper
Status: Good
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

function Find(color: integer; text: string): Boolean;
var
TPAs: TPointArray;
TPA: Tpoint;
D2TPA: T2DPointArray;
X, Y, I: Integer;
begin
FindColorsSpiralTolerance(x, y, TPAs, color, MSX1, MSY1, MSX2, MSY2, 12);
if length(TPAs) = 0 then
Exit;
D2TPA := TPAtoATPAEx(TPAs, 13, 13);
DebugATPA(D2TPA);
for i := 0 to length(D2TPA) - 1 do
begin
TPA := MiddleTPA(D2TPA[i]);
MMouse(TPA.X, TPA.Y, 0, 0);
Wait(150 + Random(50));
if IsUpText(text) then
begin
X := TPA.X
Y := TPA.Y
Mouse(x, y, 2, 2, false);
Wait(150 + Random(50));
Result := ChooseOption('rade');
Exit;
end;
end;
Result := False;
end;


{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Function FindBankDe: Boolean;
By: Nicbaz modded by Simtoon
Description: FindS the keeper
Status: Good
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

function FindBankThing(var fx, fy: Integer): Boolean;
var
arP, arAP: TPointArray;
arC, arUC: TIntegerArray;
ararP: T2DPointArray;
tmpCTS, i, j, arL, arL2: Integer;
P: TPoint;
H, S, L: Extended;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(1);

if not(FindColorsTolerance(arP, 672086, MSX1, MSY1, MSX2, MSY2, 0)) then
begin
Writeln('Failed to find the color, no object found.');
ColorToleranceSpeed(tmpCTS);
Exit;
end;

arC := GetColors(arP);
arUC := arC;
ClearSameIntegers(arUC);
arL := High(arUC);
arL2 := High(arC);

for i := 0 to arL do
begin
ColorToHSL(arC[i], H, S, L);

if (H >= 12.04) and (H <= 12.08) and (S >= 79.15) and (S <= 79.19) and (L >= 18.80) and (L <= 18.84) then
begin
ColorToXYZ(arC[i], X, Y, Z);

if (X >= 5.76) and (X <= 5.80) and (Y >= 5.76) and (Y <= 5.80) and (Z >= 1.08) and (Z <= 1.12) then
begin
for j := 0 to arL2 do
begin
if (arUC[i] = arC[j]) then
begin
SetLength(arAP, Length(arAP) + 1);
arAP[High(arAP)] := arP[j];
end;
end;
end;
end;
end;

SortTPAFrom(arAP, Point(MSCX, MSCY));
ararP := SplitTPAEx(arAP, 10, 10);
arL := High(ararP);

for i := 0 to arL do
begin
if (Length(ararP[i]) < 10) then Continue;
P := MiddleTPA(ararP[i]);
MMouse(P.x, P.y, 5, 5);
Wait(100 + Random(100));
if (IsUpText('ank')) then
begin;
Result := True;
Break;
end;
end;

ColorToleranceSpeed(tmpCTS);

if (i = arL + 1) then
begin
Writeln('FindObject could not find object.');
Exit;
end;

GetMousePos(fx, fy);
end;



{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Procedure Bank;
By: Simtoon
Description: Banks
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}


procedure BankFlour;
Begin
If FindSymbol(x, y, 'bank') then
Mouse(x, y, 3, 3, True);
wait(20000 + random(500));
FindBankThing(x, y);
Wait(2000 + random(500));
Mouse(x, y, 5, 5, True);
Wait(2000 + random(500));
// until(GetColor(306, 41) = 2070783);
Begin
wait(2000 + random(500));
Mouse(407, 239, 1, 1, False);
Status('Banking');
ChooseOption('X');
begin
Wait(1000 + random(300));
TypeSend(IntToStr(27 + random(10)));
end;
end;
end;


{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Procedure ByTheFlour;
By: Simtoon
Description: Buys Flours
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

procedure BuyFlour;
begin
DTM := DTMFromString('78DA635CCDC8C090CA8002822DE5C0342394C' +
'FB816C8AA6640038CA86A76035905A82A8C8D8D51D52CC4548361' +
'CE4A202B91809AAD4056127E3500080D07EF');
WriteLn('Finding Symbol');
if FindSymbol(x, y, 'store') then
Mouse(x, y, 3, 3, True);
WriteLn('Clicked Symbol');
wait(2000 + random(500));
repeat
if (Find(8365779, 'alk')) then
Break;
until (GetColor(56, 75) = 2070783);
begin
WriteLn('Opened Shop Screen');
wait(2000 + random(500));
if FindDTM(DTM, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
WriteLn('buyin the Flours');
//repeat
Mouse(x, y, 1, 1, False);
ChooseOption('X');
//until(invfull);
begin
Wait(1000 + random(300));
TypeSend(IntToStr(27 + random(10)));
end;
end;
FreeDTM(DTM);
case random(3) of
0, 1: Wait(1);
2: CloseWindow;
end;
end;
end;

begin
SmartSetupEx(112, True, True, False);
SetTargetDC(SMARTGetDC);
SetupSRL;
Repeat
BuyFlour;
wait(2000 + random(500));
BankFlour;
wait(2000 + random(500));
until(false);
end.

[JS]

2009-06-09 02:03:13

From: 99_
Buys pots of flour in Port Khazard then banks, and repeats.


so it buys the pots of flour than u just sell in ge for more?

thats seems… different?

Simtoon

2009-06-09 10:38:24

Good for pures :)

Capricorn

2009-06-09 10:39:41

It is better money then a fair bit of things and it is safe and requires no skills or quests.

[JS]

2009-06-09 11:00:24

trying out now. gonna leave over night.

will post proggie tomorw

Capricorn

2009-06-09 13:07:04

I wouldn't run this script overnight personally, I wouldn't run it longer then a hour lol. Just because WalkToTile doesn't seem to work in that script, and I have no idea why.

Floor66

2009-06-09 15:47:04

I've had my own script for this in SRL mems and I could just leave it an run, I've had a 32hr proggy. I usually overnight it.

I must warn you for releasing it: if LOTS of people use it, the price will DRASTICALLY drop. Look at the graph. They went from 56gp to 41gp just by me making ~5m cash :p

Capricorn

2009-06-09 15:58:14

Doubt it, right now it doesn't run that well anyway. Sometimes walktotile waits til the flag is gone sometimes it doesn't, or maybe it was just me but it didn't wait for the flag to leave so it tried clicking the shopkeeper/storage before the flag left :\. Anyway its very messy and crazy when I looked over it so I figure the best thing to do is re-write it completely :\.

Floor66

2009-06-09 16:15:39

Well yeah but if the script works perfectly then it would sorta wreck prices.
That's why I kept it SRL mems and the latest version I just gave to like 5 people only.

I've made 60m+ total in this way and I don't want to give it up.

Bonfield

2009-06-09 16:33:42

From: Floor66
I've had my own script for this in SRL mems and I could just leave it an run, I've had a 32hr proggy. I usually overnight it.

I must warn you for releasing it: if LOTS of people use it, the price will DRASTICALLY drop. Look at the graph. They went from 56gp to 41gp just by me making ~5m cash :p


why would you sell for lower than market? thats always going to make the price crash

Floor66

2009-06-09 16:41:10

You just don't get that they DO NOT sell instantly soo, some people WILL be annoyed and sell for under mid. I mean, this is just the jr mems …

Bonfield

2009-06-09 16:54:31

i do get that they dont sell instantly because i remember using yours or cnr's script a long time ago

it will be just like when gerauchert released his newter and the same when nicbaz had his

just didt know why you sold yours for less

anyways how is yours going? /offtopic

capricorn i will have a look through your script tomorrow and try to see if i can help

Floor66

2009-06-09 18:29:45

I didn't sell for less. That's what im saying :p
Other people used it aswell as I released the script, and they got bugged by them not selling.

[JS]

2009-06-09 22:12:13

yeah good call on the running overnight. stopped after 2 hours. but still awesome way to double up on your money. Tried running again this morning and RS had been updated and it wont move now.

just a headsup

Floor66

2009-06-09 22:25:59

It's because the hooks are outdated ;)

[JS]

2009-06-09 22:28:14

From: Floor66
It's because the hooks are outdated ;)


lol i..knew that..:confused: haha

i dont know how to update them either :p

jakeyboy29

2009-06-09 23:48:36

a sad, sad day for flour buyers.
Reflection was proven to work better, but isnt needed. really. nice simple script.
well done.

Simtoon

2009-06-11 12:21:43

Make the script unusable and wait a week the prices should go up :)

Capricorn

2009-06-11 16:59:57

The prices have already recovered to what they were pre-spike …

Floor66

2009-06-11 17:54:03

I really wouldn't call that recovered. When I first started it they were 60gp+

kdj55

2009-06-11 21:19:44

I was running it right now and when it clicked to trade with the shop keeper the player tap was open and kept clicking around where the flour should be. Maybe put something in there so if its set to that tab it would change it to the shop tab?

TomTuff

2009-06-19 20:56:52

| Ran for: 9 Minutes and 23 Seconds |
| Banked 24 times |
| 153 trips a hour |
| Banking: 4136 a hour |
| Total Time taken as break: 0:0:0 |

Capricorn

2009-06-19 21:03:06

Did you have problems with it clicking while running? I am probably not going to continue this script since I found a better way to make money once I renew membership today.

Floor66

2009-06-19 21:15:25

Ok! :D
I can't really leave without saying I'm happy you stop this :p
Because mine was SRL mems only and it was a pretty good kept secret, prices going up atm btw.

Capricorn

2009-06-19 21:17:27

Its not really a secret, only reason why its steady right now is because people at RSBot have a anchovy script that makes way more.

TomTuff

2009-06-19 21:35:44

capricorn whats that method u know of? pm it to me xD

Floor66

2009-06-19 23:44:59

Didn't he just say 'an anchovy script'? :p

Capricorn

2009-06-20 00:59:06

Nah its not that. You need to do a quest for that and unless someone releases enough scripts to get me like all the quests done it ain't happenin lol.