SRL Archive - OSR Outdated / Broken Scripts

Lumbridge Flax Spinner (my first release)


dewrange

2013-04-04 04:29:23

Dewrange's Lumbridge Flax Spinner!


UPDATED TO A 1000% MORE STABLE VERSION!





[CENTER][U][B]INSTRUCTIONS![/B][/U]
-Make sure you have downloaded and correctly installed SMART8 and OSR-SRL!
-The script must start in the bank!
-Make sure flax is visible in bank!
-Bow strings may be anywhere in your bank![/CENTER]


[CENTER][B][U]SCRIPT FEATURES![/U][/B]
-Will spin an endless amount of flax!
-Walks to and from bank flawlessly, should correct itself if it gets stuck!
-should open bank, climb up and down stairs, and control spinning functions on its own!
-Will deposit Bowstrings and withdraw flax!
-Will clear the "congratulations you have leveled" message and start spinning again!
-Supports randoms supported by OSR-SRL![/CENTER]



[B][U][CENTER]What will break the script?[/CENTER][/U][/B]
[CENTER]-Some randoms as they are not supported by the osr-srl yet.
-SEVERE LAG
-People constantly closing the door. the next update will have a fix for this.[/CENTER]


[CENTER][B][U]CHANGE LOG[/U][/B][/CENTER]
[U][B][CENTER]VERSION 1.0[/B][/U]
very crappy, put together with bad technique and was bound to fail.

[B][U]VERSION 2.0[/U][/B]
- Total rewrite
- Anti-ban incorporated
-Will solve most randoms
-Failsafes for every procedure[/CENTER]

[B][U][CENTER]VERSION 3.0[/U][/B]
- Added more anti random support.
- Increased anti ban
-Increased tolerance to ensure finding of objects/colors
- Should be totally stable now[/CENTER]





Please enjoy and try not to be so harsh! After all, this is my first public release ever!


Program DewrangeLumbridgeFlaxSpinner;


{$DEFINE SMART8}
{$I srl-osr/srl.simba}

var
flaxdtm: integer;
bowstringdtm: integer;
i: integer;
clear: integer;
count: integer;
stairs: integer;
menu: integer;
spinning: integer;
stairsup: integer;
flaxspun: integer;

const

// script version 3.0

flaxtospin = 313; /// how much flax do you want to spin?




procedure DeclarePlayers();
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Nick := '';
Name := '';
Pass := '';
Active := true;
Integers[0] := 1;
end;
end;




procedure declarevariables;
begin
flaxdtm := DTMFromString('mlwAAAHicY2dgYHBgYmBwB2I7IDYHYm8g9o XynwHlH0DxEyB+BcT3gPgtEDPYcDLEHj7OELnnAEPErn0Mwes2 McQfPwMWZwFK48KMeDAUAACZCxIF');
bowstringdtm := DTMFromString('mrAAAAHic42BgYDjBxMBwCogPAvE2IN4BxP uBeCcQHwLiY4xAOSDeC8Q7gXgrEG8C4uNQ3FwRyVCQ7gOmYWxk PhfQDnyYkQCGAQAVoxZz');
end;




procedure customantiban;

var
x, y: integer;

begin
x := (random(1000));
if (x >= 800) then
begin
y := (random(10));
case(y) of
1: boredhuman;
2: boredhuman;
3: randomrclick;
4: mmouseoffclient('random');
5: HoverMovingObject;
6: randomtab(true);
7: pickupmouse;
8: hoverskill(skill_crafting, false);
9: smallrandommouse;
10: hoverskill(skill_crafting, false);
end;
end;
end;




procedure godownstairsfailsafe;
var
x, y: integer;

begin
if (not(findcolorspiraltolerance(x, y, 1917807, 628, 45, 692, 71, 35))) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [605015, 4145992], 15) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(700, 1000));
writeln('we have made it downstairs');
findnormalrandoms;
end;
end;
end;
end;




procedure withdrawflax;
var
x, y: integer;

begin
if (bankscreen) then
begin
if (not(invempty)) then
begin
writeln('inventory not empty, depositing remaining items');
deposit(1, 28, true);
if finddtm(flaxdtm, x, y, 24, 60, 451, 282) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600)) then
begin
clickmouse2(mouse_right);
wait(randomrange(300, 350));
chooseoption('All');
sleep(randomrange(1000, 1500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
closebank
findnormalrandoms;
end;
end;
end;
end;
end;
end;

procedure climbdownstairs;

var
x, y: integer;

begin
if (not(bankscreen)) then
begin
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [605015, 4145992], 15) then
begin
writeln('found stairs, trying to go down');
wait(200);
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1000, 1500));
if (findcolorspiraltolerance(x, y, 3630998, 649, 48, 670, 71, 35)) then
begin
sleep(1500 + randomrange(500, 1000));
writeln('we have made it downstairs');
sleep(1 + random(10));
findnormalrandoms;
end else
repeat
sleep(randomrange(1000, 2000));
godownstairsfailsafe;
inc(stairs);
findnormalrandoms;
until((findcolorspiraltolerance(x, y, 1917807, 626, 44, 693, 78, 35) or (stairs = 2)));
end;
end;
end;
end;
end;





procedure openbankflax;
var
x, y: integer;
begin
setangle(SRL_angle_high);
makecompass('n')
if (invempty) then
begin
writeln('inventory is empty, trying to open bank');
end else
if (not(bankscreen)) then
begin
if findobjcustom(x, y, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 10) then
begin
writeln('attempting to open bank');
mmouse(x, y, 5, 5);
begin
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], randomrange(300, 400)) then
clickmouse2(mouse_left);
while (not(bankscreen)) do
writeln('bank not yet open');
inc(count)
sleep(500 + random(500));
mmouse(x, y, 2, 2);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
end;
begin
if (bankscreen) then
begin
writeln('bank should now be open');
sleep(2000);
end else
begin
writeln('could not open the bank!');
end;
end;
end;
end;
end;



procedure gettostairsfrombank;
var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 561, 215, 723, 459) then
begin
mmouse(605, 128, 2, 2); //
wait(200);
clickmouse2(mouse_left);
sleep(randomrange(6000, 7000)); // arrived at first set of stairs
findnormalrandoms;
end;
end;


procedure walktowheelfromstairs;

var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findcolorspiraltolerance(x, y, 1458038, 653, 46, 686, 82, 35) then
begin
mmouse(x, y, 2, 2);
wait(300);
clickmouse2(mouse_left);
makecompass('e');
sleep(1500 + (randomrange(1500, 2000)));
findnormalrandoms;
end
end;
end;


procedure spinflaxfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35))) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1800, 2100));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu open');
wait(100);
end else
writeln('unable to open menu, trying again');
end;
end;
end;
end;
end;



procedure spinflax;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
wait(randomrange(200, 300));
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(2200, 2400));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu is now open');
sleep(1000);
end else
repeat
sleep(randomrange(1000, 1500));
spinflaxfailsafe;
inc(menu);
sleep(randomrange(1900, 2100));
until ((findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) or (menu = 2))
end;
end;
end;
end;



procedure customfindallrandoms;

var
x, y, s, w, a, b: integer;

begin
if (findnormalrandoms) then
begin
findnormalrandoms;
sleep(randomrange(2500, 5000));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findcolorspiraltolerance(a, b, 1789819, 586, 38, 669, 92, 35) then
begin
mmouse(a, b, 2, 2);
wait(randomrange(500, 600));
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;
end;





procedure customlevelup;
var
x, y, s, w: integer;

begin
if (levelup) then
begin
clickcontinue(true);
sleep(randomrange(1000, 1500));
clickcontinue(true);
sleep(randomrange(2300, 2700));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;


procedure startspinning;

var
x, y: integer;

begin
sleep(1000);
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('we found the color');
mmouse(x, y, 2, 2);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
writeln('we have made it this far');
sleep(randomrange(400, 500));
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 25) then
begin
typesend('28');
end;
begin
repeat
sleep(randomrange(2400, 2700));
customfindallrandoms;
customantiban;
customlevelup;
customfindallrandoms;
inc(spinning);
until ((finddtm(bowstringdtm, x, y, 668, 416, 732, 471) or (spinning = 28)));
end;
end;
end;



procedure walktostairsfromwheel;

var
x, y: integer;

begin
if (finddtm(bowstringdtm, x, y, 664, 424, 739, 474) or (finddtm(flaxdtm, x, y, 553, 213, 726, 459))) then
begin
mmouse(675, 93, 5, 5);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
sleep(randomrange(4000, 5000));
findnormalrandoms;
end else
writeln('unable to walk to stairs');
end;




procedure climbupstairsfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 30))) then
begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
findnormalrandoms;
//changeangleforbank;
end;
end;
end;
end;

procedure climbupstairs;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) then
sleep(randomrange(1, 10));
writeln('made it back upstairs');
//changeangleforbank;
end else
repeat
writeln('did not make it upstairs, trying again');
findnormalrandoms;
climbupstairsfailsafe;
findnormalrandoms;
sleep(randomrange(400, 500));
//changeangleforbank;
inc(stairsup);
until((findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) or (stairsup = 2)));
end;
begin
//changeangleforbank;
end;
end;



procedure gettobank;

var
x, y, s, w: integer;

begin
//changeangleforbank;
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 75) then
begin
mmouse(597, 66, 3, 3);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(5000, 6000));
findnormalrandoms;
begin
if findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50))) then
begin
clickmouse2(mouse_left);
while (not(bankscreen)) do
sleep(1);
end;
end;
end;
end;
end;





begin
DeclarePlayers;
setupsrl;
declarevariables;
if (not(loggedin)) then
begin
loginplayer;
setrun(true);
end;
repeat
declarevariables;
openbankflax;
withdrawflax;
gettostairsfrombank;
climbdownstairs;
walktowheelfromstairs;
spinflax;
startspinning;
walktostairsfromwheel;
climbupstairs;
//changeangleforbank;
gettobank;
inc(flaxspun);
freedtm(bowstringdtm);
freedtm(flaxdtm);
until((flaxspun * 28) >= (flaxtospin)) or (not(loggedin));
writeln('congratulations, sinning comleted succesfully! =]');
end.

PotatoMonster

2013-04-04 05:27:32

Nice, gonna test this out when I get home and give my feedback!

Rawrr voids

2013-04-04 05:32:48

AWESOME, finally out! okay awesome coders or should i say scripters, not gonna blame this script, but if u guys would make it even more smooth like to add those randoms and then post it again here! it's for sure im gonna use this but would be awesome to leave it alone over night!
Thanks Dewrange

cave

2013-04-04 07:30:00

Thanks i really need 46 crafting for a quest and found crafting to be too much effort.

muffinman96

2013-04-04 07:42:41

great release.

GetHyper

2013-04-04 07:50:55

Thanks for this, will try it in about half hour and let you know how i get on.

dewrange

2013-04-04 09:23:26

thanks for all the feedback guys!

Yevin

2013-04-04 11:04:41

nvm, fixed.
will try the script :]

Fippezz1993

2013-04-04 11:30:49

you got an approx. flax spinned per hour to give us?

fluffycluffy

2013-04-04 12:24:20

Testing now

kanko

2013-04-04 12:25:27

does it have anti-ban?

fluffycluffy

2013-04-04 12:32:24

It working fairly well.
The first time i loaded it, it had troubles finding the spinning wheel. I restarted it and now it has problems making the bowstring. It has the spinning wheel option menu open and hit bowstring, typed in 28, and since it didn't hit "make x" it sits there waiting for bowstring to be made.

I'd suggest adding some fail safes, such as if its been waiting at the wheel for more then 3 minutes, try the procedure to make bowstrings again.

I can't complain though since I only leave the bot for about 10-15 minutes max before I'm back to babysit it.

Great first release, keep it up!

JadisMyDad

2013-04-04 13:28:18

Edit: It breaks when going back to the bank spins fine then the script just stops when it doesn't make it up stairs.

dannyrox

2013-04-04 13:43:22

From: JadisMyDad
Edit: It breaks when going back to the bank spins fine then the script just stops when it doesn't make it up stairs.


Same here

urbenx

2013-04-04 15:01:30

From: dannyrox
Same here


and same hereee

fluffycluffy

2013-04-04 15:33:16

Yeah can't seem to figure out why it does that.

dannyrox

2013-04-04 15:35:14

Well something goes wrong here:
procedure climbupstairs;
begin
if findcolorspiraltolerance(x, y, 5929348, 682, 430, 725, 457, 1)
then begin
makecompass('n');
if findobjcustom(x, y, ['Stair', 'case', 'ase', 'tair'], [606817,5988193], 5)
then begin
mmouse(x, y, 2, 2);
wait(500);
if waituptextmulti(['Stair', 'case'], 300)
then begin
clickmouse2(mouse_left);
sleep(1000);
mmouse(248, 406, 1, 1);
wait(500);
clickmouse2(mouse_left);
wait(1500);
end;
end;
end;
end;


just can't figure out what

gotitko

2013-04-04 17:38:45

From: urbenx
and same hereee


same here 4 lol and maby try to right click it on the script

dewrange

2013-04-04 17:57:48

i will do some testing and reworking of the script as soon as i can. I put together the script rather quickly and the code is pretty messy, i will take care of it. just keep posting bugs

gotitko

2013-04-04 18:10:09

From: dewrange
i will do some testing and reworking of the script as soon as i can. I put together the script rather quickly and the code is pretty messy, i will take care of it. just keep posting bugs


Alright it need to get past the climbing up steps and there might be more bugs but it took me 2 restart on the script to get it to fully flax them and gets to the steps

golgoo919

2013-04-04 18:11:33

YES finaly somone makes one ty <3 gonna go try it out

My House

2013-04-04 18:47:41

it clicks the stairs to go down, then it fails.

Compiled successfully in 609 ms.
SRL Compiled in 15 msec
Paired with SMART[3104]
Successfully executed.
[Hint] C:\Users\Serhat\Desktop\flax spinner.simba(11:1): Variable 'BOWSTRING' never used at line 10
Compiled successfully in 640 ms.
SRL Compiled in 0 msec
Paired with SMART[3104]
Successfully executed.

Panini123

2013-04-04 23:37:50

First spinner bot released. if it works i love you.

i joey i

2013-04-05 00:32:10

Cant click on downstairs. stops spinning the wheel once you level up.

dewrange

2013-04-05 00:55:09

for everyone having problems make sure brightness is all the way up and that you start with the bank open and flax in the to right corner. this will solve 99% of these problems

Verifone

2013-04-05 05:08:31

Could you fix misclicking the bow string?
Gets stuck then… Playing on max brightness.


Verifone

2013-04-05 06:04:03

posted twice on accident.

i joey i

2013-04-05 08:22:56

Please fix this!! I'll pay some one to make it flawless!

kickassmagee

2013-04-05 09:10:34

mouse moves around for a super long time before it finds what it needs to click and yea also getting the failing and stopping on climbing the stairs, tried to see what was wrong with the climb up stairs prcedure but couldnt figure it out??,,if anyone does let me know please

dewrange

2013-04-05 09:44:29

okay guys its 9:42 am eastern time right now. i just got out of work so i will be taking a short nap and rewriting the functions for the spinning wheel and the climbing of the stairs. hopefully this will solve everyone's problems. please be patient, thank you very much and keep giving feedback

Verifone

2013-04-05 10:08:06

From: dewrange
okay guys its 9:42 am eastern time right now. i just got out of work so i will be taking a short nap and rewriting the functions for the spinning wheel and the climbing of the stairs. hopefully this will solve everyone's problems. please be patient, thank you very much and keep giving feedback


THANKS ALOT. Would love the scipt if it worked for 100%

fluffycluffy

2013-04-05 10:48:33

From: dewrange
for everyone having problems make sure brightness is all the way up and that you start with the bank open and flax in the to right corner. this will solve 99% of these problems


Did that solve the stairs problem after spinning?

i joey i

2013-04-05 11:23:21

Any one else have the problem when you gain a crafting level you stop spinning the flax? That's where the bot gets stuck

cave

2013-04-05 11:31:32

From: kickassmagee
mouse moves around for a super long time before it finds what it needs to click and yea also getting the failing and stopping on climbing the stairs, tried to see what was wrong with the climb up stairs prcedure but couldnt figure it out??,,if anyone does let me know please

Same exact problem for me aswell.

MaetNameno

2013-04-05 12:03:51

Wish there could be a solid flax picker before this comes out LOL

Haxz

2013-04-05 12:21:17

I'll be making a flax picker + spinner after I got enough money for mems!

cave

2013-04-05 12:37:42

From: cave
Same exact problem for me aswell.

Oh btw , the problem is with the procedure "walktobank".

zacb

2013-04-05 13:04:22

mine get's stuck at climbing up the stairs, i'll try and fix it <.<, also anyone know if i was to do this legit grind no mistakes how much flax you can spin/hour?

i joey i

2013-04-05 13:48:13

From: MaetNameno
Wish there could be a solid flax picker before this comes out LOL

I have my own flax picker but I'm not releasing it (; I just need a spinner. If this isn't updated I'll make my own private one too

dazh

2013-04-05 14:39:39

Mine get stuck at climbing stairs ._.
I wonder if anyone test their script before releasing?..
:cartman:

TheRDJ

2013-04-05 16:07:25

Does it always get stuck at climbing stairs?
Need a nice flax spinner to spin 2k flax.

Edit: Climbed down stairs and got stuck, needs fixing.

ThelMightylThor

2013-04-05 17:29:33

mine banks out the flax and then walks to the north stairs and then just stands there. anybody know how to fix this?

Physic

2013-04-05 17:55:38

great job on ur first script !

i joey i

2013-04-05 21:25:34

does this work for anyone?

i joey i

2013-04-05 22:32:41

:/ wish it was updated

fluffycluffy

2013-04-06 00:12:54

Keep up the good work, the base of the script is good, just needs some tweaking.

MaetNameno

2013-04-06 00:20:57

From: i joey i
I have my own flax picker but I'm not releasing it (; I just need a spinner. If this isn't updated I'll make my own private one too


Cool story bro I'll let you know when I care.

i joey i

2013-04-06 00:21:50

From: MaetNameno
Cool story bro I'll let you know when I care.

Yeah i remember when I said that. Idiot grow up.

awong

2013-04-06 00:30:02

i got a working neitizot spinner i might release it some time

MaetNameno

2013-04-06 00:47:27

From: i joey i
Yeah i remember when I said that. Idiot grow up.

I highly suggest you avoid having this conversation with me in regards to who needs to "grow up". First off your grammar is completely horrid, a sign of not yet becoming educated. Secondly you are sitting behind a computer monitor telling someone who you do not know in real life to "grow up" which I can only take as a sign that you were not loved enough as a child. With that being said I do not know the last time I heard someone who was so-called "grown up" tell another person to grow up through the internet, which I can only take as a sure sign that you are in fact the one that needs this "growing up". So, back on topic now.

Get_Shaki

2013-04-06 09:15:02

Guys, I know I should work this out by myself, but tbh I have no idea how to do it. Anyone can help with this? [Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:203): Invalid number of parameters at line 228
Compiling failed.

EDIT: NVM, got it myself. Testing the script soon.

kiddmajik

2013-04-07 00:23:40

The script works fine getting the flax, going down the stairs and spinning it. Once its finished spinning it goes up the stairs, then waits. Then goes down the stairs. This keeps on going for about 3-4 times and then the script just stops.

dewrange

2013-04-07 09:06:20

script newly updated! completely rewritten and 1000% times more stable

kickassmagee

2013-04-07 10:23:48

hahaha holy shit it finally worked haha done a few loads successfully, congratz on getting it functioning now :D and thank u soooooooo much :D :D :D

Darcy_Oner

2013-04-07 11:30:19

Still doesnt work for me :S Worked the few trip then it stops, it cant find the room with the wheel in it.
It missclicks the room and walks outside of the room instead of inside.

baberuth239

2013-04-07 11:44:38

For me it wont recognize the bank or the flax.

i joey i

2013-04-07 12:10:42

still doesnt work

dewrange

2013-04-07 12:24:15

if you guys arent starting at the bank then it wont work.

dewrange

2013-04-07 12:29:21

even if you guys disable smart, then re-enable it, it wont work unless you stop the script and go back into the bank. i havent gotten around to finding a fix for that yet.

speedlicht

2013-04-07 13:19:26

Exception in Script: Unable to find file 'srl-osr/srl.simba' used from 'C:\Users\******\Downloads\flaxspinner.simba'

I've got this, can someone maybe help me a bit with it?

EDIT: fixed by myself.

dewrange

2013-04-07 13:28:25

script updated to version 3. should work immaculately for everybody now.

speedlicht

2013-04-07 13:51:22

I've managed to run it now, but when I activate the script it is searching in my bank for flax, but the flax is visible, its just not going to it.
How can I fix this?

dewrange

2013-04-07 14:20:15

when you start the script you MUST either log in with smart move your character to the bank, stop the script, activate smart, and then start the script. OR OR OR OR be logged out in the bank and allow smart to log you in and it will work.

eironjik

2013-04-07 14:40:33

it fails for me after 1 trip :S

dewrange

2013-04-07 15:50:08

well i posted a progress report or actually an image of over 1.5k flax spun. if you arent following directions to an exact then it will not work

heyaiam

2013-04-07 16:11:01

I started by inputting my username & password then starting the script.
I also put in the amount of flax needed to be spun.
Soon when it launched, I quickly disabled smart to put in my pin.
I started the script with the bank open and flax on the top left. It handled everything fine until it got upstairs.
It was just waving the mouse around like crazy confused on where to go and it ended up doing nothing.
I think if the script is working flawlessly for you, maybe you might want to give us a screenshot tutorial? or maybe a re-write which is most probably unlikely as it is working fine for you.

dewrange

2013-04-07 16:20:46

From: heyaiam
I started by inputting my username & password then starting the script.
I also put in the amount of flax needed to be spun.
Soon when it launched, I quickly disabled smart to put in my pin.
I started the script with the bank open and flax on the top left. It handled everything fine until it got upstairs.
It was just waving the mouse around like crazy confused on where to go and it ended up doing nothing.
I think if the script is working flawlessly for you, maybe you might want to give us a screenshot tutorial? or maybe a re-write which is most probably unlikely as it is working fine for you.


you almost got it down packed! what you have to do when you disable smart to input your pin is completely stop the script instead of just disabling smart. then when you input your pin and your character is logged in inside the bank you can re enable smart and start he script. it will work well

heyaiam

2013-04-07 16:29:35

How do I 'stop' instead of disable?
And I am also getting socket unpaired disconnected error :(
EDIT; Nvm found how to stop by pressing f2 :S
JUst the socket error :(

heyaiam

2013-04-07 16:35:25

What i DID WAS stop the script through simba by pressing f2 or just hitting the stop.
I disabled smart cause I can't even touch the runescape window itself.
THen I put my pin started the script and enabled smart.
Now I can't even test the script at all because it just keeps saying socket disconnected unpairing
Sucks cause all these guys are replying to threads that have been made recently but no one will even reply to my thread.
http://postimg.org/image/5dir17bch/ here is my problem
the thread http://villavu.com/forum/showthread.php?t=100897
So much for people trying to help out lol.
EDIT: Wow finally I got it the socket working.. now time for script test..

dewrange

2013-04-07 17:03:55

From: heyaiam
What i DID WAS stop the script through simba by pressing f2 or just hitting the stop.
I disabled smart cause I can't even touch the runescape window itself.
THen I put my pin started the script and enabled smart.
Now I can't even test the script at all because it just keeps saying socket disconnected unpairing
Sucks cause all these guys are replying to threads that have been made recently but no one will even reply to my thread.
http://postimg.org/image/5dir17bch/ here is my problem
the thread http://villavu.com/forum/showthread.php?t=100897
So much for people trying to help out lol.
EDIT: Wow finally I got it the socket working.. now time for script test..


okay awesome! let me know how it goes. if it still fails i will upload a video guide

heyaiam

2013-04-07 17:06:24

Script is doing the same thing :S I've tried multiple times restarting but it clearly doesn't know how to bank lol

EDIT: OMG ITS WORKING NOPW WOOOHO

EDIT: It was working awesome for a few trips now it's just stuffing up again damn
it stringed half of them and it's walking around like a drunk dude lol

dewrange

2013-04-07 17:40:48

From: heyaiam
Script is doing the same thing :S I've tried multiple times restarting but it clearly doesn't know how to bank lol

EDIT: OMG ITS WORKING NOPW WOOOHO

EDIT: It was working awesome for a few trips now it's just stuffing up again damn
it stringed half of them and it's walking around like a drunk dude lol


yeah unfortunately that's the random support. hat means it solved a random but couldnt continue scripting. i am currently working on a way to fix this and believe i have found a fix. i am just waiting for a random now to see if it works.

kiddmajik

2013-04-07 17:56:41

The script needs work. It can get the flax, go down the stairs, spin it, go back up. Then when going back to the bank it misclicked and gets confused and searches for the bank. "Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 780
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]
"

hollapatrol

2013-04-07 18:00:51

It hurts

colinmacdonald92

2013-04-07 19:18:12

i wish it'd actually work :(, keep it up it'd be very useful bs is killing my bank for alchs.

i joey i

2013-04-07 21:19:25

wish it worked :(

silent care

2013-04-07 23:11:34

Help please
[Error] C:\Documents and Settings\Alex\My Documents\Downloads\flaxspinner v3.simba(382:22): Invalid number of parameters at line 371
Compiling failed.

ThelMightylThor

2013-04-07 23:44:08

THANK YOU! for the first time ever it is spinning flax on its own, you sir are a god among men in my eyes

dewrange

2013-04-08 01:28:13

From: ThelMightylThor
THANK YOU! for the first time ever it is spinning flax on its own, you sir are a god among men in my eyes


my pleasure!

kickassmagee

2013-04-08 05:41:45

still abit too unstable for me, it sometimes misses the stairs going down then thinks its downstairs and starts looking for the spinning wheel, and vice versa (downstairs thinking its upstairs)…still a good script once that is sorted all it really needs is working anti randoms :/

heyaiam

2013-04-08 06:35:07

I can confirm this script is not working.

dewrange

2013-04-08 09:21:04

From: heyaiam
I can confirm this script is not working.

details please

kickassmagee

2013-04-08 09:45:47

From: dewrange
details please

well like i posted before it will misclick the stairs coming up, then it thinks its made it upstairs but it hasnt and starts running around the 2nd floor…when it does make it upstairs it often cant find the bank(for me atleast) and runs around the top floor

it usually does like 3-4loads no problem but then messes up :?

dewrange

2013-04-08 09:52:14

From: kickassmagee
well like i posted before it will misclick the stairs coming up, then it thinks its made it upstairs but it hasnt and starts running around the 2nd floor…when it does make it upstairs it often cant find the bank(for me atleast) and runs around the top floor

it usually does like 3-4loads no problem but then messes up :?


okay, thank you! i will look into the procedures for coming upstairs, checking if it is upstairs, and update bank finding

izzzy11

2013-04-08 10:00:04

finally just got it to do one load by itself! after about 4-5 unsuccessful loads. The problems I see instantly are; the paths to and from bank, trouble climbing the stairs, and simple misclicks will throw the whole script off. The spinning aspect works pretty well though.

digunderme

2013-04-08 10:45:34

ok its rly messed up, every time it goes to bank it just fails and can't find the bank. Also running from randoms when the random is long over

swimdude

2013-04-08 11:39:40

Script is working fine for me. It has a few hiccups every now and then. I'm still in the process of learning the syntax for all of this and will be adding to this script. If possible, setup a joint effort with Dewrange and see if we can get this script to be flawless.

Thibaultx

2013-04-08 13:02:50

it's a good script, but unfortunatelly it still has some problems. after the first run, it missed the staircase, and it was stuck because the script tought it was upstairs. I restarted and after the spinning, it ran to the north instead of south. It also got stuck after I leveled up.
Sometimes, if he can't find what he's looking for, hes just moving the mouse very very fast to some places on the screen, which increase the ban rate.. :(
Please ad a failsafe for this :)

heyaiam

2013-04-08 16:08:33

From: dewrange
details please

Sometimes it just turns 3/4 or even half of the inventory into bowstrings and runs around crazy.
It just gets stuck locating the bank when it's going to bank.
It just takes the biggest detour at the flaxing level.
It completely stuffs up when the door is open.
When I disable smart because a random happens or something and then re enable with the bank open it suddenly becomes retarded and just walks around the bank. Sometimes it may or may not work in that case.
And yes, I pressed f2 and stopped the script and guess what happened?
It said my f***ing username out loud and basically typed my password out I was so f***ing pissed of and lucky that I JUST stopped the script before it would have pressed enter on my password.
Generally, it's just not good at locating anything. I was on a streak of 3 - 4 runs then it stuffed up because of failing to locate the spinner by detouring OR failing to locate the bank. It would just walk to the cannon side and boom stops nothing.
I also want to point out that when I disable and re enable smart for other scripts nothing goes wrong at all.
It seems that most if not all simba scripts require luck to finally get it working by continuously restrarting

JhzBlanco

2013-04-08 17:21:28

Script is fucking up so bad when it levels up, it goes haywire and runs back and forth from the stairs to the spinning wheel back and forth

JhzBlanco

2013-04-08 17:23:17

when it is about to choose the flax option and how many it's going to spin, it clicks on the wrench on the bottom of the inventory.

baberuth239

2013-04-08 18:09:52

Has hard time finding the flax and messes up on the stair case a lot, but otherwise good! I've never written a script before but I have a lot of respect to those who do!

i joey i

2013-04-08 18:11:45

gets stuck so much

famguy74

2013-04-08 18:14:45

Honestly this is a good script. It could definitely use some improvement though. I can get about 4-5 good runs before something goes awry. I noticed a common problem that keeps happening is the script will click to far to the right of the bank and then the script fails. Also when my crafting levels up like past people have said the script kind of freaks out. So maybe you could write a code so on the level up the script simply restarts spinning. If these two things are fixed the script will work perfectly for me. Thanks for this script it's the only decent one I found and now I can go AFK for up to 10 minutes at a time instead of flaxing myself.

EDIT: I forgot idk about other randoms but on the Old Man Random the script ignores this random.

marijuana420

2013-04-08 18:17:29

ideas

set default place for flax that way you dont have to try to "find" it.. in the bank.. aka:first slot of bank

swimdude

2013-04-08 19:25:49

Hey guys,

I've made some minor tweaks to the code to make it run a bit smoother. This works on my computer, but since I can't test on another machine, I cannot guarantee it will work for you.


Version:
  • Version 3.0 Revision 001

Fixes:
  • Changed the coordinates for clicking near the spinwheel. Bot would randomly click outside the room causing the bot to run around and get lost.
  • Changed the coordinates when coming up from the stairs. Again, the bot would click outside the bank and cause errors.
  • Also updated a few colors and changed some tolerances to make clicking a little more accurate.

Add Ons:
  • Added counter in the debug screen. Keeps track of times the script runs and how many flax flaxed.

Note:
  • This does not fix any big time errors, but it should help with smaller ones. Will get stuck on randoms, so make sure you babysit.

Picture Proof:

Code:
Program DewrangeLumbridgeFlaxSpinner;


{$DEFINE SMART8}
{$I srl-osr/srl.simba}

var
flaxdtm: integer;
bowstringdtm: integer;
i: integer;
clear: integer;
count: integer;
stairs: integer;
menu: integer;
spinning: integer;
stairsup: integer;
flaxspun: integer;
numberOfTimes: integer;

const

// script version 3.0
// swimdude rev. 001

flaxtospin = 850; /// how much flax do you want to spin?




procedure DeclarePlayers();
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Nick := '';
Name := '';
Pass := '';
Active := true;
Integers[0] := 1;
end;
end;




procedure declarevariables;
begin
flaxdtm := DTMFromString('mlwAAAHicY2dgYHBgYmBwB2I7IDYHYm8g9oXynwHlH0DxEyB+BcT3gPgtEDPYcDLEHj7OELnnAEPErn0Mwes2McQfPwMWZwFK48KMeDAUAACZCxIF');
bowstringdtm := DTMFromString('mrAAAAHic42BgYDjBxMBwCogPAvE2IN4BxPuBeCcQHwLiY4xAOSDeC8Q7gXgrEG8C4uNQ3FwRyVCQ7gOmYWxkPhfQDnyYkQCGAQAVoxZz');
end;


procedure customantiban;

var
x, y: integer;

begin
x := (random(1000));
if (x >= 800) then
begin
y := (random(10));
case(y) of
1: boredhuman;
2: boredhuman;
3: randomrclick;
4: mmouseoffclient('random');
5: HoverMovingObject;
6: randomtab(true);
7: pickupmouse;
8: hoverskill(skill_crafting, false);
9: smallrandommouse;
10: hoverskill(skill_crafting, false);
end;
end;
end;




procedure godownstairsfailsafe;
var
x, y: integer;

begin
if (not(findcolorspiraltolerance(x, y, 1917807, 628, 45, 692, 71, 35))) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [605015, 4145992], 15) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(700, 1000));
writeln('we have made it downstairs');
findnormalrandoms;
end;
end;
end;
end;




procedure withdrawflax;
var
x, y: integer;

begin
if (bankscreen) then
begin
if (not(invempty)) then
begin
writeln('inventory not empty, depositing remaining items');
deposit(1, 28, true);
if finddtm(flaxdtm, x, y, 24, 60, 451, 282) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600)) then
begin
clickmouse2(mouse_right);
wait(randomrange(300, 350));
chooseoption('All');
sleep(randomrange(1000, 1500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
closebank
findnormalrandoms;
end;
end;
end;
end;
end;
end;

procedure climbdownstairs;

var
x, y: integer;

begin
if (not(bankscreen)) then
begin
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [604499, 4145992], 10) then
begin
writeln('found stairs, trying to go down');
wait(200);
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1000, 1500));
if (findcolorspiraltolerance(x, y, 3630998, 649, 48, 670, 71, 35)) then
begin
sleep(1500 + randomrange(500, 1000));
writeln('we have made it downstairs');
sleep(1 + random(10));
findnormalrandoms;
end else
repeat
sleep(randomrange(1000, 2000));
godownstairsfailsafe;
inc(stairs);
findnormalrandoms;
until((findcolorspiraltolerance(x, y, 1917807, 626, 44, 693, 78, 35) or (stairs = 2)));
end;
end;
end;
end;
end;





procedure openbankflax;
var
x, y: integer;
begin
setangle(SRL_angle_high);
makecompass('n')
if (invempty) then
begin
writeln('inventory is empty, trying to open bank');
end else
if (not(bankscreen)) then
begin
if findobjcustom(x, y, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 10) then
begin
writeln('attempting to open bank');
mmouse(x, y, 5, 5);
begin
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], randomrange(300, 400)) then
clickmouse2(mouse_left);
while (not(bankscreen)) do
writeln('bank not yet open');
inc(count)
sleep(500 + random(500));
mmouse(x, y, 2, 2);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
end;
begin
if (bankscreen) then
begin
writeln('bank should now be open');
sleep(2000);
end else
begin
writeln('could not open the bank!');
end;
end;
end;
end;
end;



procedure gettostairsfrombank;
var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 561, 215, 723, 459) then
begin
mmouse(625, 128, 2, 2); //
wait(200);
clickmouse2(mouse_left);
sleep(randomrange(6000, 7000)); // arrived at first set of stairs
findnormalrandoms;
end;
end;


procedure walktowheelfromstairs;

var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findcolorspiraltolerance(x, y, 1458038, 653, 46, 686, 82, 35) then
begin
mmouse(667, 63, 2, 2);
wait(300);
clickmouse2(mouse_left);
makecompass('e');
sleep(1500 + (randomrange(1500, 2000)));
findnormalrandoms;
end
end;
end;


procedure spinflaxfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35))) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1800, 2100));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu open');
wait(100);
end else
writeln('unable to open menu, trying again');
end;
end;
end;
end;
end;



procedure spinflax;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
wait(randomrange(200, 300));
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(2200, 2400));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu is now open');
sleep(1000);
end else
repeat
sleep(randomrange(1000, 1500));
spinflaxfailsafe;
inc(menu);
sleep(randomrange(1900, 2100));
until ((findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) or (menu = 2))
end;
end;
end;
end;



procedure customfindallrandoms;

var
x, y, s, w, a, b: integer;

begin
if (findnormalrandoms) then
begin
findnormalrandoms;
sleep(randomrange(2500, 5000));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findcolorspiraltolerance(a, b, 1789819, 586, 38, 669, 92, 35) then
begin
mmouse(a, b, 2, 2);
wait(randomrange(500, 600));
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;
end;





procedure customlevelup;
var
x, y, s, w: integer;

begin
if (levelup) then
begin
clickcontinue(true);
sleep(randomrange(1000, 1500));
clickcontinue(true);
sleep(randomrange(2300, 2700));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;


procedure startspinning;

var
x, y: integer;

begin
sleep(1000);
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('we found the color');
mmouse(x, y, 2, 2);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
writeln('we have made it this far');
sleep(randomrange(400, 500));
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 25) then
begin
typesend('28');
end;
begin
repeat
sleep(randomrange(2400, 2700));
customfindallrandoms;
customantiban;
customlevelup;
customfindallrandoms;
inc(spinning);
until ((finddtm(bowstringdtm, x, y, 668, 416, 732, 471)));
end;
end;
end;



procedure walktostairsfromwheel;

var
x, y: integer;

begin
if (finddtm(bowstringdtm, x, y, 664, 424, 739, 474)) then
begin
mmouse(675, 93, 5, 5);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
sleep(randomrange(4000, 5000));
findnormalrandoms;
end else
writeln('unable to walk to stairs');
end;




procedure climbupstairsfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 30))) then
begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
findnormalrandoms;
//changeangleforbank;
end;
end;
end;
end;

procedure climbupstairs;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) then
sleep(randomrange(1, 10));
writeln('made it back upstairs');
//changeangleforbank;
end else
repeat
writeln('did not make it upstairs, trying again');
findnormalrandoms;
climbupstairsfailsafe;
findnormalrandoms;
sleep(randomrange(400, 500));
//changeangleforbank;
inc(stairsup);
until((findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) or (stairsup = 2)));
end;
begin
//changeangleforbank;
end;
end;



procedure gettobank;

var
x, y, s, w: integer;

begin
//changeangleforbank;
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 75) then
begin
mmouse(610, 75, 3, 3);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(4000, 5000));
findnormalrandoms;
begin
if findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50))) then
begin
clickmouse2(mouse_left);
while (not(bankscreen)) do
sleep(1);
end;
end;
end;
end;
end;





begin
DeclarePlayers;
setupsrl;
declarevariables;
if (not(loggedin)) then
begin
loginplayer;
setrun(true);
end;
repeat
clearDebug;
writeln('================================');
writeln('Flax spun: ' + IntToStr(flaxspun * 28));
writeln('Script has run ' + IntToStr(numberOfTimes) + ' times');
writeln('================================');
declarevariables;
openbankflax;
withdrawflax;
gettostairsfrombank;
climbdownstairs;
walktowheelfromstairs;
spinflax;
startspinning;
walktostairsfromwheel;
climbupstairs;
//changeangleforbank;
gettobank;
inc(flaxspun);
freedtm(bowstringdtm);
freedtm(flaxdtm);
inc(numberOfTimes);
until((flaxspun * 28) >= (flaxtospin)) or (not(loggedin));
writeln('congratulations, sinning comleted succesfully! =]');
end.

JhzBlanco

2013-04-08 19:52:36

Bot believes it has made it upstairs and it really hasn't…
Stays on second floor

JhzBlanco

2013-04-08 19:54:55

Randomly stops spinning the flax out of nowhere and decides to run east…

i joey i

2013-04-08 21:09:22

are you even actually updating?

snapped01

2013-04-08 21:35:34

works well… thanks
From: swimdude
Hey guys,

I've made some minor tweaks to the code to make it run a bit smoother. This works on my computer, but since I can't test on another machine, I cannot guarantee it will work for you.


Version:
  • Version 3.0 Revision 001

Fixes:
  • Changed the coordinates for clicking near the spinwheel. Bot would randomly click outside the room causing the bot to run around and get lost.
  • Changed the coordinates when coming up from the stairs. Again, the bot would click outside the bank and cause errors.
  • Also updated a few colors and changed some tolerances to make clicking a little more accurate.

Add Ons:
  • Added counter in the debug screen. Keeps track of times the script runs and how many flax flaxed.

Note:
  • This does not fix any big time errors, but it should help with smaller ones. Will get stuck on randoms, so make sure you babysit.

Picture Proof:
  • Coming Soon!

Code:
Program DewrangeLumbridgeFlaxSpinner;


{$DEFINE SMART8}
{$I srl-osr/srl.simba}

var
flaxdtm: integer;
bowstringdtm: integer;
i: integer;
clear: integer;
count: integer;
stairs: integer;
menu: integer;
spinning: integer;
stairsup: integer;
flaxspun: integer;
numberOfTimes: integer;

const

// script version 3.0
// swimdude rev. 001

flaxtospin = 850; /// how much flax do you want to spin?




procedure DeclarePlayers();
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Nick := '';
Name := '';
Pass := '';
Active := true;
Integers[0] := 1;
end;
end;




procedure declarevariables;
begin
flaxdtm := DTMFromString('mlwAAAHicY2dgYHBgYmBwB2I7IDYHYm8g9oXynwHlH0DxEyB+BcT3gPgtEDPYcDLEHj7OELnnAEPErn0Mwes2McQfPwMWZwFK48KMeDAUAACZCxIF');
bowstringdtm := DTMFromString('mrAAAAHic42BgYDjBxMBwCogPAvE2IN4BxPuBeCcQHwLiY4xAOSDeC8Q7gXgrEG8C4uNQ3FwRyVCQ7gOmYWxkPhfQDnyYkQCGAQAVoxZz');
end;


procedure customantiban;

var
x, y: integer;

begin
x := (random(1000));
if (x >= 800) then
begin
y := (random(10));
case(y) of
1: boredhuman;
2: boredhuman;
3: randomrclick;
4: mmouseoffclient('random');
5: HoverMovingObject;
6: randomtab(true);
7: pickupmouse;
8: hoverskill(skill_crafting, false);
9: smallrandommouse;
10: hoverskill(skill_crafting, false);
end;
end;
end;




procedure godownstairsfailsafe;
var
x, y: integer;

begin
if (not(findcolorspiraltolerance(x, y, 1917807, 628, 45, 692, 71, 35))) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [605015, 4145992], 15) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(700, 1000));
writeln('we have made it downstairs');
findnormalrandoms;
end;
end;
end;
end;




procedure withdrawflax;
var
x, y: integer;

begin
if (bankscreen) then
begin
if (not(invempty)) then
begin
writeln('inventory not empty, depositing remaining items');
deposit(1, 28, true);
if finddtm(flaxdtm, x, y, 24, 60, 451, 282) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600)) then
begin
clickmouse2(mouse_right);
wait(randomrange(300, 350));
chooseoption('All');
sleep(randomrange(1000, 1500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
closebank
findnormalrandoms;
end;
end;
end;
end;
end;
end;

procedure climbdownstairs;

var
x, y: integer;

begin
if (not(bankscreen)) then
begin
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [604499, 4145992], 10) then
begin
writeln('found stairs, trying to go down');
wait(200);
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1000, 1500));
if (findcolorspiraltolerance(x, y, 3630998, 649, 48, 670, 71, 35)) then
begin
sleep(1500 + randomrange(500, 1000));
writeln('we have made it downstairs');
sleep(1 + random(10));
findnormalrandoms;
end else
repeat
sleep(randomrange(1000, 2000));
godownstairsfailsafe;
inc(stairs);
findnormalrandoms;
until((findcolorspiraltolerance(x, y, 1917807, 626, 44, 693, 78, 35) or (stairs = 2)));
end;
end;
end;
end;
end;





procedure openbankflax;
var
x, y: integer;
begin
setangle(SRL_angle_high);
makecompass('n')
if (invempty) then
begin
writeln('inventory is empty, trying to open bank');
end else
if (not(bankscreen)) then
begin
if findobjcustom(x, y, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 10) then
begin
writeln('attempting to open bank');
mmouse(x, y, 5, 5);
begin
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], randomrange(300, 400)) then
clickmouse2(mouse_left);
while (not(bankscreen)) do
writeln('bank not yet open');
inc(count)
sleep(500 + random(500));
mmouse(x, y, 2, 2);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
end;
begin
if (bankscreen) then
begin
writeln('bank should now be open');
sleep(2000);
end else
begin
writeln('could not open the bank!');
end;
end;
end;
end;
end;



procedure gettostairsfrombank;
var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 561, 215, 723, 459) then
begin
mmouse(625, 128, 2, 2); //
wait(200);
clickmouse2(mouse_left);
sleep(randomrange(6000, 7000)); // arrived at first set of stairs
findnormalrandoms;
end;
end;


procedure walktowheelfromstairs;

var
x, y: integer;

begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findcolorspiraltolerance(x, y, 1458038, 653, 46, 686, 82, 35) then
begin
mmouse(667, 63, 2, 2);
wait(300);
clickmouse2(mouse_left);
makecompass('e');
sleep(1500 + (randomrange(1500, 2000)));
findnormalrandoms;
end
end;
end;


procedure spinflaxfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35))) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1800, 2100));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu open');
wait(100);
end else
writeln('unable to open menu, trying again');
end;
end;
end;
end;
end;



procedure spinflax;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15) then
begin
if finddtm(flaxdtm, x, y, 554, 205, 596, 248) then
begin
wait(randomrange(200, 300));
mmouse(s, w, 2, 2);
if waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(2200, 2400));
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('spin menu is now open');
sleep(1000);
end else
repeat
sleep(randomrange(1000, 1500));
spinflaxfailsafe;
inc(menu);
sleep(randomrange(1900, 2100));
until ((findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) or (menu = 2))
end;
end;
end;
end;



procedure customfindallrandoms;

var
x, y, s, w, a, b: integer;

begin
if (findnormalrandoms) then
begin
findnormalrandoms;
sleep(randomrange(2500, 5000));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findcolorspiraltolerance(a, b, 1789819, 586, 38, 669, 92, 35) then
begin
mmouse(a, b, 2, 2);
wait(randomrange(500, 600));
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;
end;





procedure customlevelup;
var
x, y, s, w: integer;

begin
if (levelup) then
begin
clickcontinue(true);
sleep(randomrange(1000, 1500));
clickcontinue(true);
sleep(randomrange(2300, 2700));
if (not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30) then
begin
mmouse(259, 142, 10, 5);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;


procedure startspinning;

var
x, y: integer;

begin
sleep(1000);
if findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35) then
begin
writeln('we found the color');
mmouse(x, y, 2, 2);
if waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300)) then
writeln('we have made it this far');
sleep(randomrange(400, 500));
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 25) then
begin
typesend('28');
end;
begin
repeat
sleep(randomrange(2400, 2700));
customfindallrandoms;
customantiban;
customlevelup;
customfindallrandoms;
inc(spinning);
until ((finddtm(bowstringdtm, x, y, 668, 416, 732, 471)));
end;
end;
end;



procedure walktostairsfromwheel;

var
x, y: integer;

begin
if (finddtm(bowstringdtm, x, y, 664, 424, 739, 474)) then
begin
mmouse(675, 93, 5, 5);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
sleep(randomrange(4000, 5000));
findnormalrandoms;
end else
writeln('unable to walk to stairs');
end;




procedure climbupstairsfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 30))) then
begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
findnormalrandoms;
//changeangleforbank;
end;
end;
end;
end;

procedure climbupstairs;

var
x, y, s, w: integer;

begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) then
sleep(randomrange(1, 10));
writeln('made it back upstairs');
//changeangleforbank;
end else
repeat
writeln('did not make it upstairs, trying again');
findnormalrandoms;
climbupstairsfailsafe;
findnormalrandoms;
sleep(randomrange(400, 500));
//changeangleforbank;
inc(stairsup);
until((findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) or (stairsup = 2)));
end;
begin
//changeangleforbank;
end;
end;



procedure gettobank;

var
x, y, s, w: integer;

begin
//changeangleforbank;
if findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 75) then
begin
mmouse(610, 75, 3, 3);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(4000, 5000));
findnormalrandoms;
begin
if findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15) then
begin
mmouse(s, w, 2, 2);
if waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50))) then
begin
clickmouse2(mouse_left);
while (not(bankscreen)) do
sleep(1);
end;
end;
end;
end;
end;





begin
DeclarePlayers;
setupsrl;
declarevariables;
if (not(loggedin)) then
begin
loginplayer;
setrun(true);
end;
repeat
clearDebug;
writeln('================================');
writeln('Flax spun: ' + IntToStr(flaxspun * 28));
writeln('Script has run ' + IntToStr(numberOfTimes) + ' times');
writeln('================================');
declarevariables;
openbankflax;
withdrawflax;
gettostairsfrombank;
climbdownstairs;
walktowheelfromstairs;
spinflax;
startspinning;
walktostairsfromwheel;
climbupstairs;
//changeangleforbank;
gettobank;
inc(flaxspun);
freedtm(bowstringdtm);
freedtm(flaxdtm);
inc(numberOfTimes);
until((flaxspun * 28) >= (flaxtospin)) or (not(loggedin));
writeln('congratulations, sinning comleted succesfully! =]');
end.

Darcy_Oner

2013-04-08 23:22:59

Still doesnt work, Cant find the bank.

kickassmagee

2013-04-09 02:03:05

version 3 before the revisioin is much more stable for me, i can atleast do 3-5loads before it effs out, with the revision i cant even do one -_-

AIex

2013-04-09 02:59:41

Can't find the bank at all.

king pkar

2013-04-09 05:56:36

Is it going to be fixed ?

dewrange

2013-04-09 06:10:43

From: king pkar
Is it going to be fixed ?


yes this will be fixed, expect a lot more revisions in the next few days

king pkar

2013-04-09 06:32:54

From: dewrange
yes this will be fixed, expect a lot more revisions in the next few days


Thank you ! Keep us informed about the progress :redface:

hollapatrol

2013-04-09 09:45:23

row row fight the powa

nikm

2013-04-09 15:43:19

I have successfully downloaded SMART and everything else. When I run the script, it takes a very long time to load "Loading SMART: http://oldschool77.runescape.com" and then later it says "Could not start up Old School RuneScape or RSReady was not detected!
Successfully executed." Am i doing something wrong?

vigilante123

2013-04-09 15:44:51

it works sometimes…really patchy though. Tends to get stuck by the bank and at the stairs; I hope you're able to figure out the bugs :) keep up the good work

digunderme

2013-04-09 20:54:51

how long till update

mfreezy

2013-04-09 23:03:22

Not a bad script at all, thanks for it :) dont post "now 1000% stable" tho because its really not.. i can usually get it to run alright for 10 or so runs but then i gotta restart it. needs some tweaking but its almost there! just have to kinda babysit it for now.

Thanks!

swimdude

2013-04-10 00:27:46

Revision 002 update coming very soon!

Edit #1 : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 : Fixing bugs. ETA 1 hour.
Edit #3 : Still trying to find the cause of a bug that crashes the script. ETA: NOW!

Carnaflex

2013-04-10 01:14:21

Works fine for me, only problem with it so far is when you get a level it will only do 3 - 4 at a time because it stops and clicks it to make more.

Worked for a couple hundred then just bugs out.

Hooch

2013-04-10 07:36:31

Pretty buggy, Does first load fine then gets lost on the way back to the bank.

vigilante123

2013-04-10 08:59:54

From: swimdude
Revision 002 update coming very soon!

Edit #1 : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 : Fixing bugs. ETA 1 hour.
Edit #3 : Still trying to find the cause of a bug that crashes the script. ETA: N/A



are you working on this with dewrange??

marijuana420

2013-04-10 09:04:43

From: swimdude
Revision 002 update coming very soon!

Edit #1 : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 : Fixing bugs. ETA 1 hour.
Edit #3 : Still trying to find the cause of a bug that crashes the script. ETA: N/A


sweet waiting i also did a few changes so would like to see yours.. 1 thing i changed is banking method.. use first slot for faster banking and more accrate

swagsack

2013-04-10 18:31:13

Problem?

~~~

Error: Exception: FindDTMs: DTM[] is not valid. at line 118
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

Shadalah

2013-04-10 18:57:58

lvl up -> goes nuts, random -> freaks out like headless chicken. Meh almost died to Hyde when were writing this :D
Anti-randoms aint working 80% of the time. Havnt experienced much of miss clicks as the script died every 4-10 runs.
Good to babysit and watch a movie or 2 while stringing.
Evil chicken makes this script hurt bad as character dosnt run far enuff just to btw.
Would be nice if script wouldnt always run to same spots when banking/going to spinning wheel. And been wondering why it banks sometimes 3/4 inventory of strings done. Good luck fixing and thanks for afk bot, beter than doing by hands :P

swimdude

2013-04-10 20:52:19

Hey guys,

Another revision here. Fixes a lot of issues people were having. The script will occasionally mess up but it is way better. Since you always get a random at the beginning of the spin cycle, simply hit "disable SMART", and do the random. Then click the spin wheel and craft 28 strings. While your bot is crafting the strings re-click the "enable SMART" button and your bot will resume until the next random :) And like I've said before, babysit your bot to minimize bans. Post any bugs if you find them.

Version:
  • Version 3.0 Revision 002

Fixes:
  • Updated coordinates for clicking for more accurate clicks.
  • Uses color tracking to get location of your bot.
  • Fixed a lot of places the bot would get stuck.

Add Ons:
  • Location Finder; You can now start the script in the spinning room or in the bank with/without flax/bs in your inventory.

Note(s):
  • **ATTENTION: RANDOMS HAVE BEEN DISABLED BECAUSE THEY ARE BUGGY. USE AT YOUR OWN RISK!**
  • Also, Since this bot uses colour detection techniques and Runescape changes the colours every time you log in/change worlds. If the script keeps getting stuck at a certain point, either wait a little while and it will find itself or exit the client or change worlds.
  • Post any other bugs you may find here.

Video:
http://www.youtube.com/watch?v=cEV74iADcrY

Picture Proof:

Code:

Program DewrangeLumbridgeFlaxSpinner;


{$DEFINE SMART8}
{$i srl-osr/srl.simba}


var
flaxdtm: integer;
bowstringdtm: integer;
i: integer;
clear: integer;
count: integer;
stairs: integer;
menu: integer;
spinning: integer;
stairsup: integer;
flaxspun: integer;
numberOfTimes: integer;
s, w: integer;

const

// script version 3.0
// swimdude rev. 002

flaxtospin = 1000; /// how much flax do you want to spin?




procedure DeclarePlayers();
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Nick := '';
Name := '';
Pass := '';
Active := true;
Integers[0] := 1;
end;
end;




procedure declarevariables;
begin
flaxdtm := DTMFromString('mlwAAAHicY2dgYHBgYmBwB2I7IDYHYm8g9oXynwHlH0DxEyB+BcT3gPgtEDPYcDLEHj7OELnnAEPErn0Mwes2McQfPwMWZwFK48KMeDAUAACZCxIF');
bowstringdtm := DTMFromString('mrAAAAHic42BgYDjBxMBwCogPAvE2IN4BxPuBeCcQHwLiY4xAOSDeC8Q7gXgrEG8C4uNQ3FwRyVCQ7gOmYWxkPhfQDnyYkQCGAQAVoxZz');
end;




procedure customlevelup;
var
x, y, s, w: integer;

begin
if(levelup) then
begin
clickcontinue(true);
sleep(randomrange(1000, 1500));
clickcontinue(true);
sleep(randomrange(2300, 2700));
if(not(finddtm(bowstringdtm, x, y, 668, 416, 733, 471))) then
begin
if(findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 6447721, 806258], 15)) then
begin
mmouse(s, w, 3, 3);
if(waituptextmulti(['Spin', 'wheel', 'eel'], (100 + (randomrange(100, 200))))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(900, 1000));
if(findcolorspiraltolerance(x, y, 2070783, 220, 31, 262, 49, 30)) then
begin
mmouse(259, 142, 10, 5);
if(waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 35) then
begin
typesend('28');
end;
end;
end;
end;
end;
end;
end;
end;






procedure godownstairsfailsafe;
var
x, y: integer;

begin
if (not(findcolorspiraltolerance(x, y, 1917807, 628, 45, 692, 71, 35))) then
begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [605015, 4145992], 15) then
begin
mmouse(x, y, 5, 5);
if waituptextmulti(['Staircase', 'Stair', 'air', 'case', 'ase'], randomrange(300, 500)) then
begin
clickmouse2(mouse_left);
sleep(randomrange(700, 1000));
end;
end;
end;
end;


procedure spinflaxfailsafe;

var
x, y, s, w: integer;

begin
if(not(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35))) then
begin
if(finddtm(flaxdtm, x, y, 554, 205, 596, 248)) then
begin
if(findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15)) then
begin
mmouse(s, w, 2, 2);
if(waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300)))) then
begin
clickmouse2(mouse_left);
sleep(randomrange(1800, 2100));
end;
end;
end;
end;
end;



procedure walktostairsfromwheel;

var
x, y: integer;

begin
makecompass('n');
if (finddtm(bowstringdtm, x, y, 664, 424, 739, 474)) then
begin
mmouse(628, 128, 5, 5);
wait(randomrange(1000,1200));
clickmouse2(mouse_left);
sleep(randomrange(3000,4000));
if(findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15)) then // CLIMB UP STAIRS
begin
mmouse(s, w, 3, 3);
if(waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300)))) then
begin
writeln('Location: BOTTOM OF STAIRS #1');
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));

writeln('RUNNING TO BANK');
mmouse(660, 46, 3, 3); // GO TO BANK
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(4500, 5500));
writeln('FINDING THE BANK');
if(findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15)) then
begin
mmouse(s, w, 2, 2);
if(waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50)))) then
begin
writeln('FOUND THE BANK');
clickmouse2(mouse_left);
sleep(randomrange(2000, 2500));
while(not(bankscreen)) do
begin
writeln('IN THE LOOP LOOKING FOR THE BANK');
sleep(1);
end;
if((InvFull) and (bankscreen)) then
begin
deposit(1, 28, true);
if(finddtm(flaxdtm, x, y, 24, 60, 451, 282)) then
begin
writeln('Location: AT BANK INVENTORY');
mmouse(x, y, 5, 5);
if(waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600))) then
begin
writeln('WITHDRAWING FLAX');
clickmouse2(mouse_right);
wait(randomrange(500, 550));
chooseoption('All');
sleep(randomrange(2000, 2500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
writeln('DONE. LEAVING BANK.');
mmouse(600, 150, 2, 2);
clickmouse2(mouse_left);
sleep(randomrange(4000, 4500));
end;
end;
end;
end;
end;
end;
end;
end;
end;
end;


procedure customantiban;

var
x, y: integer;

begin
x := (random(1000));
if (x >= 800) then
begin
y := (random(10));
case(y) of
1: boredhuman;
2: boredhuman;
3: randomrclick;
4: mmouseoffclient('random');
5: HoverMovingObject;
6: randomtab(true);
7: pickupmouse;
8: hoverskill(skill_crafting, false);
9: smallrandommouse;
10: hoverskill(skill_crafting, false);
end;
end;
end;

procedure startspinning;

var
x, y: integer;

begin
if(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) then
begin
mmouse(x + 30, y, 2, 2);
if(waituptextmulti(['Make', 'ake', '1'], randomrange(200, 300))) then
sleep(randomrange(400, 500));
clickmouse2(mouse_right);
sleep(randomrange(300, 500));
chooseoption('Make X');
sleep(randomrange(1000, 1200));
if(findcolorspiraltolerance(x, y, 8388608, 248, 424, 274, 439, 25)) then
begin
typesend('28');
customantiban;
end;
begin
repeat
sleep(randomrange(2400, 2700));
customlevelup;
until ((finddtm(bowstringdtm, x, y, 668, 416, 732, 471)));
flaxspun := flaxspun + 28;
numberOfTimes := (flaxspun / 28);
sleep(randomrange(1000,1200));
end;
end;
end;


procedure spinflax;

var
x, y, s, w: integer;

begin
if(findobjcustom(s, w, ['Spin', 'wheel', 'eel'], [13684950, 1073551, 5987427], 15)) then
begin
wait(randomrange(200, 300));
mmouse(s, w, 2, 2);
if(waituptextmulti(['Spin', 'wheel', 'eel'], (randomrange(200, 300)))) then
begin
writeln('Location: SPINNING ROOM #1');
clickmouse2(mouse_left);
sleep(randomrange(1500, 2000));
if(findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) then
begin
sleep(randomrange(1500, 2000));
end
else
begin
repeat
sleep(randomrange(1000, 1500));
spinflaxfailsafe;
inc(menu);
sleep(randomrange(1900, 2100));
until((findcolorspiraltolerance(x, y, 65024, 224, 125, 300, 166, 35)) or (menu = 2))
end;
startspinning;
end;
end;
end;


procedure walktowheelfromstairs;

var
x, y: integer;

begin
if(finddtm(flaxdtm, x, y, 554, 205, 596, 248)) then
begin
if(findcolorspiraltolerance(x, y, 1458038, 653, 46, 686, 82, 35)) then
begin
writeln('Location: BOTTOM OF STAIRS #2');
mmouse(660, 60, 2, 2);
wait(300);
clickmouse2(mouse_left);
makecompass('e');
sleep(1500 + (randomrange(1500, 2000)));
spinflax;
end
end;
end;


procedure climbdownstairs;

var
x, y: integer;

begin
if(not(bankscreen)) then
begin
if(findcolorspiraltolerance(x, y, 538192, 175, 150, 275, 260, 10)) then // AT TOP OF STAIRS
begin
if(findobjcustom(x, y, ['Stair', 'tair', 'air', 'case', 'ase'], [538192], 10)) then
begin
writeln('Location: TOP OF STAIRS #1');
mmouse(x, y, 2, 2);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
sleep(randomrange(1000, 1200));
end;
walktowheelfromstairs;
end
else
begin
repeat
sleep(randomrange(1000, 2000));
if(findobjcustom(x, y, ['Stair', 'tair', 'air', 'case', 'ase'], [538192], 10)) then
begin
writeln('Location: TOP OF STAIRS #2');
mmouse(x, y, 2, 2);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
sleep(randomrange(1000, 1200));
end;
until((findobjcustom(x, y, ['Stair', 'tair', 'air', 'case', 'ase'], [538192], 10)) or (stairs = 2));
end;
end;
end;


procedure withdrawflax;
var
x, y: integer;

begin
setangle(SRL_angle_high);
makecompass('n');
sleep(1000);
if(bankscreen) then
begin
if(InvFull) then
begin
deposit(1, 28, true);
if(finddtm(flaxdtm, x, y, 24, 60, 451, 282)) then
begin
writeln('Location: AT BANK INVENTORY');
mmouse(x, y, 5, 5);
if(waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600))) then
begin
clickmouse2(mouse_right);
wait(randomrange(300, 350));
chooseoption('All');
sleep(randomrange(1000, 1500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
mmouse(595, 150, 2, 2);
clickmouse2(mouse_left);
clickmouse2(mouse_left);
sleep(randomrange(4000, 4500));
end;
end;
end;
end
else
begin
if(finddtm(flaxdtm, x, y, 24, 60, 451, 282)) then
begin
mmouse(x, y, 5, 5);
if(waituptextmulti(['Flax', 'lax', 'ax'], randomrange(300, 600))) then
begin
clickmouse2(mouse_right);
wait(randomrange(300, 350));
chooseoption('All');
sleep(randomrange(1000, 1500));
if finddtm(flaxdtm, x, y, 553, 213, 726, 459) then
begin
mmouse(590, 150, 2, 2);
clickmouse2(mouse_left);
sleep(randomrange(4000, 4500));
end;
end;
end;
end;
end;
end;


procedure climbupstairsfailsafe;

var
x, y, s, w: integer;

begin
if (not(findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 30))) then
begin
if findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15) then
begin
mmouse(s, w, 3, 3);
if(waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300)))) then
begin
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
end;
end;
end;
end;



procedure gettobankfailsafe;

var
s, w: integer;

begin
if(findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15)) then
begin
mmouse(s, w, 2, 2);
if(waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50)))) then
begin
clickmouse2(mouse_left);
while(not(bankscreen)) do
sleep(1);
end;
end;
end;


procedure gettobank;

var
x, y, s, w: integer;

begin
writeln('HEADING TO BANK');
mmouse(654, 46, 3, 3);
wait(200 + randomrange(100, 200));
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(4500, 5500));
if(findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15)) then
begin
mmouse(s, w, 2, 2);
if(waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], (100 + randomrange(100, 50)))) then
begin
clickmouse2(mouse_left);
while(not(bankscreen)) do
begin
sleep(1);
end;
withdrawflax;
end;
end;
end;

procedure climbupstairs;

var
x, y, s, w: integer;

begin
if(findobjcustom(s, w, ['Stair', 'case', 'ase', 'tair'], [540253, 7831172], 15)) then
begin
mmouse(s, w, 3, 3);
if(waituptextmulti(['Stair', 'case', 'tair'], (randomrange(200, 300)))) then
begin
writeln('Location: BOTTOM OF STAIRS #3');
clickmouse2(mouse_right);
sleep(randomrange(500, 600));
chooseoption('Climb-up');
sleep(randomrange(1500, 2000));
gettobank;
end
else
repeat
climbupstairsfailsafe;
sleep(randomrange(400, 500));
inc(stairsup);
until((findcolorspiraltolerance(x, y, 5167352, 592, 14, 711, 93, 45) or (stairsup = 2)));
gettobank;
end;
end;


procedure gettostairsfrombank;
var
x, y: integer;

begin
mmouse(598, 150, 2, 2); //
wait(200);
clickmouse2(mouse_left);
sleep(randomrange(4000, 4500)); // arrived at first set of stairs
end;



procedure openbankflax;

var
x, y: integer;

begin
setangle(SRL_angle_high);
makecompass('n');
if(not(invEmpty)) then
begin
if(not(bankscreen)) then
begin
if(findobjcustom(x, y, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 10)) then
begin
mmouse(x, y, 5, 5);
if(waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], randomrange(300, 400))) then
begin
writeln('Location: AT BANK');
clickmouse2(mouse_left);
sleep(500 + random(500));
while(not(bankscreen)) do
begin
sleep(500 + random(500));
mmouse(x, y, 2, 2);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
end;
withdrawflax;
end;
end;
end;
end
else
begin
if(CountItems('dtm', flaxdtm, []) = 28) then
begin
mmouse(622, 137, 2, 2);
clickmouse2(mouse_left);
end
else if(CountItems('dtm', bowstringdtm, []) = 28) then
begin
if(not(bankscreen)) then
begin
if(findobjcustom(x, y, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 10)) then
begin
mmouse(x, y, 5, 5);
if(waituptextmulti(['Bank', 'ank', 'booth', 'ooth'], randomrange(300, 400))) then
begin
writeln('Location: AT BANK');
clickmouse2(mouse_left);
sleep(500 + random(500));
while(not(bankscreen)) do
begin
sleep(500 + random(500));
mmouse(x, y, 2, 2);
wait(randomrange(200, 300));
clickmouse2(mouse_left);
end;
end;
end;
end;
end;
end;
end;


procedure getCurrentLocation;

var
s, w: integer;

begin
makecompass('n');
if(bankscreen) then
begin
withdrawflax;
end;
if((InvFull) and (finddtm(flaxdtm, s, w, 558, 211, 728, 462))) then // INVENTORY IS FULL OF FLAX
begin
writeln('INVENTORY IS FULL WITH FLAX');
if(bankscreen) then
begin
gettostairsfrombank;
end;
if(findColor(s, w, 10247736, 450, 0, 550, 100)) then // AT TOP OF STAIRS
begin
writeln('Location: TOP OF STAIRS #3');
climbdownstairs;
end
else if(findColor(s, w, 13334600, 280, 100, 380, 140)) then // AT BOTTOM OF STAIRS
begin
writeln('Location: BOTTOM OF STAIRS #4');
//walktowheelfromstairs;
end
else if((findColor(s, w, 7422504, 65, 191, 205, 333)) or findobjcustom(s, w, ['Spin', 'wheel', 'eel', 'whe'], [13684950, 1073551, 5987427], 15)) then // IN THE SPINWHEEL ROOM
begin
writeln('Location: SPINNING ROOM #2');
spinflax;
end
else if(findobjcustom(s, w, ['Bank', 'ank', 'booth', 'ooth'], [7702677, 4680317], 15)) then // AT BANK
begin
writeln('Location: AT BANK');
gettostairsfrombank;
end;
end
else if((InvFull) and (finddtm(bowstringdtm, s, w, 558, 211, 728, 462))) then // INVENTORY IS FULL OF BOWSTRINGS
begin
writeln('INVENTORY IS FULL WITH BOWSTRINGS');
if(bankscreen) then
begin
withdrawflax;
end;
if(findColor(s, w, 13334600, 280, 100, 380, 180)) then // AT BOTTOM OF STAIRS
begin
writeln('Location: BOTTOM OF STAIRS #5');
climbupstairs;
end
else if(findColor(s, w, 10115894, 450, 0, 550, 100)) then // AT TOP OF STAIRS
begin
writeln('Location: TOP OF STAIRS #4');
gettobank;
end
else if((findcolorspiraltolerance(s, w, 9524787, 196, 143, 327, 258, 10))) then // AT BANK
begin
writeln('Location: AT BANK');
openbankflax;
end
else if((findColor(s, w, 7422504, 65, 191, 205, 333)) or findobjcustom(s, w, ['Spin', 'wheel', 'eel', 'whe'], [13684950, 1073551, 5987427], 15)) then // IN THE SPINWHEEL ROOM
begin
writeln('Location: SPINNING ROOM #3');
walktostairsfromwheel;
end;
end
else
begin
if(not(invEmpty)) then
begin
openbankflax;
end;
end;
end;



begin
DeclarePlayers;
setupsrl;
declarevariables;
//clearDebug;
writeln('FINDING LOCATION...PLEASE WAIT...');
if (not(loggedin)) then
begin
loginplayer;
setrun(true);
end;
repeat
//clearDebug;
writeln('================================');
writeln('Flax spun: ' + IntToStr(flaxspun));
writeln('Script has run ' + IntToStr(numberOfTimes) + ' times');
writeln('================================');
declarevariables;
getCurrentLocation;
writeln('Error here?');
freedtm(bowstringdtm);
freedtm(flaxdtm);
until((flaxspun) >= (flaxtospin)) or (not(loggedin));
end.

marijuana420

2013-04-10 21:29:33

sweet thanks man!! ill give it a try!

famguy74

2013-04-10 21:31:18

I saw this and got excited there was finally a stable version but every time I run it it takes like 30 seconds to start, then can't go down the stairs and crashes.

Edit: I figured out I had to download Smart8 for this to work now it's perfect. Thanks for the revision much more stable

hollapatrol

2013-04-10 23:41:12

Opens bank, gets flax, walsk to stairs, doesn't go down them.

marijuana420

2013-04-10 23:51:57

From: hollapatrol
Opens bank, gets flax, walsk to stairs, doesn't go down them.


same finding stirs it failsnow

Darcy_Oner

2013-04-11 01:07:25

Yeah it cant find the stairs…

swimdude

2013-04-11 01:32:54

Ah, it seems like the color changes to much to do what I was doing. I'll take a look at it. Thanks.

marijuana420

2013-04-11 01:49:25

np mate

Panini123

2013-04-11 03:57:46

Can you make it so that we can select all the colours ourselves? Instead of relogging 500 times before it finally works?
This would make everyones lives easyier, especially if you made a youtube vid on how to change them.

Other than that great script! keep up the good work and you'll have it going great for everyone in no time!

schoolsucxxx

2013-04-11 07:01:07

Dude, i think your script is great but when he tries the 1st time to get flax out of the bank it goes over all items except the flax…
How do i get this to work?

digunderme

2013-04-11 08:40:29

nice to see updates on this script, keep it up :) I'm looking forward to spinning zillions of flax when it works fully :D

schoolsucxxx

2013-04-11 13:26:32

From: digunderme
nice to see updates on this script, keep it up :) I'm looking forward to spinning zillions of flax when it works fully :D

So it is not working ATM ?

vigilante123

2013-04-11 13:41:37

From: schoolsucxxx
So it is not working ATM ?


Not really, the version on page #1 works for a bit but is really buggy, don't expect more than 5 successful trips before having to restart. Doesn't solve randoms very well at all. On page #5 someone posted a variation to the script with their own edits but currently that one gets stuck everytime on the staircase. So as of right now, there is no stable version of the script available.

king pkar

2013-04-11 14:54:57

Would be quite cool if someone could work on it at weekend

Toxic5

2013-04-11 15:28:47

A stable script of this would be amazing

TheRDJ

2013-04-11 16:15:16

Wish this would work, really need it.

lolhippl

2013-04-11 16:50:26

got it to work flawlesly. OP if you want to check out my script let me know and ill post it to ya.
i got rid of a small part and changed to walk to bank a lil bit.

i woulda changed more parts but i am to lazy lol XD

nekenah

2013-04-11 17:05:04

Make sure you have OSR-SRL and everything, when I got my files fixed, it worked 200 times more flawless, didn't crash for atleast 50 runs.

JhzBlanco

2013-04-11 19:37:08

From: lolhippl
got it to work flawlesly. OP if you want to check out my script let me know and ill post it to ya.
i got rid of a small part and changed to walk to bank a lil bit.

i woulda changed more parts but i am to lazy lol XD

Can you please post this here, It would really mean a lot! :D

noobplaying

2013-04-11 20:01:44

I would really appreciate it if you can send me the fixed script

Hnng

2013-04-11 21:41:08

The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

I keep getting this after it takes the flax out

mistuhmack

2013-04-11 22:07:59

Yeah sorry this script is un-runnable. Can't even make it to bank without screwing up. I understand scripting isn't easy, but please, for the love of god, can people actually post scripts that WORK on this site? Thanks.

winslade

2013-04-11 22:30:25

whata bitch^ lawl.
do it yourself then u cunt

karumba

2013-04-11 22:41:02

I have everything set up properly, I get "Exception in Script: Unable to find file 'srl-osr/srl.simba' used from ''" when i copy and paste the script into simba then try to run it, Help please!

marijuana420

2013-04-11 23:24:58

From: winslade
whata bitch^ lawl.
do it yourself then u cunt


agreed with you..ive gotten it run semi flawless hes justa noob that wants to gold farm but dont knowshit.ignorehim

lolhippl

2013-04-12 02:27:23

From: mistuhmack
Yeah sorry this script is un-runnable. Can't even make it to bank without screwing up. I understand scripting isn't easy, but please, for the love of god, can people actually post scripts that WORK on this site? Thanks.


just cause of u i wont post it. i dont u to leach of u ungratefull piece of junk…. nothing other than dead meat.

lolhippl

2013-04-12 02:28:48

im updating something on it. it isnt completely flawless sadly… i have to edit the banking part… if lucky it can run u 30 loads…. did for me first time….. thought it was flawless :(

marijuana420

2013-04-12 03:44:59

ya same i edited some stuff up and it ran 20 loads after that it told me to fuck off imn not runing more lol..u should send me your verson lol

noobplaying

2013-04-12 05:47:09

From: lolhippl
im updating something on it. it isnt completely flawless sadly… i have to edit the banking part… if lucky it can run u 30 loads…. did for me first time….. thought it was flawless :(


Could you maybe post your edit on here?

lolhippl

2013-04-12 08:11:54

in all honesty everyone of you is low postcounts etc. ill add antileach on it and post later today
Also OP message me if you wana work together on it

marijuana420

2013-04-12 08:28:03

Posts
78

im not low postcount at all.. and antileach is not allowed sorry..

constantino

2013-04-12 09:21:56

can somebody help? it takes out flax then this message comes up:

Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 778
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

constantino

2013-04-12 09:33:29

now its the sae message but spins flax and stops script

Forum

2013-04-12 09:38:49

I've fixed a few problems with the colors. It wasn't withdrawing flax, so I changed the DTM.

Now, once it withdraws them it doesn't move to the staircase - Just moves the mouse around the bank interface. I looked at the procedure for what it's supposed to do, and couldn't fix it.

Someone mind giving me some pointers?

sitebanis

2013-04-12 11:05:56

the main problem is the banking. Sometimes it gets confused and thinks there is random and starts running around. Then when its done running around it hits the spin menu but never spins. Great script though, just a couple more bugs to fix. Cant wait till its patched up.

dewrange

2013-04-12 20:32:26

do not worry guys i have not given up on this script, i will be fixing it and i will make it work for everyone.

mistuhmack

2013-04-12 21:00:29

From: lolhippl
just cause of u i wont post it. i dont u to leach of u ungratefull piece of junk…. nothing other than dead meat.


Lol. Ungrateful? Why would I be grateful for something that wastes my time. I spun the damn flax myself in the time it would take to actually get the scrip running smoothly. Go ahead and don't post it, your "flawless" version is probably no better. :)

sitebanis

2013-04-13 02:47:17

From: mistuhmack
Lol. Ungrateful? Why would I be grateful for something that wastes my time. I spun the damn flax myself in the time it would take to actually get the scrip running smoothly. Go ahead and don't post it, your "flawless" version is probably no better. :)


not cool man. not cool. =/ negativity will never further anyone's success. =/ :(

sitebanis

2013-04-13 02:48:17

From: dewrange
do not worry guys i have not given up on this script, i will be fixing it and i will make it work for everyone.


honestly I really want to relearn basic coding just to help this script. =)

marijuana420

2013-04-13 03:41:31

From: dewrange
do not worry guys i have not given up on this script, i will be fixing it and i will make it work for everyone.


thanks for posting your script tought me quite a few simba functions thanks

dannyman22

2013-04-13 12:11:55

what do you put when they ask for nickname? i dont get how its used?

evilhugbear

2013-04-13 12:13:39

From: dannyman22
what do you put when they ask for nickname? i dont get how its used?


Username: What you login with
Password: Your password
Nickname: Your character name

dannyman22

2013-04-13 12:27:45

i know it always says that. ok say for example my username is Warman7498, would my nickname be War?

nekenah

2013-04-13 13:07:42

Your INGAME name is your nick, your login name is your username

jojordy

2013-04-13 13:47:34

please fix this script:)

mhmd21

2013-04-13 13:49:48

Please fix. :/

amer361

2013-04-13 13:54:44

when i copy and past this into simba it says "Exception in Script: Unable to find file 'srl-osr/srl.simba' used from ''" help please

vigilante123

2013-04-13 14:04:36

From: mhmd21
Please fix. :/


From: jojordy
please fix this script:)


Really? you couldn't look like 5 posts above your own post to see that the script writer JUST said he hasn't given up on the script and is working on fixing it? …smh :duh:

Blue219

2013-04-13 14:21:35

It never clicks on the flax at the bank, anyone know how to change the colors or fix this?

thapure t

2013-04-13 21:48:17

this bot is sht…

cave

2013-04-14 09:01:41

From: amer361
when i copy and past this into simba it says "Exception in Script: Unable to find file 'srl-osr/srl.simba' used from ''" help please

You would need the srl-osr folder , there was a guide on it but i don't remember where

alucard123

2013-04-14 13:11:21

good script nice stuff in there… i didnt like the turn camera to spin flax always same side.. and its not running very smoothly ill try to fix stuff in it but i doubt i can do better

mhmd21

2013-04-14 13:58:39

From: blue219
it never clicks on the flax at the bank, anyone know how to change the colors or fix this?


this.

paul bunk

2013-04-14 19:44:44

how do you download this i am new here and when i download script says i have nothing to open it with?
if someone could help would be very appreciated

keevin23

2013-04-14 20:27:04

got this problem Exception in Script: Unable to find file 'srl-osr/srl.simba' used from 'C:\Documents and Settings\Kevin\Mis documentos\Downloads\flaxspinner v3.simba'

Stevenbest4

2013-04-14 22:02:11

please fix xP

Neznam

2013-04-14 22:24:40

From: keevin23
got this problem Exception in Script: Unable to find file 'srl-osr/srl.simba' used from 'C:\Documents and Settings\Kevin\Mis documentos\Downloads\flaxspinner v3.simba'


http://villavu.com/forum/showthread.php?t=99577
You need to rename the folder SRL-OSR-master to SRL-OSR, if you don't have the files download them from the link above.

sitebanis

2013-04-15 06:12:50

I did some small editing of the script got 5 loads then the procedure goingdownstairsfailsafe messed up. We need a rewrite on the failsafes for almost everything. In my script I added a longer wait time after clicking the bank, that helped. Also everyone who is having trouble banking the bs. type "::toggleroof", this will solve 75 percent of that problem. Also we need a rewrite on the procedure customfindallrandom>spinflaxfailsafe. This should get us closer. (

(Btw I get basic code. Dont really know how to rewrite some of this stuff. Just posting to see if someone beats me to the rewrites)

Haxz

2013-04-15 08:28:48

From: sitebanis
I did some small editing of the script got 5 loads then the procedure goingdownstairsfailsafe messed up. We need a rewrite on the failsafes for almost everything. In my script I added a longer wait time after clicking the bank, that helped. Also everyone who is having trouble banking the bs. type "::toggleroof", this will solve 75 percent of that problem. Also we need a rewrite on the procedure customfindallrandom>spinflaxfailsafe. This should get us closer. (

(Btw I get basic code. Dont really know how to rewrite some of this stuff. Just posting to see if someone beats me to the rewrites)


Wow! I didn't know there's such thing as toggleroof that will remove the roofs. That will probably fix most of the problems that find things under the roof.

sitebanis

2013-04-15 08:59:34

From: Haxz
Wow! I didn't know there's such thing as toggleroof that will remove the roofs. That will probably fix most of the problems that find things under the roof.


I know??? I just learned about it this week from the essence miner script! I've been playing since 04 and never knew about it!

rohaaan

2013-04-15 12:33:04

Hey guys,

I've tried so many things to fix this, but I just can't fix it.

The error I'm getting is:

Error: Exception: FindDTMs: DTM[] is not valid. at line 118
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

Can anyone please possibly help me?

Thanks heaps :)

keevin23

2013-04-15 13:07:34

mm ok i gonna try thx bro

jbill65

2013-04-15 15:13:18

From: rohaaan
Hey guys,

I've tried so many things to fix this, but I just can't fix it.

The error I'm getting is:

Error: Exception: FindDTMs: DTM[] is not valid. at line 118
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

Can anyone please possibly help me?

Thanks heaps :)


Actually its nothing to do with the script but the SRL i think. If you copied and pasted the code for the bot then just download V3 instead and add it to the scripts folder then open it up in simba and play. I don't get the error doing that

jbill65

2013-04-15 15:35:00

http://villavu.com/forum/showthread.php?t=78418

go there for info on how to free DTM

jbill65

2013-04-15 15:49:25

The bot works pretty good, I was wondering if you are currently trying to make it better? The only problems i see is getting stuck with the randoms that don't say your name like swarms and plants and if you are adding in opening doors? Also maybe being able to start the bot anywhere in the path for spinning flax? I am just learning on scripting myself and was thinking if there was a way to put: if the bot is in a certain area with flax, bowstring, or nothing in inventory, to have with flax follow the walktowheelfromstairs or gettostairsfrom bank procedures etc with other options

Haxz

2013-04-15 15:53:11

From: jbill65
The bot works pretty good, I was wondering if you are currently trying to make it better? The only problems i see is getting stuck with the randoms that don't say your name like swarms and plants and if you are adding in opening doors? Also maybe being able to start the bot anywhere in the path for spinning flax? I am just learning on scripting myself and was thinking if there was a way to put: if the bot is in a certain area with flax, bowstring, or nothing in inventory, to have with flax follow the walktowheelfromstairs or gettostairsfrom bank procedures etc with other options


Simba does fix randoms that attacks you by running away. It is on by default, not sure if the script had it off manually. The problem with the attacking randoms is that it detects HP bar above your character's head. If some other people standing in the same spot gets attacked, you will keep running away too.

darbuild2

2013-04-15 17:16:57

Im getting this problem… help please?

Error: Exception: FindDTMs: DTM[] is not valid. at line 118
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

jbill65

2013-04-15 19:26:03

From: darbuild2
Im getting this problem… help please?

Error: Exception: FindDTMs: DTM[] is not valid. at line 118
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]


Someone just asked about that problem and i answered it….read like 2 comments up

jbill65

2013-04-15 19:30:34

From: Haxz
Simba does fix randoms that attacks you by running away. It is on by default, not sure if the script had it off manually. The problem with the attacking randoms is that it detects HP bar above your character's head. If some other people standing in the same spot gets attacked, you will keep running away too.


Yeah i've notice that now. Problem i have is my bot messes up after a couple of loads by running in the wrong areas. I'm not seeing any other people have this problem so i'm wondering if they all just decided to edit the code themselves…..I'm messing around with it myself and all i got it to do was go a lot faster with a bit less problems.

rohaaan

2013-04-15 21:31:30

From: jbill65
Actually its nothing to do with the script but the SRL i think. If you copied and pasted the code for the bot then just download V3 instead and add it to the scripts folder then open it up in simba and play. I don't get the error doing that


Mate, thank you very much! Fixed my problem :D

jbill65

2013-04-15 22:54:49

From: rohaaan
Mate, thank you very much! Fixed my problem :D

no problem =:p

keprofs0uls

2013-04-16 21:57:13

From: dewrange
i will do some testing and reworking of the script as soon as i can. I put together the script rather quickly and the code is pretty messy, i will take care of it. just keep posting bugs


its oads and everything but once it gets the flex and spins some once i lev it starts to mess up. and even sometime just get the flex goes down stairs and clicks all over

l3arn3y

2013-04-16 22:18:03

okay for me, it loads fine in bank, flax is visible. It just moves the cursor around and never actually withdraws flax, then it just freaks out and runs out of the bank. Any idea?

corbin 654

2013-04-17 18:31:57

can someone please help im having this error
Exception in Script: Unable to find file 'srl-osr/srl.simba' used from 'C:\Users\Dannyboy\Downloads\flaxspinner (1).simba

wegginger

2013-04-17 19:25:25

I have this problem when I run the script after updating everything, my "runescape 07 client thing or the SMART8" becomes blank and I cant see the runescape login screen but i can hear the runescape music. What can I do to fix this?

Thanks in advance!
(I'm very new to this!)

fluffycluffy

2013-04-21 23:08:58

From: wegginger
I have this problem when I run the script after updating everything, my "runescape 07 client thing or the SMART8" becomes blank and I cant see the runescape login screen but i can hear the runescape music. What can I do to fix this?

Thanks in advance!
(I'm very new to this!)


Load up Runescape 07 in your browser and hold down "s", this puts it in safe mode. That should fix your problems.

stukskehond

2013-04-22 09:15:17

Good script, only spinner that works for me.
Thanks!

juggerknot14

2013-04-24 02:41:11

Testing right now, I have tried HaXz and it didn't support any randoms, so I decided to give another one a go, i'll let you know how it goes! :D

Haxz

2013-04-24 02:51:06

From: juggerknot14
Testing right now, I have tried HaXz and it didn't support any randoms, so I decided to give another one a go, i'll let you know how it goes! :D


lol it does.

zxzero

2013-04-25 21:42:24

Works for me until I get a level up then it randomly runs around and has a hard time trying to spin the flax again. It will click the spinner but randomly move around the screen, then proceeds to run n, s, e, or w.

[email]xxxxxxxxx@xxxxxxxxx.com[/email] leveled up!
No direction found, setting manually
Running W

abcxiskillix

2013-04-25 22:13:24

From: dewrange
for everyone having problems make sure brightness is all the way up and that you start with the bank open and flax in the to right corner. this will solve 99% of these problems

that actually worked thanks haha

bas123

2013-05-02 06:32:16

Thanksssss, now it's working xD


From: dewrange
for everyone having problems make sure brightness is all the way up and that you start with the bank open and flax in the to right corner. this will solve 99% of these problems

texx

2013-05-04 18:19:07

thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)

redratz01

2013-05-04 20:26:53

Still quite unstable.

Legiitz

2013-05-04 21:00:49

Unstable as fuaarck. Does like 2 trips then fucks up. :/ Maybe get a SRL team member ta help you owt :O

anxious

2013-05-05 02:24:33

1000% unstable brahs

ilikehacks

2013-05-05 03:27:13

yeah.. 1000% unstable… i thought it was actually gonna be stable XD. I got all excited

YeaFamous

2013-05-05 19:24:08

i guess its unstable from the last 4 ppl…. o god what am i gonna do with 20k flax

fdy1998

2013-05-05 22:14:24

Can you fix it so if it opens up a skill tab it just doesn't sit there and do noting? Thanks!

djm995

2013-05-06 02:11:38

From: redratz01
Still quite unstable.


From: Legiitz
Unstable as fuaarck. Does like 2 trips then fucks up. :/ Maybe get a SRL team member ta help you owt :O


From: anxious
1000% unstable brahs


From: ilikehacks
yeah.. 1000% unstable… i thought it was actually gonna be stable XD. I got all excited


From: YeaFamous
i guess its unstable from the last 4 ppl…. o god what am i gonna do with 20k flax


There's other flax spinners out there, look in the directory, until the scripter updates this i'd recommend using the other two as they're both quite stable although do need to be checked on everynow and then

supersabz

2013-05-06 12:48:02

The script is just opening bank and browsing through items.

jordanudrane

2013-05-07 18:12:05

Great script! Best one i could find for spinning flax. All others either mess up at bank or just run back and forth with bowstring! This one seems to work really good!

NikoSaltnes96

2013-05-10 11:14:18

It just gets stuck by the door at the spinning thing

beastmode92

2013-05-10 14:24:37

From: texx
thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)

share pl0x? =]

iTimmy

2013-05-12 05:23:55

I would use but others feedback scares me :( I am using a quite sht one atm.

kylevarner

2013-05-12 10:23:54

The best attempt I got with this script was when I started with flax in inventory on second floor. It completed the inventory but can't find the stairs to go up. Same stair issue when starting on top floor.

wegginger

2013-05-16 03:46:04

From: texx
thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)


Share pls <3?

OriginalStan

2013-05-16 09:50:58

Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 778
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge, 2, 3, 4, 5]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

voltag00

2013-05-22 01:50:54

Does this have any anti-leech? also is it updated and working?

RoflRawr

2013-05-26 14:19:46

Kind of works… I added in some "wait" lines when it's mousing over the stairs, and when it aims at the flax to click "Spin X" and it doesn't mess up on those any more… still having problems with navigation and getting lost at bank/wheel :P
need to add floor detection + self correct on wrong floor

BigRedJapan

2013-05-27 13:52:38

You really do not need waits! Its to slow already!

hershey bar

2013-06-12 01:30:06

MINE WONT EVEN START THE OTHER ONE YOU MADE FOR FLAX COLLECTING WORKED PERFECT THIS ONE WONT EVEN START THE FOLLOWING MESSAGE IS APPEARING Exception in Script: Unable to find file 'srl-osr/srl.simba'

Shinonuma

2013-06-13 12:49:22

From: hershey bar
MINE WONT EVEN START THE OTHER ONE YOU MADE FOR FLAX COLLECTING WORKED PERFECT THIS ONE WONT EVEN START THE FOLLOWING MESSAGE IS APPEARING Exception in Script: Unable to find file 'srl-osr/srl.simba'


http://villavu.com/forum/showthread.php?t=99577

meipzer

2013-06-24 13:54:38

Mine never is able to make it down the stairs.

toxjq

2013-06-24 18:38:38

script failing to detect flex from my bank

hakishakataki

2014-04-21 11:50:13

bugs I have noticed while monitoring.

If one of the closed doors is open (in the flax spinning floor) it will cause the bot to go outside into the edge area and the bot will bug out.

If it misclicks getting to the bank, it will never find the bank again.

Randoms, no chance of completing

sometimes it clicks the bank TWICE causing it to walk behind or think its not banking

sometimes it misclicks getting back up stairs and thinkts its upstairs when it's not - there should be a "check if upstairs function before it confirms its upstairs

when it's stuck, it waves the cursor around in a pattern that looks very suspicious if left doing it for 3 minutes like it does


-if you could somehow make it so it left clicks the stairs then selects the go up button, it may fix some things.
-disabling the roof at the bank level would also fix the banking bug
-I increased the wait times on all of the procedures and it stopped a lot of bugs from occuring

an idea i had (idk if its possible) is to somehow upload a picture of the mini map at each level and have the bot check the picture to figure out where it is, and program it to only click within specific places of that picture - please someone let me know if and how this is possible.

-most going upstairs problems should be fixed if you re-rotate the camera to faCE NORTH

Spoola

2014-06-26 12:44:08

Doesn't work at all for me unfortunately :(

God Elohim

2014-08-21 10:29:44

We are working on a script for flax,if all goes well i'll be posting for the community..

So long

xreflectx

2014-09-29 07:02:52

From: God Elohim
We are working on a script for flax,if all goes well i'll be posting for the community..

So long

Looks interesting. How is it going for you bud? Good luck btw =)

Zego

2015-06-20 21:32:45

anyone got this working?

DeniedHacker

2015-06-20 22:41:51

From: Zego
anyone got this working?

This is a Script that has been last updated in 2013… Not sure it is going to work

Zego

2015-06-21 00:12:16

From: Sheepexpert
This is a Script that has been last updated in 2013… Not sure it is going to work


I realise, I was hoping someone did :tongue: