PDA

View Full Version : Lumbridge Flax Spinner (my first release)



dewrange
04-04-2013, 08:29 AM
Dewrange's Lumbridge Flax Spinner!


UPDATED TO A 1000% MORE STABLE VERSION!






INSTRUCTIONS!
-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!




SCRIPT FEATURES!
-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!






What will break the script?

-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.





CHANGE LOG

VERSION 1.0
very crappy, put together with bad technique and was bound to fail.

VERSION 2.0
- Total rewrite
- Anti-ban incorporated
-Will solve most randoms
-Failsafes for every procedure


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






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
04-04-2013, 09:27 AM
Nice, gonna test this out when I get home and give my feedback!

Rawrr voids
04-04-2013, 09:32 AM
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
04-04-2013, 11:30 AM
Thanks i really need 46 crafting for a quest and found crafting to be too much effort.

muffinman96
04-04-2013, 11:42 AM
great release.

GetHyper
04-04-2013, 11:50 AM
Thanks for this, will try it in about half hour and let you know how i get on.

dewrange
04-04-2013, 01:23 PM
thanks for all the feedback guys!

Yevin
04-04-2013, 03:04 PM
nvm, fixed.
will try the script :]

Fippezz1993
04-04-2013, 03:30 PM
you got an approx. flax spinned per hour to give us?

fluffycluffy
04-04-2013, 04:24 PM
Testing now

kanko
04-04-2013, 04:25 PM
does it have anti-ban?

fluffycluffy
04-04-2013, 04:32 PM
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
04-04-2013, 05:28 PM
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
04-04-2013, 05:43 PM
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
04-04-2013, 07:01 PM
Same here

and same hereee

fluffycluffy
04-04-2013, 07:33 PM
Yeah can't seem to figure out why it does that.

dannyrox
04-04-2013, 07:35 PM
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
04-04-2013, 09:38 PM
and same hereee

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

dewrange
04-04-2013, 09:57 PM
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
04-04-2013, 10:10 PM
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
04-04-2013, 10:11 PM
YES finaly somone makes one ty <3 gonna go try it out

My House
04-04-2013, 10:47 PM
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
04-05-2013, 03:37 AM
First spinner bot released. if it works i love you.

i joey i
04-05-2013, 04:32 AM
Cant click on downstairs. stops spinning the wheel once you level up.

dewrange
04-05-2013, 04:55 AM
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
04-05-2013, 09:08 AM
Could you fix misclicking the bow string?
Gets stuck then... Playing on max brightness.

http://gyazo.com/877155e025b4ceec88b9b1ad5a33fd04.png?1365152807

Verifone
04-05-2013, 10:04 AM
posted twice on accident.

i joey i
04-05-2013, 12:22 PM
Please fix this!! I'll pay some one to make it flawless!

kickassmagee
04-05-2013, 01:10 PM
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
04-05-2013, 01:44 PM
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
04-05-2013, 02:08 PM
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
04-05-2013, 02:48 PM
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
04-05-2013, 03:23 PM
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
04-05-2013, 03:31 PM
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
04-05-2013, 04:03 PM
Wish there could be a solid flax picker before this comes out LOL

Haxz
04-05-2013, 04:21 PM
I'll be making a flax picker + spinner after I got enough money for mems!

cave
04-05-2013, 04:37 PM
Same exact problem for me aswell.
Oh btw , the problem is with the procedure "walktobank".

zacb
04-05-2013, 05:04 PM
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
04-05-2013, 05:48 PM
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
04-05-2013, 06:39 PM
Mine get stuck at climbing stairs ._.
I wonder if anyone test their script before releasing?..
:cartman:

TheRDJ
04-05-2013, 08:07 PM
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
04-05-2013, 09:29 PM
mine banks out the flax and then walks to the north stairs and then just stands there. anybody know how to fix this?

Physic
04-05-2013, 09:55 PM
great job on ur first script !

i joey i
04-06-2013, 01:25 AM
does this work for anyone?

i joey i
04-06-2013, 02:32 AM
:/ wish it was updated

fluffycluffy
04-06-2013, 04:12 AM
Keep up the good work, the base of the script is good, just needs some tweaking.

MaetNameno
04-06-2013, 04:20 AM
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
04-06-2013, 04:21 AM
Cool story bro I'll let you know when I care.
Yeah i remember when I said that. Idiot grow up.

awong
04-06-2013, 04:30 AM
i got a working neitizot spinner i might release it some time

