SRL Archive - First Scripts

Negaal's 1st script - AutoCooker


Negaal

2007-08-28 10:13:34

Falador Cooker by Negaal


DIVI REQUIRED SCSS Optional.


Beta v0.1

* Compatibilised for SRL 4.

* AutoColor
* Fast door finder(trys to find open or closed door);
* Can start from Fally Centre, Cookery and Bank.
* AntiBan
* Should solve Randoms
* Progress report
* Failsafes


—————————————————————————————————————————————–
Takes Raw food From Falador east bank, cooks it and banks…and loops

It's has still lot of bugs, please dont report them…help to fix them, need feedback… Haven't tested it much…
—————————————————————————————————————————————–

* 1. Place your Player near Bank, Fally centre or Range
* 2. Have raw food you want to Cook in 1st Bank slot…
* 3. If you got Bank pin then enter it in const(i'm not sure does it works)
—————————————————————————————————————————————–
v0.22 - Yarrr!
A working autocooker, it got lots of failsafes, backupcooking, if random or cooking level will come, also it got great location finding, fixed the pervious version bug…Still i need help to get progress report working:D

Now feel free to use my script, it's not beta anymore… it kinda works:)

Errr…, it's litle bit funny, but i'm asking help: Need free Shirps! :D (to test this damn script)

HyperSecret

2007-08-28 14:20:41

for a first not to bad, needs better standards, needs failsafes or the script wont run smoothly, and also just read some more tuts to learn

Negaal

2007-08-29 03:10:29

thx for feedback, btw i will upgrade it until run smoothly, atm i'm working on checking procedure what checks are raw foods cooked yet or not, btw i got somefailsafes if you have't noticed

dvdcrayola

2007-08-29 03:31:38

From: negaal
thx for feedback, btw i will upgrade it until run smoothly, atm i'm working on checking procedure what checks are raw foods cooked yet or not, btw i got somefailsafes if you have't noticed


just a hint, for that look at how IsUpText works… and modify it to look for Raw. :rolleyes:

looks good

Negaal

2007-08-29 08:36:48

From: dvdcrayola
just a hint, for that look at how IsUpText works… and modify it to look for Raw. :rolleyes:

looks good


Err you were saying that uptext is not working? or just to look how it works?
btw, it's not working propely… i used fish what i cant cook, then it pops up message that you need that cooking lvl… my script thinks it is random event and clicks to continue, then it tries to start cooking again, but this time isuptext wont find "raw" fish, it logs out…

procedure GettoCooking;
var x, y, tries : Integer;
begin
If not gametab(4) then
Gametab(4);
repeat
tries := tries + 1;
MouseItem(1, true);
Ftwait(1);
Getmousepos(x,y);
if not IsUpText('aw') then
begin
Logout;
Terminatescript;
Writeln('Food the Script took from 1st bank slot, is not raw, terminating');
end else
RawColor := GetColor(x, y);
FindObj(x, y, 'ange', 2302757, 5);
Getmousepos(x,y);
if IsUpTextmulti('ange','aw', '>') then
mouse(x,y,3,3,true);
Ftwait(1);
Rands;
FTwait(1);
Wait(100 + Random(75));
Rands;
Until(FindNpcChatText('ook?')) Or (Tries > 2); //How many would you like to cook
Mouse(260, 405, 30, 45, false);
Wait(75 + random(25));
Chooseoption('All');
Marktime(Cookstart);
end;
but i'll fix it :D

HyperSecret

2007-08-29 14:02:03

From: negaal
thx for feedback, btw i will upgrade it until run smoothly, atm i'm working on checking procedure what checks are raw foods cooked yet or not, btw i got somefailsafes if you have't noticed


i know you have some but not enough, also standards should be like this…

procedure GettoCooking;
var x, y, tries : Integer;
begin
If not gametab(4) then
Gametab(4);
repeat
tries := tries + 1;
MouseItem(1, true);
Ftwait(1);
Getmousepos(x,y);
if not IsUpText('aw') then
begin
Logout;
Terminatescript;
Writeln('Food the Script took from 1st bank slot, is not raw, terminating');
end else
RawColor := GetColor(x, y);
FindObj(x, y, 'ange', 2302757, 5);
Getmousepos(x,y);
if IsUpTextmulti('ange','aw', '>') then
mouse(x,y,3,3,true);
Ftwait(1);
Rands;
FTwait(1);
Wait(100 + Random(75));
Rands;
Until(FindNpcChatText('ook?')) Or (Tries > 2); //How many would you like to cook
Mouse(260, 405, 30, 45, false);
Wait(75 + random(25));
Chooseoption('All');
Marktime(Cookstart);
end;

Pwnt by Pwnt

2007-08-29 21:46:21

I can help test this and help you fix :) my MSN is [email]Pwnt_by_Pwnt@hotmail.com[/email] :) add me or PM me :o I will look thru it now ;)

srl noobest

2007-09-03 14:27:03

<========= Fala Cooker ==========>
<======= Progress Report ========>
<===========>
Worked for 4 Minutes and 47 Seconds
Cooked 0 loads,0 Trouts.
\\——All thanks to SRL team——-//
<===========Made by Negaal==========>
Time to Cook your Raw Food
28 still to cook…
24 still to cook…
24 still to cook…
22 still to cook…
18 still to cook…
16 still to cook…
15 still to cook…
12 still to cook…
11 still to cook…
8 still to cook…
7 still to cook…
6 still to cook…
0 still to cook…
Player Lost - terminated
Successfully executed

It actually cooked about four loads of trout. I don't know what to tell you about fixing coding, but the only problems I noticed with it was that the door finding and opening procedure is not working. It tried to click the door to get in and missed. Then it ran to the cooking range side of the building to proceed trying to cook the trout through the wall. I helped it open the door with the mouse and it worked fine until about the fourth load when the door shut him. The script couldn't find the door and logged me out.
Hope that helps.

Negaal

2007-09-08 14:37:37

From: srl noobest
<========= Fala Cooker ==========>
<======= Progress Report ========>
<===========>
Worked for 4 Minutes and 47 Seconds
Cooked 0 loads,0 Trouts.
\\——All thanks to SRL team——-//
<===========Made by Negaal==========>
Time to Cook your Raw Food
28 still to cook…
24 still to cook…
24 still to cook…
22 still to cook…
18 still to cook…
16 still to cook…
15 still to cook…
12 still to cook…
11 still to cook…
8 still to cook…
7 still to cook…
6 still to cook…
0 still to cook…
Player Lost - terminated
Successfully executed

It actually cooked about four loads of trout. I don't know what to tell you about fixing coding, but the only problems I noticed with it was that the door finding and opening procedure is not working. It tried to click the door to get in and missed. Then it ran to the cooking range side of the building to proceed trying to cook the trout through the wall. I helped it open the door with the mouse and it worked fine until about the fourth load when the door shut him. The script couldn't find the door and logged me out.
Hope that helps.


oh well, i havent looked into this thread like weeks, better try v0.3 its in junior scripts> cooking > negaal Fally Cooker

this version was super buggy… wow 4 loads!

ajaj

2007-09-08 17:40:38

ya it is kinda buggy not bad for a first script though :-D keep up the scripts

freedox

2007-11-12 04:22:23

It have a lot of bugs….You should fix this script problems…but good job anyway=P

Negaal

2007-11-12 04:43:30

From: freedox
It have a lot of bugs….You should fix this script problems…but good job anyway=P


This script is outdated…
/closed

poojaber

2007-11-12 05:10:57

now auto cook is just plan lazy…cookin is sooooo easy

JakeBath

2007-11-12 16:10:33

Not Bad For A 1st Script

rogeruk

2007-11-12 17:02:32

Omg lol, all these people spamming for the post count. Kinda makes the system useless

mark9510

2007-11-12 18:36:29

auto cook is not plain lazy when u macro and have 10k fish in your bank try cooking that without getting bored

carloxjr

2007-11-12 19:09:58

hey this si a great Script i testt it