SRL Archive - Outdated / Broken

cycrosism fast flax picker


cycrosism

2009-07-05 05:47:26

Hey this was just a fast flax picker I made it only took me like 2-3 hours and i've used it a lot of times.

My top proggies:

cycrosisms fast flax picker!
Ran for 5 Hours, 58 Minutes and 40 Seconds
Collected 4956 flax
Earned: 401436GC worth of flax
Flax per hour: 651 (approx)

cycrosisms fast flax picker!
Ran for 5 Hours, 57 Minutes and 20 Seconds
Collected 5012 flax
Earned: 405972GP worth of flax

script removed.

Camaro'

2009-07-05 07:55:01

OK , Nice script for private ( kinda ).

Needs some failsafes i think..
Well first

Procedure R_Flax;
begin
Repeat
PickThatFlax;
Until(InvFull)
Flax := Flax + 28;
GC := Flax * GetFlaxPrice;
Antiban;
MakeCompass(0);
end;

That could be bad if something happens that you cant see flax.
So


Procedure R_Flax;
var TimerTime:Integer;
begin
marktime(TimerTime);
Repeat
PickThatFlax;
if timefrommark(timertime) > 320000 then
begin
writeln('Failed pickin flax');
logout;
terminatescript;
end;
Until(InvFull)

Flax := Flax + 28;
GC := Flax * GetFlaxPrice;
Antiban;
MakeCompass(0);
end;
And lastly, i made you a getflaxprice function..

Function GetFlaxPrice: Integer;//When called it will return an integer. EX: If (GetFlaxPrice = 81) then...
var
S,T:string;

begin
S := getpage('http://itemdb-rs.runescape.com/viewitem.ws?obj=1779')//Flax URL on GE Database
T := between('Market price:</b>','</span>',S);//Getting the price(between those two strings)
If StrToInt(t) > 0 then
Result := StrToInt(T);
Writeln(Inttostr(Result));
end;

Procedure R_Flax
var TimerTime:Integer;
begin
marktime(TimerTime);
Repeat
PickThatFlax;
if timefrommark(timertime) > 320000 then
begin
writeln('Failed pickin flax');
logout;
terminatescript;
end;
Until(InvFull)
Flax := Flax + 28;
GC := Flax * GetFlaxPrice;
Antiban;
MakeCompass(0);
end;

Your banking procedure should be just incase it doenst open the bank.


Procedure BankFlax;
begin
Wait(500+random(500));
if R_OpenBankBooth('seb') then
begin
Wait(500+random(500));
DepositAll;
if random(2) = 1 then CloseBank;
end else
begin
writeln('failed bankin');
logout;
terminatescript;
end;
end;



function PickThatFlax: boolean;
var
xx:TPoint;
begin
Antiban;
if FindObjectEx(xX,2646,7) then
begin
//Result:= True;
XX:= TileToMS(XX, 0);
Mouse(xX.x,xX.y,5,5,True);
If(IsUpText('offre')) then
begin
Mouse(xX.x,xX.y,5,5,False);
Result := r_ChooseOption('ick');
end;
Wait(700+random(300));
While(CharacterAnimating or CharacterMoving) do
Begin
wait(50);
R_FindRandoms;
end;
end;
end;

You should result = true rite after it loads the flax object in member, you should result true after it picks.


Theres alot of those kinda errors you should fix, but i bet this script probally runs real fine, but you gotta fix those type of things. Like add timers in a repeat until loop, dont just call booleans like procedures, call them like "if chooseoption('ick') then" etc. Nice job

cycrosism

2009-07-05 07:59:07

Okay it picks flax pretty fast, I will be working on a newer version in a few days

cycrosism

2009-07-05 08:13:36

I didn't ask you to pull my script apart and tell me what is wrong.

The whole point of it is to be a FAST flax picker i do not need it to connect to a website to get the price of the flax when the user can easily define it

Da 0wner

2009-07-05 08:20:57

WOW Mark. You really need to work on your attitude. Learn to accept constructive criticism.

Also don't double post.

And Aaron, your procedure wouldn't work.

Use this:
function GetFlaxPrice: Integer;//When called it will return an integer. EX: If (GetFlaxPrice = 81) then...
begin
result := StrToInt(GetNumbers(between('Market price:</b>','</span>', GetPage('http://itemdb-rs.runescape.com/viewitem.ws?obj=1779'))));
if result = 0 then
Dec(result);
end;

Camaro'

2009-07-05 08:21:53

From: cycrosism
I didn't ask you to pull my script apart and tell me what is wrong.

The whole point of it is to be a FAST flax picker i do not need it to connect to a website to get the price of the flax when the user can easily define it


Well, that makes the script better. So if something does go wrong , your not in an infinite loop , and not having your MEMBERS runescape character sit there for hours doing nothing.

Connecting to the website is much easier, to me then going to the database every time i wanna run this, getting the price and inputting it in.

I was being nice, why dont you take a chill and relax little.

Dont use my code, i could care less, i was trying to help you. :confused:

Edit: Thanks da owner, and btw everyone. Da owner owns me at scar functions :). Connecting / getting info/ php stuff/ internet stuff like that :p

cycrosism

2009-07-05 08:22:17

I just dont like people who download my scripts just to criticize me

It was just a simple flax picker i made that took me like 2 hours, if you don't like it don't use it. simple

Camaro'

2009-07-05 08:26:30

From: cycrosism
I just dont like people who download my scripts just to criticize me

It was just a simple flax picker i made that took me like 2 hours, if you don't like it don't use it. simple


Why are you acting like this?

Look at your other scripts comment, i didnt download to just criticize, i downloaded to comment on the script. Next time if you dont want constructive criticism then put that in the first post.

"Please dont give me any bad comments on this"

MOST People here, would of loved that if some one did what i did. (Correct me if im wrong, but i doubt it.)

cycrosism

2009-07-05 08:27:33

Because I thought that I would do something nice by releasing a private script that only I used to you guys but all I get is "don't do this" etc…

Camaro'

2009-07-05 08:29:55

From: cycrosism
Because I thought that I would do something nice by releasing a private script that only I used to you guys but all I get is "don't do this" etc…


This is ridiculous, whatever.

Edit: @da owner:

Do you call everyone on srl by there names?

cycrosism

2009-07-05 08:31:38

From: The Cnr Sport
Ok, ill rephrase my self.

Excellent script, with tons of failsafes and it should never , ever fail!! GOOD JOB!

Happy?



I didn't ask for you to say it was an excellent script… look forget it ill remove the script

Da 0wner

2009-07-05 08:32:46

From: The Cnr Sport
This is ridiculous, whatever.

Edit: @da owner:

Do you call everyone on srl by there names?


Lulz, only if I know their name :p.

Blumblebee

2009-07-05 09:39:57

Cycro, man I like you alot, but you kinda gotta chill just a bit. When people try to help/toss some functions at you they are doing it to make the script better, not to embarass you or put you down. Cnr put some effort into that the least you could do is appreciate it, or analyse it even if you dont add it to the script, its something helpful.

P1nky

2009-07-05 10:30:44

lol he's just helping you….
I like when people help me and tell me what i can do to improve it?

Like wtf …. chill out bro

cycrosism

2009-07-05 11:01:58

I get the wrong impression when I first post the script and the first post to it is ways that I could make it better/improve it

Da 0wner

2009-07-05 11:03:35

….what's your impresson…

P1nky

2009-07-05 11:05:07

From: cycrosism
I get the wrong impression when I first post the script and the first post to it is ways that I could make it better/improve it


okay i guess so, btw why take out script :(? i want to see it lol :)