MaetNameno
04-06-2013, 04:47 AM
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
04-06-2013, 01:15 PM
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
04-07-2013, 04:23 AM
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
04-07-2013, 01:06 PM
script newly updated! completely rewritten and 1000% times more stable

kickassmagee
04-07-2013, 02:23 PM
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
04-07-2013, 03:30 PM
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
04-07-2013, 03:44 PM
For me it wont recognize the bank or the flax.

i joey i
04-07-2013, 04:10 PM
still doesnt work

dewrange
04-07-2013, 04:24 PM
if you guys arent starting at the bank then it wont work.

dewrange
04-07-2013, 04:29 PM
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
04-07-2013, 05:19 PM
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
04-07-2013, 05:28 PM
script updated to version 3. should work immaculately for everybody now.

speedlicht
04-07-2013, 05:51 PM
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
04-07-2013, 06:20 PM
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
04-07-2013, 06:40 PM
it fails for me after 1 trip :S

dewrange
04-07-2013, 07:50 PM
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
04-07-2013, 08:11 PM
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
04-07-2013, 08:20 PM
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
04-07-2013, 08:29 PM
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
04-07-2013, 08:35 PM
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
04-07-2013, 09:03 PM
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
04-07-2013, 09:06 PM
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
04-07-2013, 09:40 PM
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
04-07-2013, 09:56 PM
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
04-07-2013, 10:00 PM
It hurts

colinmacdonald92
04-07-2013, 11:18 PM
i wish it'd actually work :(, keep it up it'd be very useful bs is killing my bank for alchs.

i joey i
04-08-2013, 01:19 AM
wish it worked :(

silent care
04-08-2013, 03:11 AM
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
04-08-2013, 03:44 AM
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
04-08-2013, 05:28 AM
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
04-08-2013, 09:41 AM
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
04-08-2013, 10:35 AM
I can confirm this script is not working.

dewrange
04-08-2013, 01:21 PM
I can confirm this script is not working.
details please

kickassmagee
04-08-2013, 01:45 PM
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
04-08-2013, 01:52 PM
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
04-08-2013, 02:00 PM
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
04-08-2013, 02:45 PM
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
04-08-2013, 03:39 PM
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
04-08-2013, 05:02 PM
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
04-08-2013, 08:08 PM
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
04-08-2013, 09:21 PM
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
04-08-2013, 09:23 PM
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
04-08-2013, 10:09 PM
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
04-08-2013, 10:11 PM
gets stuck so much

famguy74
04-08-2013, 10:14 PM
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
04-08-2013, 10:17 PM
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
04-08-2013, 11:25 PM
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:

http://i.imgur.com/ZWmg4UL.jpg


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('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'], [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
04-08-2013, 11:52 PM
Bot believes it has made it upstairs and it really hasn't...
Stays on second floor

JhzBlanco
04-08-2013, 11:54 PM
Randomly stops spinning the flax out of nowhere and decides to run east...

i joey i
04-09-2013, 01:09 AM
are you even actually updating?

snapped01
04-09-2013, 01:35 AM
works well... thanks
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('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'], [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
04-09-2013, 03:22 AM
Still doesnt work, Cant find the bank.

kickassmagee
04-09-2013, 06:03 AM
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
04-09-2013, 06:59 AM
Can't find the bank at all.

king pkar
04-09-2013, 09:56 AM
Is it going to be fixed ?

dewrange
04-09-2013, 10:10 AM
Is it going to be fixed ?

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

king pkar
04-09-2013, 10:32 AM
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
04-09-2013, 01:45 PM
row row fight the powa

nikm
04-09-2013, 07:43 PM
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
04-09-2013, 07:44 PM
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
04-10-2013, 12:54 AM
how long till update

mfreezy
04-10-2013, 03:03 AM
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
04-10-2013, 04:27 AM
Revision 002 update coming very soon!

Edit #1 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=1) : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=2) : Fixing bugs. ETA 1 hour.
Edit #3 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=3) : Still trying to find the cause of a bug that crashes the script. ETA: NOW!

Carnaflex
04-10-2013, 05:14 AM
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
04-10-2013, 11:36 AM
Pretty buggy, Does first load fine then gets lost on the way back to the bank.

vigilante123
04-10-2013, 12:59 PM
Revision 002 update coming very soon!

Edit #1 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=1) : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=2) : Fixing bugs. ETA 1 hour.
Edit #3 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=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
04-10-2013, 01:04 PM
Revision 002 update coming very soon!

Edit #1 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=1) : Currently testing script right now with testers. ETA: 1 hour.
Edit #2 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=2) : Fixing bugs. ETA 1 hour.
Edit #3 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=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
04-10-2013, 10:31 PM
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
04-10-2013, 10:57 PM
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
04-11-2013, 12:52 AM
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:

http://i.imgur.com/o9kHj8L.png


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('mlwAAAHicY2dgYHBgYmBwB2I7IDYHYm8g9o XynwHlH0DxEyB+BcT3gPgtEDPYcDLEHj7OELnnAEPErn0Mwes2 McQfPwMWZwFK48KMeDAUAACZCxIF');
bowstringdtm := DTMFromString('mrAAAAHic42BgYDjBxMBwCogPAvE2IN4BxP uBeCcQHwLiY4xAOSDeC8Q7gXgrEG8C4uNQ3FwRyVCQ7gOmYWxk PhfQDnyYkQCGAQAVoxZz');
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
04-11-2013, 01:29 AM
sweet thanks man!! ill give it a try!

famguy74
04-11-2013, 01:31 AM
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
04-11-2013, 03:41 AM
Opens bank, gets flax, walsk to stairs, doesn't go down them.

marijuana420
04-11-2013, 03:51 AM
Opens bank, gets flax, walsk to stairs, doesn't go down them.

same finding stirs it failsnow

Darcy_Oner
04-11-2013, 05:07 AM
Yeah it cant find the stairs...

swimdude
04-11-2013, 05:32 AM
Ah, it seems like the color changes to much to do what I was doing. I'll take a look at it. Thanks.

marijuana420
04-11-2013, 05:49 AM
np mate

Panini123
04-11-2013, 07:57 AM
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
04-11-2013, 11:01 AM
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
04-11-2013, 12:40 PM
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
04-11-2013, 05:26 PM
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
04-11-2013, 05:41 PM
So it is not working ATM ?

Not really, the version on page #1 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=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 (http://villavu.com/forum/usertag.php?do=list&action=hash&hash=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
04-11-2013, 06:54 PM
Would be quite cool if someone could work on it at weekend

Toxic5
04-11-2013, 07:28 PM
A stable script of this would be amazing

TheRDJ
04-11-2013, 08:15 PM
Wish this would work, really need it.

lolhippl
04-11-2013, 08:50 PM
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
04-11-2013, 09:05 PM
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
04-11-2013, 11:37 PM
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
04-12-2013, 12:01 AM
I would really appreciate it if you can send me the fixed script

Hnng
04-12-2013, 01:41 AM
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
04-12-2013, 02:07 AM
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
04-12-2013, 02:30 AM
whata bitch^ lawl.
do it yourself then u cunt

karumba
04-12-2013, 02:41 AM
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
04-12-2013, 03:24 AM
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
04-12-2013, 06:27 AM
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
04-12-2013, 06:28 AM
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
04-12-2013, 07:44 AM
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
04-12-2013, 09:47 AM
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
04-12-2013, 12:11 PM
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
04-12-2013, 12:28 PM
Posts
78

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

constantino
04-12-2013, 01:21 PM
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
04-12-2013, 01:33 PM
now its the sae message but spins flax and stops script

Forum
04-12-2013, 01:38 PM
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
04-12-2013, 03:05 PM
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
04-13-2013, 12:32 AM
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
04-13-2013, 01:00 AM
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
04-13-2013, 06:47 AM
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
04-13-2013, 06:48 AM
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
04-13-2013, 07:41 AM
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
04-13-2013, 04:11 PM
what do you put when they ask for nickname? i dont get how its used?

evilhugbear
04-13-2013, 04:13 PM
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
04-13-2013, 04:27 PM
i know it always says that. ok say for example my username is Warman7498, would my nickname be War?

nekenah
04-13-2013, 05:07 PM
Your INGAME name is your nick, your login name is your username

jojordy
04-13-2013, 05:47 PM
please fix this script:)

mhmd21
04-13-2013, 05:49 PM
Please fix. :/

amer361
04-13-2013, 05:54 PM
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
04-13-2013, 06:04 PM
Please fix. :/


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
04-13-2013, 06:21 PM
It never clicks on the flax at the bank, anyone know how to change the colors or fix this?

thapure t
04-14-2013, 01:48 AM
this bot is sht...

cave
04-14-2013, 01:01 PM
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
04-14-2013, 05:11 PM
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
04-14-2013, 05:58 PM
it never clicks on the flax at the bank, anyone know how to change the colors or fix this?

this.

paul bunk
04-14-2013, 11:44 PM
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
04-15-2013, 12:27 AM
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
04-15-2013, 02:02 AM
please fix xP

Neznam
04-15-2013, 02:24 AM
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
04-15-2013, 10:12 AM
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
04-15-2013, 12:28 PM
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
04-15-2013, 12:59 PM
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
04-15-2013, 04:33 PM
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
04-15-2013, 05:07 PM
mm ok i gonna try thx bro

jbill65
04-15-2013, 07:13 PM
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
04-15-2013, 07:35 PM
http://villavu.com/forum/showthread.php?t=78418

go there for info on how to free DTM

jbill65
04-15-2013, 07:49 PM
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
04-15-2013, 07:53 PM
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
04-15-2013, 09:16 PM
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
04-15-2013, 11:26 PM
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
04-15-2013, 11:30 PM
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
04-16-2013, 01:31 AM
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
04-16-2013, 02:54 AM
Mate, thank you very much! Fixed my problem :D
no problem =:p

keprofs0uls
04-17-2013, 01:57 AM
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
04-17-2013, 02:18 AM
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
04-17-2013, 10:31 PM
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
04-17-2013, 11:25 PM
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
04-22-2013, 03:08 AM
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
04-22-2013, 01:15 PM
Good script, only spinner that works for me.
Thanks!

juggerknot14
04-24-2013, 06:41 AM
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
04-24-2013, 06:51 AM
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
04-26-2013, 01:42 AM
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.

xxxxxxxxx@xxxxxxxxx.com leveled up!
No direction found, setting manually
Running W

abcxiskillix
04-26-2013, 02:13 AM
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
05-02-2013, 10:32 AM
Thanksssss, now it's working xD



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
05-04-2013, 10:19 PM
thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)

redratz01
05-05-2013, 12:26 AM
Still quite unstable.

Legiitz
05-05-2013, 01:00 AM
Unstable as fuaarck. Does like 2 trips then fucks up. :/ Maybe get a SRL team member ta help you owt :O

anxious
05-05-2013, 06:24 AM
1000% unstable brahs

ilikehacks
05-05-2013, 07:27 AM
yeah.. 1000% unstable... i thought it was actually gonna be stable XD. I got all excited

YeaFamous
05-05-2013, 11:24 PM
i guess its unstable from the last 4 ppl.... o god what am i gonna do with 20k flax

fdy1998
05-06-2013, 02:14 AM
Can you fix it so if it opens up a skill tab it just doesn't sit there and do noting? Thanks!

djm995
05-06-2013, 06:11 AM
Still quite unstable.


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


1000% unstable brahs


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


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
05-06-2013, 04:48 PM
The script is just opening bank and browsing through items.

jordanudrane
05-07-2013, 10:12 PM
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
05-10-2013, 03:14 PM
It just gets stuck by the door at the spinning thing

beastmode92
05-10-2013, 06:24 PM
thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)
share pl0x? =]

iTimmy
05-12-2013, 09:23 AM
I would use but others feedback scares me :( I am using a quite sht one atm.

kylevarner
05-12-2013, 02:23 PM
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
05-16-2013, 07:46 AM
thanks for your script :)
I updated it for my personal usage and added antirandom support
and now its running flawless :)

Share pls <3?

OriginalStan
05-16-2013, 01:50 PM
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
05-22-2013, 05:50 AM
Does this have any anti-leech? also is it updated and working?

RoflRawr
05-26-2013, 06:19 PM
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
05-27-2013, 05:52 PM
You really do not need waits! Its to slow already!

hershey bar
06-12-2013, 05:30 AM
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
06-13-2013, 04:49 PM
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
06-24-2013, 05:54 PM
Mine never is able to make it down the stairs.

toxjq
06-24-2013, 10:38 PM
script failing to detect flex from my bank

hakishakataki
04-21-2014, 03:50 PM
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
06-26-2014, 04:44 PM
Doesn't work at all for me unfortunately :(

God Elohim
08-21-2014, 02:29 PM
We are working on a script for flax,if all goes well i'll be posting for the community..

So long

xreflectx
09-29-2014, 11:02 AM
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
06-21-2015, 01:32 AM
anyone got this working?

DeniedHacker
06-21-2015, 02:41 AM
anyone got this working?
This is a Script that has been last updated in 2013... Not sure it is going to work

Zego
06-21-2015, 04:12 AM
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: