SRL Archive - RS3 Outdated / Broken Scripts

SmartFlaxer 3.2 [REFLECTION]


n3ss3s

2008-07-31 15:15:52

Now you can just dl and run…



Hello, this is currently the only reflection flax picker around.


Mine:

6 / 5; Flax: 2576
Average RoundTime: 145 Seconds.


——————————————

From: kingarabian
Nevermind, I dont think SetupReflection; was called. Expect a long mofo proggie from me.

1 / 5; Flax: 1932 still running.
Average RoundTime: 156 Seconds.

Edit:3 /6; Flax: 2623
Average RoundTime: 154 Seconds.

stopped it.



From: aznpimpsturr
Player loc: Lost
0 / 1004; Flax: 784
Average RoundTime: 130 Seconds.
NextPlayer

Got stuck at the quiz dude but other than that it works great. :D



From: aznpimpsturr
*** Inventory full, heading to bank ***
Player loc: BankFail
86 / 1004; Flax: 2408
Average RoundTime: 130 Seconds.
NextPlayer



From: aznpimpsturr
Still no problems. :)..stopped manually.

Player loc:
66 / 1001; Flax: 1848
Average RoundTime: 135 Seconds.
*** Inventory full, heading to bank ***
Successfully executed



Average time to pick a loadful of flax and bank it, including the all the walking, is usually 120-145, never been more, and that is 700, and sometimes even 800, flax per hour.

Doesn't have an SRL Stats so don't worry about it.


Post 'progress reports' and how it went :)


P.S - You need the latest hooks for this, if you don't know about them, this should enlighten you: http://scarreflection.googlecode.com/svn/trunk/


Enjoy :spongebob:


By the way, it logs out if you get a BeeKeeper x)


Remember to tell your friends about this!


EDIT: SUCK MAW FLAX! Average RoundTime: 101 Seconds.

n3ss3s

2008-07-31 15:41:14

Post if you download! That's all it costs!

Narcle

2008-07-31 15:44:37

From: n3ss3s
Post if you download! That's all it costs!


Get the spinner working!
;)

n3ss3s

2008-07-31 15:54:50

No! =D

eugenius1

2008-07-31 18:16:50

hey what is reflection?
or is it just a special name or something
or what?

Shuttleu

2008-07-31 18:40:57

so this should work perfectly until runescape updates :p

i would use it but i dont have a member :(

but im sure i can find a account to test it on even if it is my little brothers

~shut

jose89

2008-07-31 18:44:30

need bank pin support


EDIT: I get this while trying to compile it

Failed when compiling
Line 51: [Error] (51:1): Unknown identifier 'IniFile' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Hooks.Scar

I have the hooks.ini file at \includes\SRL\SRL\Reflection\Hooks.ini

Shuttleu

2008-07-31 18:56:07

downloadaed reflection from that link and i got this error
Failed when compiling
Line 51: [Error] (15620:1): Unknown identifier 'IniFile' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Hooks.Scar
i would add it in myself but i dont know if its ment to be a string or what

~shut

EDIT: im guessing its a string though

EDIT: ok so i got it to compile but now my problem is that it logs in, sets the player up then logs out and says player lost. could reflection be broken again?

grifits

2008-07-31 21:45:15

HELP
Include file C:\Program Files\SCAR 3.15\includes\SRL\SRL\Misc\Reflection.scar does not exist.
Failed when compiling

Shuttleu

2008-07-31 22:05:25

From: grifits
HELP
Include file C:\Program Files\SCAR 3.15\includes\SRL\SRL\Misc\Reflection.scar does not exist.
Failed when compiling

you need to download reflection like he said in the first post

~shut

EDIT: anychances the hooks are going to get updated anytime soon?

Tri-Edge

2008-08-01 03:19:26

From: Shuttleu
downloadaed reflection from that link and i got this error
Failed when compiling
Line 51: [Error] (15620:1): Unknown identifier 'IniFile' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Hooks.Scar


I get the same Error Message. D;

MasterKill

2008-08-01 03:30:37

n3ss3s, script looks fine, but you have to call

  SetupSRL;
SetupReflection;

else you have no hooks!

:)

EDIT:
Bug in REFLECTION is fixed, please checkout your SvN. Widget splitted my procedure up, but he forgot to move some vars :(

n3ss3s

2008-08-01 03:34:44

ARGHMH!!

Download the Hooks.scar and the Reflection.scar, no inis and shit.

Or do it mystyle, make two new files into your misc directory - Reflection.scar and hooks.scar. Open the Hooks.scar you downloaded from the google svn page, and paste it's content to your hooks.scar.

Same trick to reflection.scar, and in reflection.scar, include hooks.scar.


Copy pasting is easier imo, no need to change from old ways.


18 downloads and not a single proggie, come on…

MasterKill

2008-08-01 03:53:17

{.include SRL/SRL/Reflection/Reflection.scar}

That's how reflection is designed now, If i where you I would change it couse else evryone will get errors

/me starts writing a turial on how to include reflection.

EDIT: http://www.villavu.com/forum/showthread.php?t=33416

n3ss3s

2008-08-01 05:01:38

That's how reflection is designed now, If i where you I would change it couse else evryone will get errors


I don't care about it's popularity, that's why I didn't implement SRL Stats ;)

If people want to get easy free gp, they can change a few lines.

simen236

2008-08-01 10:57:07

what the heck do you mean? We have to put the hooks content into reflection.scar?

From: n3ss3s
ARGHMH!!

Download the Hooks.scar and the Reflection.scar, no inis and shit.

Or do it mystyle, make two new files into your misc directory - Reflection.scar and hooks.scar. Open the Hooks.scar you downloaded from the google svn page, and paste it's content to your hooks.scar.

Same trick to reflection.scar, and in reflection.scar, include hooks.scar.


Copy pasting is easier imo, no need to change from old ways.


18 downloads and not a single proggie, come on…

MylesMadness

2008-08-01 11:21:17

Aren't basex and y broke so this wont work?

simen236

2008-08-01 11:31:06

finally got it to work. All because of Masterkill's guide! Thank you Masterkill!
rep++

Edit: I start it at the Seer's Bank. It logs in, turns chat off, then logs out. ohhhk.

Debug says location lost.

n3ss3s

2008-08-01 11:45:37

Aren't basex and y broke so this wont work?


Weren't yesteday.

Simen, ^

simen236

2008-08-01 11:53:53

kk, you gonna fix?

From: n3ss3s
Weren't yesteday.

Simen, ^

n3ss3s

2008-08-01 16:04:37

It's nothing I can fix, we have to wait until Qauters' posts his updater output or updates RSBot.

simen236

2008-08-02 04:20:44

ok

From: n3ss3s
It's nothing I can fix, we have to wait until Qauters' posts his updater output or updates RSBot.

n3ss3s

2008-08-02 04:25:43

Actually at the moment it works for me? :D

Shuttleu

2008-08-02 07:17:11

the hooks were updated last night

~shut

EDIT: now testing on my little brothers account and it works perfectly but you could add some antirandoms in the walking and you need to put LoadHooks; after SetupSrl;

i will have a proggy for you soon

n3ss3s

2008-08-02 09:20:21


EDIT: now testing on my little brothers account and it works perfectly but you could add some antirandoms in the walking and you need to put LoadHooks; after SetupSrl;


I don't, I have my own ways…

You're right about the randoms, I'll add them when I'm non-lazy enough to re-up.


This is getting moved to Collecting tomorrow, I first put it in the wrong section apparently…

slakan

2008-08-02 09:25:50

Where in the script i put in the shit i need to dl to?

Shuttleu

2008-08-02 09:28:16

From: slakan
Where in the script i put in the shit i need to dl to?

huh i dont understand what you mean could you explain more clearly

~shut

EDIT: of course im right about the randoms, im always right :D

slakan

2008-08-02 09:44:16

okidoki let me try :9

When i run the script i get the error:

Include file C:\Users\sondre\Documents\SCAR 3.15.1\includes\SRL\SRL\Misc\Reflection.scar does not exist.
Failed when compiling

When i read a little on the forum here ppl tell me to dl reflection.. I find the reflection link:

http://www.villavu.com/forum/showthread.php?t=32830?p=433520#post433520


After that like should i make a new scar save the script in that and save it in srl/srl/misc/ and save it as reflection???

When i read in the reflection debugger section i see that n3ss3s wrote:

No, if you would read the code you would know that all you have to do is to press play.

With SMART 3 1/3 open, and logged in. With the needed reflection scar files, which are the thing you need to ask from widget.

Now call me dumb or what but i cant start the smart with the script i get the error.. so i cant do that..??

When i try to save it in srl/srl/misc/reflection.scar i get an error of like this when it start smart:

It popus up a error message and it says: Out of memory.. ?

Oki now i need help to understand this shit, im from norway so trying to learn me scar and smart in english is very hard :P because we dont got english as mother language :P


So what i do?


add me on msn if u want: [email]slakan_91@hotmail.com[/email]

Shuttleu

2008-08-02 09:49:19

read this tutorial on how to setup reflection
http://www.villavu.com/forum/showthread.php?t=33416

~shut

n3ss3s

2008-08-02 10:00:07

Sigh… My statement about only hit run works with the old fashion, not the LoadHooks / SetupReflection and shit.

All I have is a reflection.scar that includes hooks.scar, so just follow the tut, might be easier for ya…

slakan

2008-08-02 10:03:18

oki now iv done that, lets see it it works :D

slakan

2008-08-02 10:05:33

hmm still go the same error:

Include file C:\Users\sondre\Documents\SCAR 3.15.1\includes\SRL\SRL\Misc\Reflection.scar does not exist.
Failed when compiling


and i even followed the tutorial :(

n3ss3s

2008-08-02 10:15:43

My statement about only hit run works with the old fashion, not the LoadHooks / SetupReflection and shit.


You need to change the {.include SRL/SRL/Misc/Reflection.scar} to

{.include SRL/SRL/Reflection/Reflection.scar}, I think.

and after SetupSRL try LoadHooks; and if doesn't work, then SetupReflection.

Shuttleu

2008-08-02 10:19:05

replace {.include srl/srl/misc/reflection.scar}
with {.include srl/sr/reflection/reflection.scar}

and after SetupSrl; put LoadHooks;

~shut

EDIT: damn n3ss3s beat me :(

n3ss3s

2008-08-02 10:23:18

Slakan, if the code in the pm doesn't work after the including change, make SetupReflection LoadHooks.

slakan

2008-08-02 10:28:57

well i got it 2 work, but it wont get flax, it just stands there hehe xd omg

All it does is take on run and thats it..

here is what scar says:

Successfully compiled (1849 ms)
File access error
SRL Compiled in 5897 msec
Welcome to Runescape.
******
Creating the NickTPA.

Gu3st...

2008-08-02 10:59:14

wow, that is some sweet code!
its amazing about reflection… it makes codes < 600 lines :o

Writeln('Dodged a Divide By Zero. YAY! The universe will continue on!');

slakan

2008-08-02 11:35:26

ok now i get a little longer that just standing ther xD


Player loc: Lost
0 / 33; Flax: 0
Dodged a Divide By Zero.
NextPlayer
Successfully executed


It just lol lost player logg off. and it is in seere bank the whole time xD

Shuttleu

2008-08-02 11:38:39

are you sure you have the latest hooks and you have put LoadHooks; after SetupSrl;

~shut

slakan

2008-08-02 11:49:35

Like somone tel me how i setup the hook :P

help show me in forum like last lines

Shuttleu

2008-08-02 13:49:19

this is what it is ment to look like at the end of the script
begin
SmartSetup('world137', True, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
SetupSRL;
LoadHooks;
LoadDTMs;
LoadPath;
DeclarePlayers;
hope this helps

~shut

slakan

2008-08-02 15:24:47

hmm nop doesnt help me xD i dont understand it

Here is the script i got, modified at the end of it so it will start, but not pick flax :)


Can somone here put in that u said hooks;.. etc in it?

program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Reflection/Reflection.scar}



Const
LoadsPerLog = 3;


Var
dtmFlax, FC, RoundTime, RoundMarker, Counter: Integer;

Var
FlaxPath: TPointArray;



Procedure DeclarePlayers;

Begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';

Players[0].Active := True;

End;


Procedure LoadDTMs;
Begin

dtmFlax := DTMFromString('78DA637466626078C98002B8E3F9182481342' +
'310FF07024633A09AC70C6880118904D2B64035F708A801D9758B' +
'801A7FA09A3B04D47803D5BC405511BE732FDCCD6035EE40350F5' +
'1D544ECDE8FAAC616534DF4A163A86ACC816A9EA2AA893F7D1E45' +
'0D00693916D2');
End;


Procedure LoadPath;
Begin

SetArrayLength(FlaxPath, 7);

FlaxPath[0].x := 2726;
FlaxPath[0].y := 3492;
FlaxPath[1].x := 2726;
FlaxPath[1].y := 3484;
FlaxPath[2].x := 2727;
FlaxPath[2].y := 3473;
FlaxPath[3].x := 2727;
FlaxPath[3].y := 3463;
FlaxPath[4].x := 2729;
FlaxPath[4].y := 3453;
FlaxPath[5].x := 2734;
FlaxPath[5].y := 3443;
FlaxPath[6].x := 2740;
FlaxPath[6].y := 3443;

End;


Function n_FFlag(Dist: Integer): Boolean;

Var
FlagSafe: Integer;

Begin

FlagSafe := GetSystemTime;

While FlagDistance > Dist Do
If GetSystemTime - FlagSafe >= 20000 Then
Exit
Else
Wait(20);

Result := True;
End;


Function WalkTTile(TileX, TileY: Integer): Boolean;

Var
X, Y: Integer;
Begin
TileToMinimap(TileX, TileY, X, Y);
X := X - 2 + Random(4);
Y := Y - 2 + Random(4);
If InCircle(X, Y, MMCX, MMCY, 74) Then
Begin
MFNF(X, Y, 2, 2);
n_FFlag(8);
Result := True;
Wait(25);
End;
End;


Function WalkTo(Bank: Boolean): Boolean;

Var
I: Integer;
CS: String;
Begin
If GetMMLevels('run', CS) > 40 Then
SetRun(True);
If Bank Then
Begin
For I := High(FlaxPath)-1 DownTo 0 Do
Begin
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
End;
End Else
For I := 1 To High(FlaxPath) Do
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
Result := True;
End;



Function FindFlaxes: TPointArray;

Var
CTS: Integer;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, Result, 15328935, MSX1, MSY1, MSX2, MSY2, 10);
ColorToleranceSpeed(CTS);
End;


Function ClickFlax: Boolean;

Var
TPA: TPointArray;
X, Y, Z: Integer;

Begin

TPA := FindFlaxes;

Result := IsUpText('lax');

While (z <= High(TPA)) and (Not(Result)) Do
Begin
MMouse(TPA[z].x, TPA[z].y, 2, 2);
Result := IsUpText('lax');
z := z + 1;
End;

If Result Then
Begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, True);
If FlagPresent Then
Begin
Flag;
Wait(500 + Random(250));
End;
End;

End;


Function InBeeKeeper: Boolean;

Var
TPA: TPointArray;
B: TBox;
Begin
FindColorsTolerance(TPA, 0, 570, 35, 688, 129, 1);
B := GetTPABounds(TPA);
Result := GetArrayLength(TPA) = (B.x2 - B.x1) * (B.y2 - B.y1) + 200;
End;


Procedure PickingLoop;

Var
FlaxSafe, FailSafe, RT, RTimes, I: Integer;
Begin

FlaxSafe := GetSystemTime;
FailSafe := GetSystemTime

Repeat
If Not ClickFlax Then
I := I + 1
Else
Begin
I := 0;
FailSafe := GetSystemTime
Wait(200 + Random(400));
RT := GetSystemTime;

If InBeeKeeper Then
Begin
Logout;
Players[CurrentPlayer].Loc := 'Beekeeper';
Exit;
End;

If FindNormalRandoms Then
If Not LoggedIn Then
Begin
Writeln('*** Unsolvable random encountered. Breaking out of picking ***');
Break;
End Else
RTimes := RTimes + (GetSystemTime - RT);
End;
If I > 10 Then
Begin
Writeln('*** Over ten fails to find flax in a row, breaking out of picking ***');
Break;
End;
If InvFull Then
Begin
Writeln('*** Inventory full, heading to bank ***');
Break;
End;
If (GetSystemTime - FlaxSafe - RTimes) >= 90000 Then
Begin
Writeln('*** Time spent to picking and randoms exceeded 90 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
If GetSystemTime - FailSafe >= 15000 Then
Begin
Writeln('*** Time from last flax picked exceeded 15 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
Wait(100 + Random(200));
Until(Not(LoggedIn));
End;


Function FastFindBank: Boolean;

Var
X, Y: Integer;
Begin
X := MSCX;
Y := MSCY;
If FindObjTPA(X, Y, 3823205, 10, 2, 20, 20, 30, ['boot']) Then
Begin
Mouse(X, Y, 2, 2, False);
Result := ChooseOption('uickl');
If Result Then
n_FFlag(0);
End;
End;


Procedure BankWait; Forward;


Function OpenTheBank: Boolean;

Var
X: TIntegerArray;
Y, I: Integer;
Z: TPointArray;
Begin
X := [2724, 2727, 2728, 2729];
Y := 3494;
SetArrayLength(Z, 4);
For I := 0 To 3 Do
TileToMS(X[i], Y, 15, Z[i].x, Z[i].y);
SortTPAFrom(Z, Point(MSCX, MSCY));
For I := 0 To High(Z) Do
Begin
Mouse(Z[i].x, Z[i].y, 5, 5, False);
If ChooseOption('uickl') Then
Begin
Result := True;
BankWait;
Exit;
End;
End;
End;


Procedure BankWait;

Var
Safe: Integer;
Begin
Safe := GetSystemTime;
While GetColor(487, 42) <> 65536 Do
If GetSystemTime - Safe > 5000 Then
Break
Else
Wait(25);
End;


Procedure DepositFlax;

Var
X, Y: Integer;
Begin
If FindDTM(dtmFlax, X, Y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(X, Y, 2, 2, False);
ChooseOption('ll');
End;
Wait(800 + Random(400));
If InvCount > 0 Then
DepositAll;
End;


Procedure LocAndLoad(S: String);
Begin
Players[CurrentPlayer].Loc := S;
Logout;
End;


Procedure ShowStats;

Var
A, B, C: Integer;
S: String;
Begin
A := Players[CurrentPlayer].Integers[0];
B := FC;
C := Players[CurrentPlayer].Integers[1];
S := (IntToStr(B)+' / '+IntToStr(A)+'; Flax: '+IntToStr(C * 28));
Writeln('Player loc: ' + Players[CurrentPlayer].Loc);
Writeln(S);
Disguise(S);
RoundTime := RoundTime + (GetSystemTime - RoundMarker);
Try
Writeln('Average RoundTime: ' + IntToStr(RoundTime Div Counter Div 1000) + ' Seconds.');
Except
Writeln('Dodged a Divide By Zero.');
End;
End;


Procedure ScriptTerminate;
Begin
FreeDTM(DTMFlax);
End;


begin
SmartSetup('world137', True, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
SetupSRL;
LoadDTMs;
LoadPath;
DeclarePlayers;
Repeat
LoginPlayer;
SetChat('off', 2);
SetAngle(True);
Players[CurrentPlayer].Integers[0] := LoadsPerLog + Random(6);
FC := 0;
Repeat
RoundMarker := GetSystemTime;
If Not WalkTo(False) Then
Begin
LocAndLoad('Lost');
Break;
End;
Flag;
PickingLoop;
If Not LoggedIn Then Break;
If Not WalkTo(True) Then
Begin
LocAndLoad('Lost');
Break;
End;
Wait(2000 + Random(1000));
If Not OpenTheBank Then
Begin
LocAndLoad('BankFail');
Break;
End;
DepositFlax;
CloseBank;
FindNormalRandoms;
FC := FC + 1;
Inc(Players[CurrentPlayer].Integers[1]);
Counter := Counter + 1;
ShowStats;
Until(Not(LoggedIn)) or (FC > Players[CurrentPlayer].Integers[0]);
ShowStats;
NextPlayer(LoggedIn);
Until(False);
end.
Begin
SetupSRL;
SetupReflection; // this one is a must :)
// your script;
End.

Shuttleu

2008-08-02 15:35:31

From: slakan
hmm nop doesnt help me xD i dont understand it

Here is the script i got, modified at the end of it so it will start, but not pick flax :)


Can somone here put in that u said hooks;.. etc in it?

program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Reflection/Reflection.scar}



Const
LoadsPerLog = 3;


Var
dtmFlax, FC, RoundTime, RoundMarker, Counter: Integer;

Var
FlaxPath: TPointArray;



Procedure DeclarePlayers;

Begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';

Players[0].Active := True;

End;


Procedure LoadDTMs;
Begin

dtmFlax := DTMFromString('78DA637466626078C98002B8E3F9182481342' +
'310FF07024633A09AC70C6880118904D2B64035F708A801D9758B' +
'801A7FA09A3B04D47803D5BC405511BE732FDCCD6035EE40350F5' +
'1D544ECDE8FAAC616534DF4A163A86ACC816A9EA2AA893F7D1E45' +
'0D00693916D2');
End;


Procedure LoadPath;
Begin

SetArrayLength(FlaxPath, 7);

FlaxPath[0].x := 2726;
FlaxPath[0].y := 3492;
FlaxPath[1].x := 2726;
FlaxPath[1].y := 3484;
FlaxPath[2].x := 2727;
FlaxPath[2].y := 3473;
FlaxPath[3].x := 2727;
FlaxPath[3].y := 3463;
FlaxPath[4].x := 2729;
FlaxPath[4].y := 3453;
FlaxPath[5].x := 2734;
FlaxPath[5].y := 3443;
FlaxPath[6].x := 2740;
FlaxPath[6].y := 3443;

End;


Function n_FFlag(Dist: Integer): Boolean;

Var
FlagSafe: Integer;

Begin

FlagSafe := GetSystemTime;

While FlagDistance > Dist Do
If GetSystemTime - FlagSafe >= 20000 Then
Exit
Else
Wait(20);

Result := True;
End;


Function WalkTTile(TileX, TileY: Integer): Boolean;

Var
X, Y: Integer;
Begin
TileToMinimap(TileX, TileY, X, Y);
X := X - 2 + Random(4);
Y := Y - 2 + Random(4);
If InCircle(X, Y, MMCX, MMCY, 74) Then
Begin
MFNF(X, Y, 2, 2);
n_FFlag(8);
Result := True;
Wait(25);
End;
End;


Function WalkTo(Bank: Boolean): Boolean;

Var
I: Integer;
CS: String;
Begin
If GetMMLevels('run', CS) > 40 Then
SetRun(True);
If Bank Then
Begin
For I := High(FlaxPath)-1 DownTo 0 Do
Begin
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
End;
End Else
For I := 1 To High(FlaxPath) Do
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
Result := True;
End;



Function FindFlaxes: TPointArray;

Var
CTS: Integer;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, Result, 15328935, MSX1, MSY1, MSX2, MSY2, 10);
ColorToleranceSpeed(CTS);
End;


Function ClickFlax: Boolean;

Var
TPA: TPointArray;
X, Y, Z: Integer;

Begin

TPA := FindFlaxes;

Result := IsUpText('lax');

While (z <= High(TPA)) and (Not(Result)) Do
Begin
MMouse(TPA[z].x, TPA[z].y, 2, 2);
Result := IsUpText('lax');
z := z + 1;
End;

If Result Then
Begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, True);
If FlagPresent Then
Begin
Flag;
Wait(500 + Random(250));
End;
End;

End;


Function InBeeKeeper: Boolean;

Var
TPA: TPointArray;
B: TBox;
Begin
FindColorsTolerance(TPA, 0, 570, 35, 688, 129, 1);
B := GetTPABounds(TPA);
Result := GetArrayLength(TPA) = (B.x2 - B.x1) * (B.y2 - B.y1) + 200;
End;


Procedure PickingLoop;

Var
FlaxSafe, FailSafe, RT, RTimes, I: Integer;
Begin

FlaxSafe := GetSystemTime;
FailSafe := GetSystemTime

Repeat
If Not ClickFlax Then
I := I + 1
Else
Begin
I := 0;
FailSafe := GetSystemTime
Wait(200 + Random(400));
RT := GetSystemTime;

If InBeeKeeper Then
Begin
Logout;
Players[CurrentPlayer].Loc := 'Beekeeper';
Exit;
End;

If FindNormalRandoms Then
If Not LoggedIn Then
Begin
Writeln('*** Unsolvable random encountered. Breaking out of picking ***');
Break;
End Else
RTimes := RTimes + (GetSystemTime - RT);
End;
If I > 10 Then
Begin
Writeln('*** Over ten fails to find flax in a row, breaking out of picking ***');
Break;
End;
If InvFull Then
Begin
Writeln('*** Inventory full, heading to bank ***');
Break;
End;
If (GetSystemTime - FlaxSafe - RTimes) >= 90000 Then
Begin
Writeln('*** Time spent to picking and randoms exceeded 90 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
If GetSystemTime - FailSafe >= 15000 Then
Begin
Writeln('*** Time from last flax picked exceeded 15 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
Wait(100 + Random(200));
Until(Not(LoggedIn));
End;


Function FastFindBank: Boolean;

Var
X, Y: Integer;
Begin
X := MSCX;
Y := MSCY;
If FindObjTPA(X, Y, 3823205, 10, 2, 20, 20, 30, ['boot']) Then
Begin
Mouse(X, Y, 2, 2, False);
Result := ChooseOption('uickl');
If Result Then
n_FFlag(0);
End;
End;


Procedure BankWait; Forward;


Function OpenTheBank: Boolean;

Var
X: TIntegerArray;
Y, I: Integer;
Z: TPointArray;
Begin
X := [2724, 2727, 2728, 2729];
Y := 3494;
SetArrayLength(Z, 4);
For I := 0 To 3 Do
TileToMS(X[i], Y, 15, Z[i].x, Z[i].y);
SortTPAFrom(Z, Point(MSCX, MSCY));
For I := 0 To High(Z) Do
Begin
Mouse(Z[i].x, Z[i].y, 5, 5, False);
If ChooseOption('uickl') Then
Begin
Result := True;
BankWait;
Exit;
End;
End;
End;


Procedure BankWait;

Var
Safe: Integer;
Begin
Safe := GetSystemTime;
While GetColor(487, 42) <> 65536 Do
If GetSystemTime - Safe > 5000 Then
Break
Else
Wait(25);
End;


Procedure DepositFlax;

Var
X, Y: Integer;
Begin
If FindDTM(dtmFlax, X, Y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(X, Y, 2, 2, False);
ChooseOption('ll');
End;
Wait(800 + Random(400));
If InvCount > 0 Then
DepositAll;
End;


Procedure LocAndLoad(S: String);
Begin
Players[CurrentPlayer].Loc := S;
Logout;
End;


Procedure ShowStats;

Var
A, B, C: Integer;
S: String;
Begin
A := Players[CurrentPlayer].Integers[0];
B := FC;
C := Players[CurrentPlayer].Integers[1];
S := (IntToStr(B)+' / '+IntToStr(A)+'; Flax: '+IntToStr(C * 28));
Writeln('Player loc: ' + Players[CurrentPlayer].Loc);
Writeln(S);
Disguise(S);
RoundTime := RoundTime + (GetSystemTime - RoundMarker);
Try
Writeln('Average RoundTime: ' + IntToStr(RoundTime Div Counter Div 1000) + ' Seconds.');
Except
Writeln('Dodged a Divide By Zero.');
End;
End;


Procedure ScriptTerminate;
Begin
FreeDTM(DTMFlax);
End;


begin
SmartSetup('world137', True, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
SetupSRL;
LoadDTMs;
LoadPath;
DeclarePlayers;
Repeat
LoginPlayer;
SetChat('off', 2);
SetAngle(True);
Players[CurrentPlayer].Integers[0] := LoadsPerLog + Random(6);
FC := 0;
Repeat
RoundMarker := GetSystemTime;
If Not WalkTo(False) Then
Begin
LocAndLoad('Lost');
Break;
End;
Flag;
PickingLoop;
If Not LoggedIn Then Break;
If Not WalkTo(True) Then
Begin
LocAndLoad('Lost');
Break;
End;
Wait(2000 + Random(1000));
If Not OpenTheBank Then
Begin
LocAndLoad('BankFail');
Break;
End;
DepositFlax;
CloseBank;
FindNormalRandoms;
FC := FC + 1;
Inc(Players[CurrentPlayer].Integers[1]);
Counter := Counter + 1;
ShowStats;
Until(Not(LoggedIn)) or (FC > Players[CurrentPlayer].Integers[0]);
ShowStats;
NextPlayer(LoggedIn);
Until(False);
end.
Begin
SetupSRL;
SetupReflection; // this one is a must :)
// your script;
End.

well here is mine which works fine
program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/Reflection.scar}



Const
LoadsPerLog = 1000;


Var
dtmFlax, FC, RoundTime, RoundMarker, Counter: Integer;

Var
FlaxPath: TPointArray;



Procedure DeclarePlayers;

Begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'sern';

Players[0].Active := True;

End;


Procedure LoadDTMs;
Begin

dtmFlax := DTMFromString('78DA637466626078C98002B8E3F9182481342' +
'310FF07024633A09AC70C6880118904D2B64035F708A801D9758B' +
'801A7FA09A3B04D47803D5BC405511BE732FDCCD6035EE40350F5' +
'1D544ECDE8FAAC616534DF4A163A86ACC816A9EA2AA893F7D1E45' +
'0D00693916D2');
End;


Procedure LoadPath;
Begin

SetArrayLength(FlaxPath, 7);

FlaxPath[0].x := 2726;
FlaxPath[0].y := 3492;
FlaxPath[1].x := 2726;
FlaxPath[1].y := 3484;
FlaxPath[2].x := 2727;
FlaxPath[2].y := 3473;
FlaxPath[3].x := 2727;
FlaxPath[3].y := 3463;
FlaxPath[4].x := 2729;
FlaxPath[4].y := 3453;
FlaxPath[5].x := 2734;
FlaxPath[5].y := 3443;
FlaxPath[6].x := 2740;
FlaxPath[6].y := 3443;

End;


Function n_FFlag(Dist: Integer): Boolean;

Var
FlagSafe: Integer;

Begin

FlagSafe := GetSystemTime;

While FlagDistance > Dist Do
If GetSystemTime - FlagSafe >= 20000 Then
Exit
Else
Wait(20);

Result := True;
End;


Function WalkTTile(TileX, TileY: Integer): Boolean;

Var
X, Y: Integer;
Begin
TileToMinimap(TileX, TileY, X, Y);
X := X - 2 + Random(4);
Y := Y - 2 + Random(4);
If InCircle(X, Y, MMCX, MMCY, 74) Then
Begin
MFNF(X, Y, 2, 2);
n_FFlag(8);
Result := True;
Wait(25);
End;
End;


Function WalkTo(Bank: Boolean): Boolean;

Var
I: Integer;
CS: String;
Begin
If GetMMLevels('run', CS) > 40 Then
SetRun(True);
If Bank Then
Begin
For I := High(FlaxPath)-1 DownTo 0 Do
Begin
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
End;
End Else
For I := 1 To High(FlaxPath) Do
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
Result := True;
End;



Function FindFlaxes: TPointArray;

Var
CTS: Integer;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, Result, 15328935, MSX1, MSY1, MSX2, MSY2, 10);
ColorToleranceSpeed(CTS);
End;


Function ClickFlax: Boolean;

Var
TPA: TPointArray;
X, Y, Z: Integer;

Begin

TPA := FindFlaxes;

Result := IsUpText('lax');

While (z <= High(TPA)) and (Not(Result)) Do
Begin
MMouse(TPA[z].x, TPA[z].y, 2, 2);
Result := IsUpText('lax');
z := z + 1;
End;

If Result Then
Begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, True);
If FlagPresent Then
Begin
Flag;
Wait(500 + Random(250));
End;
End;

End;


Function InBeeKeeper: Boolean;

Var
TPA: TPointArray;
B: TBox;
Begin
FindColorsTolerance(TPA, 0, 570, 35, 688, 129, 1);
B := GetTPABounds(TPA);
Result := GetArrayLength(TPA) = (B.x2 - B.x1) * (B.y2 - B.y1) + 200;
End;


Procedure PickingLoop;

Var
FlaxSafe, FailSafe, RT, RTimes, I: Integer;
Begin

FlaxSafe := GetSystemTime;
FailSafe := GetSystemTime

Repeat
If Not ClickFlax Then
I := I + 1
Else
Begin
I := 0;
FailSafe := GetSystemTime
Wait(200 + Random(400));
RT := GetSystemTime;

If InBeeKeeper Then
Begin
Logout;
Players[CurrentPlayer].Loc := 'Beekeeper';
Exit;
End;

If FindNormalRandoms Then
If Not LoggedIn Then
Begin
Writeln('*** Unsolvable random encountered. Breaking out of picking ***');
Break;
End Else
RTimes := RTimes + (GetSystemTime - RT);
End;
If I > 10 Then
Begin
Writeln('*** Over ten fails to find flax in a row, breaking out of picking ***');
Break;
End;
If InvFull Then
Begin
Writeln('*** Inventory full, heading to bank ***');
Break;
End;
If (GetSystemTime - FlaxSafe - RTimes) >= 90000 Then
Begin
Writeln('*** Time spent to picking and randoms exceeded 90 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
If GetSystemTime - FailSafe >= 15000 Then
Begin
Writeln('*** Time from last flax picked exceeded 15 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
Wait(100 + Random(200));
Until(Not(LoggedIn));
End;


Function FastFindBank: Boolean;

Var
X, Y: Integer;
Begin
X := MSCX;
Y := MSCY;
If FindObjTPA(X, Y, 3823205, 10, 2, 20, 20, 30, ['boot']) Then
Begin
Mouse(X, Y, 2, 2, False);
Result := ChooseOption('uickl');
If Result Then
n_FFlag(0);
End;
End;


Procedure BankWait; Forward;


Function OpenTheBank: Boolean;

Var
X: TIntegerArray;
Y, I: Integer;
Z: TPointArray;
Begin
X := [2724, 2727, 2728, 2729];
Y := 3494;
SetArrayLength(Z, 4);
For I := 0 To 3 Do
TileToMS(X[i], Y, 15, Z[i].x, Z[i].y);
SortTPAFrom(Z, Point(MSCX, MSCY));
For I := 0 To High(Z) Do
Begin
Mouse(Z[i].x, Z[i].y, 5, 5, False);
If ChooseOption('uickl') Then
Begin
Result := True;
BankWait;
Exit;
End;
End;
End;


Procedure BankWait;

Var
Safe: Integer;
Begin
Safe := GetSystemTime;
While GetColor(487, 42) <> 65536 Do
If GetSystemTime - Safe > 5000 Then
Break
Else
Wait(25);
End;


Procedure DepositFlax;

Var
X, Y: Integer;
Begin
If FindDTM(dtmFlax, X, Y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(X, Y, 2, 2, False);
ChooseOption('ll');
End;
Wait(800 + Random(400));
If InvCount > 0 Then
DepositAll;
End;


Procedure LocAndLoad(S: String);
Begin
Players[CurrentPlayer].Loc := S;
Logout;
End;


Procedure ShowStats;

Var
A, B, C: Integer;
S: String;
Begin
A := Players[CurrentPlayer].Integers[0];
B := FC;
C := Players[CurrentPlayer].Integers[1];
S := (IntToStr(B)+' / '+IntToStr(A)+'; Flax: '+IntToStr(C * 28));
Writeln('Player loc: ' + Players[CurrentPlayer].Loc);
Writeln(S);
Disguise(S);
RoundTime := RoundTime + (GetSystemTime - RoundMarker);
Try
Writeln('Average RoundTime: ' + IntToStr(RoundTime Div Counter Div 1000) + ' Seconds.');
Except
Writeln('Dodged a Divide By Zero.');
End;
End;


Procedure ScriptTerminate;
Begin
FreeDTM(DTMFlax);
End;


begin
SmartSetup('world137', True, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
SetupSRL;
LoadHooks;
LoadDTMs;
LoadPath;
DeclarePlayers;
Repeat
LoginPlayer;
SetChat('off', 2);
SetAngle(True);
Players[CurrentPlayer].Integers[0] := LoadsPerLog + Random(6);
FC := 0;
Repeat
RoundMarker := GetSystemTime;
If Not WalkTo(False) Then
Begin
LocAndLoad('Lost');
Break;
End;
Flag;
PickingLoop;
If Not LoggedIn Then Break;
If Not WalkTo(True) Then
Begin
LocAndLoad('Lost');
Break;
End;
Wait(2000 + Random(1000));
If Not OpenTheBank Then
Begin
LocAndLoad('BankFail');
Break;
End;
DepositFlax;
CloseBank;
FindNormalRandoms;
FC := FC + 1;
Inc(Players[CurrentPlayer].Integers[1]);
Counter := Counter + 1;
ShowStats;
Until(Not(LoggedIn)) or (FC > Players[CurrentPlayer].Integers[0]);
ShowStats;
NextPlayer(LoggedIn);
Until(False);
end.
hope this one works

~shut

Wool

2008-08-02 22:21:58

Im running it right now, ill let you know if anything goes wrong, but the only thing funny about it. As far as getting banned goes, when it goes to the feild and first gets there. It starts looking for the flax and the mouse jumps all over the screen really fast. Not to human like, but when the first plant runs out it finds the next one nicely.

Is this normal?

n3ss3s

2008-08-03 03:08:49

Im running it right now, ill let you know if anything goes wrong, but the only thing funny about it. As far as getting banned goes, when it goes to the feild and first gets there. It starts looking for the flax and the mouse jumps all over the screen really fast. Not to human like, but when the first plant runs out it finds the next one nicely.

Is this normal?


That's what you call a fast finder ;) It starts the finding when it's still moving, you can add a Flag; in start of PickingLoop if you want to.

Now this will be moved to Collecting.

gothguydante

2008-08-03 05:18:03

Successfully compiled (2509 ms)
File access error
File access error
SRL Compiled in 6672 msec
Welcome to Runescape.
*****my name*******
Creating the NickTPA.
Player loc: Lost
0 / 18; Flax: 0
Dodged a Divide By Zero.
NextPlayer

i don't understand did everything right and i'm at seers bank…


it logs it self out wile it's creating nick TPA

Shuttleu

2008-08-03 05:34:27

make sure you use this tutorial for setting up the reflection files http://www.srl-forums.com/forum/setu...on-t36169.html and use this version
program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Reflection/Reflection.scar}



Const
LoadsPerLog = 1000;


Var
dtmFlax, FC, RoundTime, RoundMarker, Counter: Integer;

Var
FlaxPath: TPointArray;



Procedure DeclarePlayers;

Begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'sern';

Players[0].Active := True;

End;


Procedure LoadDTMs;
Begin

dtmFlax := DTMFromString('78DA637466626078C98002B8E3F9182481342' +
'310FF07024633A09AC70C6880118904D2B64035F708A801D9758B' +
'801A7FA09A3B04D47803D5BC405511BE732FDCCD6035EE40350F5' +
'1D544ECDE8FAAC616534DF4A163A86ACC816A9EA2AA893F7D1E45' +
'0D00693916D2');
End;


Procedure LoadPath;
Begin

SetArrayLength(FlaxPath, 7);

FlaxPath[0].x := 2726;
FlaxPath[0].y := 3492;
FlaxPath[1].x := 2726;
FlaxPath[1].y := 3484;
FlaxPath[2].x := 2727;
FlaxPath[2].y := 3473;
FlaxPath[3].x := 2727;
FlaxPath[3].y := 3463;
FlaxPath[4].x := 2729;
FlaxPath[4].y := 3453;
FlaxPath[5].x := 2734;
FlaxPath[5].y := 3443;
FlaxPath[6].x := 2740;
FlaxPath[6].y := 3443;

End;


Function n_FFlag(Dist: Integer): Boolean;

Var
FlagSafe: Integer;

Begin

FlagSafe := GetSystemTime;

While FlagDistance > Dist Do
If GetSystemTime - FlagSafe >= 20000 Then
Exit
Else
Wait(20);

Result := True;
End;


Function WalkTTile(TileX, TileY: Integer): Boolean;

Var
X, Y: Integer;
Begin
TileToMinimap(TileX, TileY, X, Y);
X := X - 2 + Random(4);
Y := Y - 2 + Random(4);
If InCircle(X, Y, MMCX, MMCY, 74) Then
Begin
MFNF(X, Y, 2, 2);
n_FFlag(8);
Result := True;
Wait(25);
End;
End;


Function WalkTo(Bank: Boolean): Boolean;

Var
I: Integer;
CS: String;
Begin
If GetMMLevels('run', CS) > 40 Then
SetRun(True);
If Bank Then
Begin
For I := High(FlaxPath)-1 DownTo 0 Do
Begin
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
End;
End Else
For I := 1 To High(FlaxPath) Do
If Not WalkTTile(FlaxPath[i].x, FlaxPath[i].y) Then
Exit;
Result := True;
End;



Function FindFlaxes: TPointArray;

Var
CTS: Integer;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, Result, 15328935, MSX1, MSY1, MSX2, MSY2, 10);
ColorToleranceSpeed(CTS);
End;


Function ClickFlax: Boolean;

Var
TPA: TPointArray;
X, Y, Z: Integer;

Begin

TPA := FindFlaxes;

Result := IsUpText('lax');

While (z <= High(TPA)) and (Not(Result)) Do
Begin
MMouse(TPA[z].x, TPA[z].y, 2, 2);
Result := IsUpText('lax');
z := z + 1;
End;

If Result Then
Begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, True);
If FlagPresent Then
Begin
Flag;
Wait(500 + Random(250));
End;
End;

End;


Function InBeeKeeper: Boolean;

Var
TPA: TPointArray;
B: TBox;
Begin
FindColorsTolerance(TPA, 0, 570, 35, 688, 129, 1);
B := GetTPABounds(TPA);
Result := GetArrayLength(TPA) = (B.x2 - B.x1) * (B.y2 - B.y1) + 200;
End;


Procedure PickingLoop;

Var
FlaxSafe, FailSafe, RT, RTimes, I: Integer;
Begin

FlaxSafe := GetSystemTime;
FailSafe := GetSystemTime

Repeat
If Not ClickFlax Then
I := I + 1
Else
Begin
I := 0;
FailSafe := GetSystemTime
Wait(200 + Random(400));
RT := GetSystemTime;

If InBeeKeeper Then
Begin
Logout;
Players[CurrentPlayer].Loc := 'Beekeeper';
Exit;
End;

If FindNormalRandoms Then
If Not LoggedIn Then
Begin
Writeln('*** Unsolvable random encountered. Breaking out of picking ***');
Break;
End Else
RTimes := RTimes + (GetSystemTime - RT);
End;
If I > 10 Then
Begin
Writeln('*** Over ten fails to find flax in a row, breaking out of picking ***');
Break;
End;
If InvFull Then
Begin
Writeln('*** Inventory full, heading to bank ***');
Break;
End;
If (GetSystemTime - FlaxSafe - RTimes) >= 90000 Then
Begin
Writeln('*** Time spent to picking and randoms exceeded 90 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
If GetSystemTime - FailSafe >= 15000 Then
Begin
Writeln('*** Time from last flax picked exceeded 15 seconds ***');
Writeln(' - breaking out of picking.');
Break;
End;
Wait(100 + Random(200));
Until(Not(LoggedIn));
End;


Function FastFindBank: Boolean;

Var
X, Y: Integer;
Begin
X := MSCX;
Y := MSCY;
If FindObjTPA(X, Y, 3823205, 10, 2, 20, 20, 30, ['boot']) Then
Begin
Mouse(X, Y, 2, 2, False);
Result := ChooseOption('uickl');
If Result Then
n_FFlag(0);
End;
End;


Procedure BankWait; Forward;


Function OpenTheBank: Boolean;

Var
X: TIntegerArray;
Y, I: Integer;
Z: TPointArray;
Begin
X := [2724, 2727, 2728, 2729];
Y := 3494;
SetArrayLength(Z, 4);
For I := 0 To 3 Do
TileToMS(X[i], Y, 15, Z[i].x, Z[i].y);
SortTPAFrom(Z, Point(MSCX, MSCY));
For I := 0 To High(Z) Do
Begin
Mouse(Z[i].x, Z[i].y, 5, 5, False);
If ChooseOption('uickl') Then
Begin
Result := True;
BankWait;
Exit;
End;
End;
End;


Procedure BankWait;

Var
Safe: Integer;
Begin
Safe := GetSystemTime;
While GetColor(487, 42) <> 65536 Do
If GetSystemTime - Safe > 5000 Then
Break
Else
Wait(25);
End;


Procedure DepositFlax;

Var
X, Y: Integer;
Begin
If FindDTM(dtmFlax, X, Y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(X, Y, 2, 2, False);
ChooseOption('ll');
End;
Wait(800 + Random(400));
If InvCount > 0 Then
DepositAll;
End;


Procedure LocAndLoad(S: String);
Begin
Players[CurrentPlayer].Loc := S;
Logout;
End;


Procedure ShowStats;

Var
A, B, C: Integer;
S: String;
Begin
A := Players[CurrentPlayer].Integers[0];
B := FC;
C := Players[CurrentPlayer].Integers[1];
S := (IntToStr(B)+' / '+IntToStr(A)+'; Flax: '+IntToStr(C * 28));
Writeln('Player loc: ' + Players[CurrentPlayer].Loc);
Writeln(S);
Disguise(S);
RoundTime := RoundTime + (GetSystemTime - RoundMarker);
Try
Writeln('Average RoundTime: ' + IntToStr(RoundTime Div Counter Div 1000) + ' Seconds.');
Except
Writeln('Dodged a Divide By Zero.');
End;
End;


Procedure ScriptTerminate;
Begin
FreeDTM(DTMFlax);
End;


begin
SmartSetup('world137', True, True, False);
Wait(5000);
SetTargetDC(SmartGetDC);
SetupSRL;
LoadHooks;
LoadDTMs;
LoadPath;
DeclarePlayers;
Repeat
LoginPlayer;
SetChat('off', 2);
SetAngle(True);
Players[CurrentPlayer].Integers[0] := LoadsPerLog + Random(6);
FC := 0;
Repeat
RoundMarker := GetSystemTime;
If Not WalkTo(False) Then
Begin
LocAndLoad('Lost');
Break;
End;
Flag;
PickingLoop;
If Not LoggedIn Then Break;
If Not WalkTo(True) Then
Begin
LocAndLoad('Lost');
Break;
End;
Wait(2000 + Random(1000));
If Not OpenTheBank Then
Begin
LocAndLoad('BankFail');
Break;
End;
DepositFlax;
CloseBank;
FindNormalRandoms;
FC := FC + 1;
Inc(Players[CurrentPlayer].Integers[1]);
Counter := Counter + 1;
ShowStats;
Until(Not(LoggedIn)) or (FC > Players[CurrentPlayer].Integers[0]);
ShowStats;
NextPlayer(LoggedIn);
Until(False);
end.
i hope i have helped you as well

~shut

gothguydante

2008-08-03 06:10:05

i did the reflections thing both copy and past and tortoise way.. thought maybe i messed up is that the same as the attached one?

n3ss3s

2008-08-03 06:41:55

Shuttleu, your forgot to change the reflection including ;)

Shuttleu

2008-08-03 06:43:40

oh shoot so i did
i have changed it now

~shut

slakan

2008-08-03 07:16:13

finaly youres shuttleu works for me :) tyvm

slakan

2008-08-03 07:19:28

To get it 2 work after u have downlaoded reflection.

CHANGE

program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Mics/Reflection.scar}

to the beautifull

program New;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Reflection/Reflection.scar}

slakan

2008-08-03 10:04:34

got it 2 work, but loggs out after 3-4 rouns say cannot find player xD and its still there :D

jose89

2008-08-03 12:01:53

From: slakan
Like somone tel me how i setup the hook :P

help show me in forum like last lines


if you followed the tutorial by masterskill do this.

Right click on reflection folder then choose SVN Update.

Magiic

2008-08-03 12:42:54

hmm ok so i deleted the proggy but it ran quite nicely and picked i think 648 flax however i stopped it because i was bored but i was just wondering does reflection solve all the randoms or do we need the scripts for it? (like rsbot)

Shuttleu

2008-08-03 13:01:12

From: sandos1234
hmm ok so i deleted the proggy but it ran quite nicely and picked i think 648 flax however i stopped it because i was bored but i was just wondering does reflection solve all the randoms or do we need the scripts for it? (like rsbot)

reflection does not solve the randoms we have to solve them the same way scar has always done them
through colour finding :D

~shut

yourock12345

2008-08-03 14:24:06

it just logs in than logs out for me
Successfully compiled (4631 ms)
SRL Compiled in 8578 msec
Welcome to Runescape.
Creating the NickTPA.
Player loc: Lost
0 / 3; Flax: 0
Dodged a Divide By Zero.
NextPlayer
Successfully compiled (3653 ms)
File access error
File access error
SRL Compiled in 5032 msec
Creating the NickTPA.
Successfully executed
Successfully compiled (3081 ms)
File access error
SRL Compiled in 5032 msec
Creating the NickTPA.
Player loc: Lost
0 / 18; Flax: 0
Dodged a Divide By Zero.
NextPlayer

Shuttleu

2008-08-03 14:48:51

read my post a few posts up
this one http://www.srl-forums.com/forum/showpost.php?p=442195&postcount=47

~shut

aznpimpsturr

2008-08-03 20:50:59

I love this script!
Made 82 runs w/o a problem, stopped it manually. Forgot to save proggy though. :(

Hobbit

2008-08-04 03:10:45

Works amazing :)
I just need 230k flax and I'm all set :p

One thing maybe is add in bank pin support

n3ss3s

2008-08-04 03:38:04

Works amazing
I just need 230k flax and I'm all set

One thing maybe is add in bank pin support


I don't know why, but I have some kind of natural hate sense about typing InPin(..) in there, and making a failsafe for it :p

Thanks :)

Hobbit

2008-08-04 03:39:39

Lazy :p

Procedure DepositFlax;

Var
X, Y: Integer;
Begin
if pinScreen then inPin(Players[CurrentPlayer].pin);
wait(100+random(80));
If FindDTM(dtmFlax, X, Y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(X, Y, 2, 2, False);
ChooseOption('ll');
End;
Wait(800 + Random(400));
If InvCount > 0 Then
DepositAll;
End;


That is working for me.

n3ss3s

2008-08-04 03:45:22


if pinScreen then inPin(Players[CurrentPlayer].pin);

If I do that then I have to do If InPin Else AndThisIsWhereItStartsAAARGH.

:p

luke

2008-08-04 06:13:10

Include file C:\SCAR 3.15\includes\SRL\SRL\Misc\Reflection.scar does not exist i get this error but ive downloaded and installed reflection using masterkills guide.. can u help me out please?

aznpimpsturr

2008-08-04 08:58:13

*** Inventory full, heading to bank ***
Player loc: BankFail
86 / 1004; Flax: 2408
Average RoundTime: 130 Seconds.
NextPlayer

simen236

2008-08-04 09:32:19

From: luke
Include file C:\SCAR 3.15\includes\SRL\SRL\Misc\Reflection.scar does not exist i get this error but ive downloaded and installed reflection using masterkills guide.. can u help me out please?


Read the previous pages for fuckin sake!!!

Shuttleu

2008-08-04 09:38:42

From: luke
Include file C:\SCAR 3.15\includes\SRL\SRL\Misc\Reflection.scar does not exist i get this error but ive downloaded and installed reflection using masterkills guide.. can u help me out please?

ugh… read this… http://www.srl-forums.com/forum/showpost.php?p=442195&postcount=47

~shut

slakan

2008-08-04 11:39:46

omg this is one wierd script :P hehe


*** Inventory full, heading to bank ***
Player loc: Lost
2 / 11; Flax: 56
Average RoundTime: 180 Seconds.
NextPlayer


Then it just loggs out on the way to bank xD

Hobbit

2008-08-04 13:24:29

From: slakan
omg this is one wierd script :P hehe


*** Inventory full, heading to bank ***
Player loc: Lost
2 / 11; Flax: 56
Average RoundTime: 180 Seconds.
NextPlayer


Then it just loggs out on the way to bank xD


Read in your report…

"Player loc: Lost"


I've had that problem too, I've gotten 8 loads max then it got lost… and it keeps getting lost. I don't understand it.

Also for those who don't understand how to add reflection into srl… extract this file in the "Includes" folder in SCAR.

http://mihd.net/v06kby3

n3ss3s

2008-08-04 14:00:38

Weird, shouldn't get lost, doesn't for me and apparently not this guy either, thank you very much :)

Shuttleu

2008-08-04 14:03:50

didnt get lost for me either

sorry i ran the script and my little brother pulled the plug out so i didnt get the proggy but it did around 60 runs

~shut

slakan

2008-08-04 15:35:21

Well my does like 3-4 round, then pick a full load and goes to bank half way loggs out and say cant fint player

slakan

2008-08-04 15:38:30

From: n3ss3s
Weird, shouldn't get lost, doesn't for me and apparently not this guy either, thank you very much :)


Wierd, i did try it like 5 times..


every time it loggs out after 3-4 loads when it got a full load of flax and on the way to bank loggs out and player lost

aznpimpsturr

2008-08-04 18:05:30

Still no problems. :)..stopped manually.

Player loc:
66 / 1001; Flax: 1848
Average RoundTime: 135 Seconds.
*** Inventory full, heading to bank ***
Successfully executed

Shuttleu

2008-08-04 18:41:49

tell you what
i will run it with my brothers account and then i will post the proggy in the morning

~shut

EDIT: oh and mabey you could half the speed of the flax picking?

n3ss3s

2008-08-05 03:03:57


EDIT: oh and mabey you could half the speed of the flax picking?


The problem is that when they started doing all kinds of graphical improvement shit, they made the flax picking animation slower, it's like the new bone burying animation so it's no use to click the flax faster…

Shuttleu

2008-08-05 06:52:24

From: n3ss3s
The problem is that when they started doing all kinds of graphical improvement shit, they made the flax picking animation slower, it's like the new bone burying animation so it's no use to click the flax faster…

what i mean by halfing the speed it instead of it clicking the flax every 0.5 seconds mabey you could make it click the flax every 0.75 or mabey every 1 second because imo it clicks the flax too fast

oh and i found out something
when i put SetupReflection; then script only runs for about 5-10 loads but if i put LoadHooks; then it will run for as long as it can until it gets a random
dunno why but it just does :s

~shut

aznpimpsturr

2008-08-05 09:39:49

Ran the script overnight and lost the proggy. It was at the bank with a full invent of flax. Had 4.5k flax when I checked bank. So thats like 5 hours?

aznpimpsturr

2008-08-05 11:38:32

I tried running it again today and…..After it logs in, it just clicks the "run" button and then it clicks the "log out" button.

Shuttleu

2008-08-05 11:58:16

From: aznpimpsturr
I tried running it again today and…..After it logs in, it just clicks the "run" button and then it clicks the "log out" button.

reflection hooks are broken
just wait till they are updated :)

~shut

Magiic

2008-08-05 16:44:31

ahh ok shut and i keep closing down scar with some nice proggys right next time i'm gonna tell my mum i aint turning the pc off lol

krazyk56

2008-08-05 20:46:24

hey, i would really love to post a proggy, but for some reason, it logs me in and everything fine. but then it just stands there untill i log out. do you know why this is?

aznpimpsturr

2008-08-05 21:49:35

From: krazyk56
hey, i would really love to post a proggy, but for some reason, it logs me in and everything fine. but then it just stands there untill i log out. do you know why this is?


reflection is outdated.

[-jesus-]

2008-08-05 22:01:16

Your walking doesn't seem to be backed up with regular, SRL-type walking, N3ss3s… :( Now the script goes offline.

P1nky

2008-08-06 01:53:02

dang bad mistake :( yeah noticed reflection Broken ;( thats what ever scripter is scared about lol haha jk

but yeah seems great coding :)

n3ss3s

2008-08-06 03:30:01

Your walking doesn't seem to be backed up with regular, SRL-type walking, N3ss3s… Now the script goes offline.


If I'd want to do color walking and shit I would make a pure SRL script.

Shuttleu

2008-08-06 03:45:50

From: n3ss3s
If I'd want to do color walking and shit I would make a pure SRL script.

so why dont you?
you could make the best flax picking script

~shut

luke

2008-08-06 04:14:15

Player loc: Lost
0 / 1004; Flax: 0
Dodged a Divide By Zero.
NextPlayer

it worked until an update?

is it cuz the hooks need updating?

Shuttleu

2008-08-06 05:21:21

From: luke
Player loc: Lost
0 / 1004; Flax: 0
Dodged a Divide By Zero.
NextPlayer

it worked until an update?

is it cuz the hooks need updating?

yes the hooks need updating
as i said on the page before

~shut

the scar noob

2008-08-06 10:28:38

N3s, if I was you, I'd close this thread until the hooks are updated again, else your thread will be filled with noob questions about why your script doesn't work:p

-Tsn.

n3ss3s

2008-08-06 10:30:20

They'll pay for their spam ;)

simen236

2008-08-06 10:34:00

who is really updating the hooks?

When the script works, what is best of SetupReflection; and LoadHook; ?

Shuttleu

2008-08-06 10:38:13

From: simen236
who is really updating the hooks?

When the script works, what is best of SetupReflection; and LoadHook; ?

LoadHooks; works better for me :)

and qauters usually updates them but i think he is on holiday
you can check when there done by looking here http://trac2.assembla.com/rsbotsvn/timeline they will be done when you see a update by qauters

~shut

n3ss3s

2008-08-07 08:09:58

Okay, I think reflection is working again, have fun flaxing!

kingarabian

2008-08-07 11:39:55

Just keeps logging me in and out.

Player loc: Lost
0 / 5; Flax: 0
Dodged a Divide By Zero.
NextPlayer

Were supposed to start at the bank, am I right?

aznpimpsturr

2008-08-07 11:53:29

Player loc: Lost
0 / 1004; Flax: 784
Average RoundTime: 130 Seconds.
NextPlayer

Got stuck at the quiz dude but other than that it works great. :D

n3ss3s

2008-08-07 12:18:03

0 / 1004; Flax: 784


Are you insane? Keep the LoadsPerLog at 3-4 so you won't get almost any randoms, trust me, it won't slow you down or anything…

j035m03

2008-08-07 12:20:07

is reflection working again?

MasterKill

2008-08-07 12:21:58

From: j035m03
is reflection working again?


yes, update your svn.

aznpimpsturr

2008-08-07 12:23:38

From: n3ss3s
Are you insane? Keep the LoadsPerLog at 3-4 so you won't get almost any randoms, trust me, it won't slow you down or anything…


No I'm not insane. :p I'll try that.

Rubix

2008-08-07 14:31:51

where is this for? im assuming camelot, will edit tihs post and put a proggy.. need to get santa soon, so ill be using it ALOT

kingarabian

2008-08-07 14:37:38

Nevermind, I dont think SetupReflection; was called. Expect a long mofo proggie from me.

1 / 5; Flax: 1932 still running.
Average RoundTime: 156 Seconds.

Edit:3 /6; Flax: 2623
Average RoundTime: 154 Seconds.

stopped it.

YakuzaAngel

2008-08-09 09:29:00

Hmm havnt been able to get this one to work followed all the tutorials and such so far just cant seem to get past this error, any ideas?

Line 95: [Error] (16675:1): Unknown identifier 'TileToMinimap' in script

n3ss3s

2008-08-09 12:47:26

The first post tells you not to post without reading the first three pages!

YakuzaAngel

2008-08-09 14:10:50

Sorry man ive read through all three of them a few times and im fairly certain ive done everything instructed the only part thats perplexing me is adding hooks.scar to reflection.scar without this i get the unknown identifier error but upon adding hooks to reflection i get a duplicate identifier error :( tryed my best to fix it myself without having to trouble anyone else but since i know jack about scripting im at my ends

Timer

2008-08-09 14:19:43

in my signature, go to the reflection downloader, run it, and you have reflection!

YakuzaAngel

2008-08-09 16:41:17

Success finally!, if anyone else encounters the error:
Unknown identifier 'TileToMinimap' in script
TileToMinimap must be changed to TileToMM

welcome

2008-08-09 21:21:25

Amazing script ++rep!!
Player loc: Lost
73 / 101; Flax: 2044
Average RoundTime: 127 Seconds.
NextPlayer

aznpimpsturr

2008-08-10 00:01:52

Player loc: Lost
0 / 7; Flax: 2184
Average RoundTime: 150 Seconds.
NextPlayer

YakuzaAngel

2008-08-10 06:56:44

1 / 8; Flax: 840
Average RoundTime: 150 Seconds.

Stopped myself

n3ss3s

2008-08-10 11:10:53

Nice, thanks guys :)

Runescape Pro

2008-08-10 19:05:49

n3ss3s = god!
Very good script, got me 1.3k flax in no time. Im going to use it more right now. I will post a proggy if it lasts longer than 25 loads. My first time running this it got me 20 loads. VERY GOOD SCRIPT. TY =]

EDIT: This is so far:
Player loc: 
25 / 105; Flax: 700
Average RoundTime: 133 Seconds.

twixster

2008-08-10 20:09:47

I have read through the threads but I still can't get past an error.

L ine 95: [Error] (16651:1): Unknown identifier 'TileToMinimap' in script C:\Program Files\SCAR 3.15\Scripts\SmartFlaxerPUB.scar
Failed when compiling


So than I changed it to :
TileToMM(TileX, TileY, X, Y);


Now I get the error:
Line 95: [Error] (16651:29): Invalid number of parameters in script C:\Program Files\SCAR 3.15\Scripts\SmartFlaxerPUB.scar

Magiic

2008-08-11 04:05:34

erm i don't know if after ive inputted this itll solve the beekeeper or not but i used the solver lorax made and put it in heres the script.
edit:100th post
edit2:just change it to TileToMM(whatever was here);

n3ss3s

2008-08-11 07:12:18

Lorax's solver doesn't work, that's why I didn't put it in there originally…

twixster

2008-08-11 11:43:11

I already did change it to TileToMM
THAN I GET THIS ERROR:
Line 325: [Error] (16881:29): Invalid number of parameters in script C:\DOCUME~1\MSM\LOCALS~1\Temp\flax.scar

aznpimpsturr

2008-08-11 15:19:40

Line 95: [Error] (16651:29): Invalid number of parameters in script

YakuzaAngel

2008-08-11 21:00:35

From: twixster
I already did change it to TileToMM
THAN I GET THIS ERROR:
Line 325: [Error] (16881:29): Invalid number of parameters in script C:\DOCUME~1\MSM\LOCALS~1\Temp\flax.scar


script is outdated roll back to reflection revision 60 to use it until its updated

n3ss3s

2008-08-12 04:31:01

Updated.

slakan

2008-08-12 06:26:41

oki im going to try it :)

Shuttleu

2008-08-12 07:10:42

you know you could have used the functions from reflection instead of coppying old versions

GodDamit(X[i], Y, 15, Z[i].x, Z[i].y);
could have been
Z[i]:=TileToMS(Point(X[i], Y), 15);
:)
just go through the function and find out what what has changed and change the code accordingly instead of coppying old pices of code :)

~shut

Magiic

2008-08-12 08:21:15

sorry mixter i thought you meant you'd changed the parameters..
and i didn't know about it not working lol i just thought you might have missed it or something :P

Magiic

2008-08-12 08:21:18

sorry mixter i thought you meant you'd changed the parameters..
and i didn't know about it not working lol i just thought you might have missed it or something :P

aznpimpsturr

2008-08-12 10:04:15

Is reflection broken again?:(
Player loc: Lost
0 / 7; Flax: 0
Dodged a Divide By Zero.
NextPlayer
:(

twixster

2008-08-12 12:17:35

Ok first, guys if you don't want every flax picker in world 137 to get banned than make sure you change the world yourself:
SmartSetup('world137', True, True, False);
Or every flax picker from Srl will be in that world.

Second I am getting Logged In Player is not in Players array. Which doesn't make sense because I have tried every possible combination of the nick name.
So I am still unable to run it.

n3ss3s

2008-08-12 12:31:03

LoginPlayer's fault…

Shuttleu

2008-08-12 12:42:28

From: twixster
Ok first, guys if you don't want every flax picker in world 137 to get banned than make sure you change the world yourself:
SmartSetup('world137', True, True, False);
Or every flax picker from Srl will be in that world.

Second I am getting Logged In Player is not in Players array. Which doesn't make sense because I have tried every possible combination of the nick name.
So I am still unable to run it.

here you go http://www.villavu.com/forum/showthread.php?t=33332
make sure you use the search button next time

~shut

twixster

2008-08-12 13:44:53

Thanks Shutt,I did search but was unable to find that post before =),guess I didn't try hard enough.
But now it is telling me it dodged a divide by zero and logs out:
Creating the NickTPA.
Player loc: Lost
0 / 8; Flax: 0
Dodged a Divide By Zero.
NextPlayer

I know you keep telling people to update for this problem but, this occurs even tho I updated the Reflection folder,so is it down again?

Shuttleu

2008-08-12 14:00:18

i think reflection broke with the update earlier today

~shut

twixster

2008-08-13 19:15:00

It still gets that error dam

jumbosped

2008-08-14 18:47:47

what is this error?
Loaded all chars. (NPCChars, TradeChars, SmallChars, StatChars, UpChars)
Failed when compiling
Line 95: [Error] (16671:7): Unknown identifier 'TileToMM' in script

twixster

2008-08-15 00:34:16

Creating the NickTPA.
Player loc: Lost
0 / 3; Flax: 0
Dodged a Divide By Zero.
NextPlayer



It always does that and logs.
Reflection has updated three time since so idk if thats the issue.

saosin love

2008-08-15 00:55:29

Line 32: [Hint] (16128:25): Variable '' never used in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Walking.Scar

help please the script just logs in and out//???

saosin love

2008-08-15 00:56:48

mine is doing just the same bro

Magiic

2008-08-15 03:08:57

yeah the error is the same for me :P and i had it working for a while script needs updating?

n3ss3s

2008-08-15 08:28:21

I don't know, pick your flax legit…

twixster

2008-08-15 10:29:22

lol yeh right……..

you won

2008-08-15 17:46:24

this could get 800k a night easy…please fix this :S

Magiic

2008-08-16 07:30:22

yeah i just think maybe they changed the tiles or something :@

noob-2

2008-08-16 13:12:45

I'm not gonna lie but it works perfect for me.

n3ss3s

2008-08-17 02:24:02

They didn't…

Mclarenvj

2008-08-18 14:05:34

Ugh. Looks like a good script…

Failed when compiling
Line 95: [Error] (16647:1): Unknown identifier 'TileToMinimap' in script C:\Documents and Settings\VJ\My Documents\SmartFlaxerPUB.scar

That error is begining to annoy me now -.-.
And I can't find where i Put my User and Pass <<<

Magiic

2008-08-18 14:20:03

read a few posts up for the answer to the error its what you should do before posting anyway and it wouldn't be the declare players function?
you may want to learn how to script instead of leeching

you won

2008-08-18 14:25:53

This script logs out as soon as it has logged in…how do i fix this??

n3ss3s

2008-08-19 12:17:12

Party's over!