PDA

View Full Version : YoHoJo Video Tutorial #1, for ABSOLUTE BEGINNERS!



YoHoJo
11-09-2011, 01:34 AM
Watch it here:
http://www.youtube.com/watch?v=pMMejhyjGwI
Remember to switch to full screen, 720p quality, and to SCRIPT ALONG WITH ME!

This video is geared towards new people with absolutely NO scripting experience AT ALL. So don't be afraid, click it and learn!
Learn the basics of scripting exactly how I did back in the day!

Enjoy, talk about it here, and feel free to like, comment, favorite, subscripe LOLZ:duh:


If you enjoy my video tutorials, please feel free to https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4KJKW5C772ATS),it would really mean a lot!

kingarabian
11-09-2011, 01:38 AM
Sexy squeaky voice <3. Good job.

YoHoJo
11-09-2011, 01:40 AM
Sexy squeaky voice <3. Good job.

D: Not sure why I sound like that lolz.
Thanks

Kyle Undefined
11-09-2011, 01:43 AM
Finally, something they should be able to follow!

Also, http://i.imgur.com/SxuXZ.png Umm what?

BraK
11-09-2011, 01:46 AM
Nice vid. the goal will probably help some others out on getting started with scripting.

kingarabian
11-09-2011, 01:53 AM
Finally, something they should be able to follow!

Also, http://i.imgur.com/SxuXZ.png Umm what?

Don't worry about it. It all relates to Yohojo.

BUt WOW that sexy beast workout tutorial looks nice.

YoHoJo
11-09-2011, 01:57 AM
Yeah that girl uploads tons of workout vids, they are all sexy.

Heavenguard
11-09-2011, 02:19 AM
Nice YoHoJo! Tuts are stepping into a new generation of improvement.

beleeive
11-09-2011, 02:37 AM
Tomorrow i will watch and learn, i've been letting people use my 3 members accounts to update their scripts and such, and i've been using scripts, but i still feel like a leecher so i've been planning to start scripting tomorrow.

so thought earlier today "A video tutorial would be so helpful", and here one is :o

Mr. Bottomtooth
11-09-2011, 03:20 AM
Very nice tutorial! That goldfish game was getting owned. :p

Keep 'em coming, I'm sure many people will find these useful (myself included).

Overtime
11-09-2011, 03:55 AM
Dude just looking at the goldfish game im going to make one now haha, that was so tight!

YoHoJo
11-09-2011, 04:02 AM
Dude just looking at the goldfish game im going to make one now haha, that was so tight!

:D
Script can BEAST that game like CRAZY, run it long enough and there will be so many fish all you see is orange and your computer might even lag lolz!

Overtime
11-09-2011, 04:17 AM
:( What the fudge ctrl+enter isn't working for me and tried both right and left ones

YoHoJo
11-09-2011, 04:30 AM
You mean Ctrl+Space I think?

Overtime
11-09-2011, 04:40 AM
Omg i could swear i heard ctrl+enter

My bad, yes ctrl+space

EDIT: YES YOU DO, you say CTRL+ENTER at 17:21!

Aegis
11-09-2011, 04:48 AM
Hey, thanks! While I've already successfully scripted my own first script, I'm sure I'll learn some new things from this video. I'll be sure to watch the full video once I get some solid down-time. I'll be subscribing as well, thanks.

YoHoJo
11-09-2011, 04:51 AM
Omg i could swear i heard ctrl+enter

My bad, yes ctrl+space

EDIT: YES YOU DO, you say CTRL+ENTER at 17:21!

Bla bla bla, I say a lot of inaccurate things on accident in there, sorry! <3

Overtime
11-09-2011, 05:13 AM
Np thanks!

http://i23.photobucket.com/albums/b358/zero_1221/pwned.png

is there a way to set a priority to the the more cooked colors?

YoHoJo
11-09-2011, 05:22 AM
What, it stops at 350 now? Lame! (Or did you die?)
Actually, yes there is.
In the FindColorSpiralTolerance lines, just make the more cooked color ones higher than the less cooked ones.

Overtime
11-09-2011, 05:31 AM
MOD DOUBLE POST BANHAMMA! lol j/k

I died at 350 just to many got burned thats why i asked will set the priority thanks :D

Simtoon
11-09-2011, 05:46 AM
lol we can see the ssrl section and mod section

Overtime
11-09-2011, 05:48 AM
Fixed: http://i23.photobucket.com/albums/b358/zero_1221/pwned2.png

Thats my proggie haha

grats
11-09-2011, 07:43 AM
Yeah that girl uploads tons of workout vids, they are all sexy.

awesome!


at 24:20
"A lot of people don't like when bold words are capitals but I love it"

made me laugh so hard



great tutorial, watched it all lol, caught those fish so fast it was great, they didn't even enter the pan! I wish we could play rs like that

YoHoJo
11-09-2011, 07:48 AM
:D Glad you liked it, I'm glad a lot of you who know how to script are still taking time to watch it!
It means a lot, and I hope a lot of you new guys enjoy the video and learn something new!

And yeah! I LOVE me My Bold Capital Words!

Kyle Undefined
11-09-2011, 12:43 PM
Oh no! Double post by YoHoJo!?! :(

Back on topic, I think video tutorials should be the way to go from now on.

Mr. Bottomtooth
11-09-2011, 02:26 PM
What program did you use for the recording?

And I'll say it again, nice tut! :p

wolffang92
12-05-2011, 10:42 AM
This video helped me out a TON, I really hope you plan on making more of these, especially some runescape tutorials. I made my own script for defend your castle using this guide and it worked GREAT, I'm just having a really hard time making rs scripts...

Claymore
12-05-2011, 04:00 PM
Will definitely look into this once i fin school today. Want to start over again :)

hamster31
12-05-2011, 06:00 PM
Thank you for your help :) This tut was so informative and time for me to start working on my first script lol :D hehe

NexPB
12-05-2011, 08:02 PM
Awesome guide, good voice. It was fun to script this.

Smingo
12-05-2011, 08:14 PM
Great tut, I also watched the tut on DTM`s so i might try to make a simple script like an Alcher or Cannonballer :)

sahibjs
12-14-2011, 05:54 AM
Awesome guide! Should be stickied!


I've had absolutely no experience at all with scripting before, and this definitely made a ton of sense and was a great way to introduce how to script (:

YoHoJo
12-14-2011, 05:56 AM
Very glad you liked it.
I just uploaded my second tutorial today, this one actually teaches you to script for runescape:
http://villavu.com/forum/showthread.php?t=69179

Hope you enjoy this one as well!

Gushers
12-14-2011, 09:04 AM
Hey man thanks for the tutorial!
I built the Slap The Monkey Script just fine but when I get on the first step of the Save The Gold Fish Script I get this error: http://i1196.photobucket.com/albums/aa401/BrandonSpacek/Photo%20Help/Snapshot112-14-20112-59AM.png
Something about an error on paraments.. Any Help?

slakan
12-14-2011, 11:27 AM
When you take somthing that is hard to do, break it down so people understand it, then you are a master of it!

GR8 tutorial!!! ill be doing some flash games before ill do scar scripts :D

omg thank you!

YoHoJo
12-14-2011, 11:47 AM
@Gushers you forgot the left/right click parameter
remember, clickmouse looks like this:
procedure ClickMouse(x, y: Integer; clickType: Integer):
Ex: ClickMouse(547, 447, 1);
(You need either a 1 or 2 as the last parameteter to tell it to either left or right click)

@Slakan Glad you enjoyed it so much, you are welcome!

Gushers
12-14-2011, 11:20 PM
@Gushers you forgot the left/right click parameter
remember, clickmouse looks like this:
procedure ClickMouse(x, y: Integer; clickType: Integer):
Ex: ClickMouse(547, 447, 1);
(You need either a 1 or 2 as the last parameteter to tell it to either left or right click)

Alright man thanks for the reply!
I have this entered:
program SaveTheGoldFish;

procedure StartGame;
begin
ClickMouse(330, 533, 1);





begin
end.

And now I get this error (the line with end on it):
[Error] (13:4): Identifier expected at line 12
Compiling failed.

YoHoJo
12-14-2011, 11:37 PM
You need an end after that clickmouse lone. Every begin needs a corresponding end!
It should look like
End;

Gushers
12-14-2011, 11:46 PM
You need an end after that clickmouse lone. Every begin needs a corresponding end!
It should look like
End;

Thanks man! I got it. I was trying to compile as I go, but now I release that you can't compile until you have a section finished.

Gushers
12-15-2011, 12:42 AM
One last question. I have this:

procedure SaveGoldFish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y, 1471228, 16, 25, 264, 228, 20); or
FindColorSpiralTolerance(x, y, 1204732, 16, 25, 264, 228, 20); or
FindColorSpiralTolerance(x, y, 1003517, 16, 25, 264, 228, 20); then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(384, 50);
ReleaseMouse(384, 50, 1);
end;
end;

And I end up with this error: [Error] (20:67): 'THEN' expected at line 19.

sahibjs
12-15-2011, 12:43 AM
so I have a couple of questions...

1) the client won't let me do the alt+enter thing that lets me search the different functions! nothing happens

2) it keeps on saying Invalid number of parameters at line 13
Compiling failed. when I try to write "Wait (500)"

3) for my save the goldfish thing, I first have it scroll down a tad bit, and then preform the startgame procedure. How do I insert all the functions in my main function then?

YoHoJo
12-15-2011, 01:09 AM
One last question. I have this:

procedure SaveGoldFish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y, 1471228, 16, 25, 264, 228, 20); or
FindColorSpiralTolerance(x, y, 1204732, 16, 25, 264, 228, 20); or
FindColorSpiralTolerance(x, y, 1003517, 16, 25, 264, 228, 20); then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(384, 50);
ReleaseMouse(384, 50, 1);
end;
end;

And I end up with this error: [Error] (20:67): 'THEN' expected at line 19.


You know if you put the video to 720p you can see my code clearly and copy it better? Anyways, you need to remove the ;s from the ends of your FindColorSpiralTolerances you don't need those there because you have or's and then's so they don't need ;'s.

ALSO first thing's first you need better standards (the way in which you format your script)! After each begin there must be two a two space indent! Please take another look at the video and see how I space out my lines properly and try to do it like that! :] Good Luck!


so I have a couple of questions...

1) the client won't let me do the alt+enter thing that lets me search the different functions! nothing happens

2) it keeps on saying Invalid number of parameters at line 13
Compiling failed. when I try to write "Wait (500)"

3) for my save the goldfish thing, I first have it scroll down a tad bit, and then preform the startgame procedure. How do I insert all the functions in my main function then?

1) I think I misspoke in the video, the command is ctrl+space, not alt+enter!

2) Umm, can you show more of the script please? Wait(500) looks just fine, you SHOULD have a ; at the end like Wait(500); but besides that it should be okay. So show the entire script please and I'll find the problem.

3) Not sure what you are saying? Explain this better/again please.

Gushers
12-15-2011, 01:17 AM
=YoHoJo;862744]You know if you put the video to 720p you can see my code clearly and copy it better? Anyways, you need to remove the ;s from the ends of your FindColorSpiralTolerances you don't need those there because you have or's and then's so they don't need ;'s.

ALSO first thing's first you need better standards (the way in which you format your script)! After each begin there must be two a two space indent! Please take another look at the video and see how I space out my lines properly and try to do it like that! :] Good Luck!

Thanks man once again, I got it working! And about the formatting I listened to you when you said it in your video, in Simba it's all pretty and formated but when I pasted it to here it just took away the spaces. Now I'm gonna start with my first RuneScape script, thanks for the wishes of luck!

YoHoJo
12-15-2011, 01:19 AM
Thanks man once again, I got it working! And about the formatting I listened to you when you said it in your video, in Simba it's all pretty and formated but when I pasted it to here it just took away the spaces. Now I'm gonna start with my first RuneScape script, thanks for the wishes of luck!

Ohh okay, that's odd. Good that it is though!
Maybe next time if you post code on the forum put simba tags around it.

Good luck, how exciting!
If you didn't already know, I have also made tutorials for runescape scripts too:
http://villavu.com/forum/showthread.php?t=69179

sahibjs
12-15-2011, 01:43 AM
1) I think I misspoke in the video, the command is ctrl+space, not alt+enter!

2) Umm, can you show more of the script please? Wait(500) looks just fine, you SHOULD have a ; at the end like Wait(500); but besides that it should be okay. So show the entire script please and I'll find the problem.

3) Not sure what you are saying? Explain this better/again please.

Ctrl + space works! awesome.


procedure startgame;
begin;
MoveMouse (338, 621);
ClickMouse (338, 621)
wait (500);
MoveMouse (453, 591);
ClickMouse (453, 591);
wait (500);

it highlights the first wait and says Invalid number of parameters at line 13 Compiling failed.

And sorry about my 3rd question earlier, I re-read what I wrote, and I sound really stupid. I was a tad bit rushed :P


For my save the goldfish script, the first procedure that I wrote down was a procedure to scroll down the browser to a proper spot where the entire game can be seen.

How to I integrate that procedure into my main function (at the end of the script where we list the procedures to be performed)

YoHoJo
12-15-2011, 01:50 AM
Ctrl + space works! awesome.


procedure startgame;
begin;
MoveMouse (338, 621);
ClickMouse (338, 621)
wait (500);
MoveMouse (453, 591);
ClickMouse (453, 591);
wait (500);

it highlights the first wait and says Invalid number of parameters at line 13 Compiling failed.

And sorry about my 3rd question earlier, I re-read what I wrote, and I sound really stupid. I was a tad bit rushed :P


For my save the goldfish script, the first procedure that I wrote down was a procedure to scroll down the browser to a proper spot where the entire game can be seen.

How to I integrate that procedure into my main function (at the end of the script where we list the procedures to be performed)

Someone else already had the first problem you are having. Read this:
http://villavu.com/forum/showpost.php?p=862329&postcount=36
Basically, you forgot to tell clickmouse to left or right click!

As for the scrolling. I would just load the page and scroll down myself.
Because remember, you drag the crosshairs to the game before you start the script/to get coordinates. So dealing with stuff outside of the game doesn't work too well/would mess up your coordinates and stuff. Get it?

Yanhua
12-16-2011, 08:33 AM
Thanks for this YoHoJo! Really help me out a lot.

I'm thinking of starting a project with a friend of mine. A Soul Wars script.

Do you think it's achievable with colour?

YoHoJo
12-16-2011, 08:51 AM
Thanks for this YoHoJo! Really help me out a lot.

I'm thinking of starting a project with a friend of mine. A Soul Wars script.

Do you think it's achievable with colour?

Anything is! Go for it!
Maybe start a bit more simple though, check out tutorial #2 it's on my youtube channel, and then get the script in #2 working nicely, and then try soul wars!

Yanhua
12-16-2011, 09:28 AM
Anything is! Go for it!
Maybe start a bit more simple though, check out tutorial #2 it's on my youtube channel, and then get the script in #2 working nicely, and then try soul wars!

Watched part one already today :) Got my PowerChopper running nicely.

Downloading part two now.

Nietszche
12-17-2011, 01:41 AM
So I know absolutely next to nothing about computers and my time is somewhat limited yet I still am eager to learn to script. Is this something I can do with a limited schedule and limited computer knowledge?

Stray Bullets
12-17-2011, 01:45 AM
Thanks for this. Really helping me to wrap my head around SRL, Simba, etc etc. Starting my first project tomorrow!

YoHoJo
12-17-2011, 01:56 AM
So I know absolutely next to nothing about computers and my time is somewhat limited yet I still am eager to learn to script. Is this something I can do with a limited schedule and limited computer knowledge?

Take a watch and find out for yourself!
Everyone here seems to have 0 experience and I've been getting tons of great positive feedback. It's fun you can do it!
Take your time and learn at your own pace, you have all the time in the world if you just do it when you're free!

Kyle Undefined
12-17-2011, 02:11 AM
Sure thing! Will take some time, but you'll get the hang of it :)

:ninja:'d

Nietszche
12-17-2011, 02:30 AM
Thanks guys, I just wanted to make sure I wasn't getting into more than I could handle, luckily I'm on winter break for the next few weeks so I guess it's time to get crackin.

Gushers
12-17-2011, 02:48 AM
Hey man thanks for making the tutorials I've change up your script and made a TeaStealer and it's working flawless!
Now for other stuff I need to know what this error means:
[Error] (19:2): Identifier expected at line (number)

The part of the script having the problem is:

program Crime;

var
x, y:Integer;


procedure Attack;
begin
MoveMouse (435, 450);
ClickMouse (435, 450, 1);
Wait(5000);
end;


begin
Repeat
Attack;
end;

The error is at the last end;

Kyle Undefined
12-17-2011, 02:57 AM
begin
Repeat
Attack;
until(condition);
end;


You forgot the "until()" part of the repeat.

YoHoJo
12-17-2011, 03:01 AM
Hey man thanks for making the tutorials I've change up your script and made a TeaStealer and it's working flawless!
Now for other stuff I need to know what this error means:
[Error] (19:2): Identifier expected at line (number)

The part of the script having the problem is:

program Crime;

var
x, y:Integer;


procedure Attack;
begin
MoveMouse (435, 450);
ClickMouse (435, 450, 1);
Wait(5000);
end;


begin
Repeat
Attack;
end;

The error is at the last end;

Please tell me this is a script for a flash game and not runescape right?

Gushers
12-17-2011, 03:02 AM
Please tell me this is a script for a flash game and not runescape right?

Yeah this if for a flash game.

Gushers
12-17-2011, 03:07 AM
begin
Repeat
Attack;
until(condition);
end;


You forgot the "until()" part of the repeat.

I knew it! Thanks man, got it working!
1 Runescape and 1 Flash Game Script down.

YoHoJo
12-17-2011, 03:12 AM
I hope you're not using ClickMouse and HoldMouse and MoveMouse in the runescape one right?

Gushers
12-17-2011, 03:17 AM
I hope you're not using ClickMouse and HoldMouse and MoveMouse in the runescape one right?

Oo no man, Im using the script that you used in your tutorial but I changed up everything from woodcutting to theving from the Tea Stall and I added a few features. I just wanna say thank you for making these tutorials because now I actually have knowledge of scripting! Ill be releasing some scripts soon.

Yanhua
12-17-2011, 03:28 AM
YoHoJo, what is the most efficient and easy way to implement walking into a script?

DTM? SPS?

Couldn't find a tutorial or a guide to using SPS, if you could link me that would be great.

YoHoJo
12-17-2011, 03:37 AM
http://villavu.com/forum/showthread.php?t=66266&highlight=positioning+system
http://villavu.com/forum/showthread.php?t=62360&highlight=positioning+system

SPS is easiest by far. It's too iffy in my experience though works great sometimes but others it doesn't and makes me mad. SPS 2.0 will be out in January, should be a lot better.

Besides that I like to use a good autocolor/color along with this method:
http://villavu.com/forum/showthread.php?t=62071

Good Luck

Yanhua
12-17-2011, 03:43 AM
http://villavu.com/forum/showthread.php?t=66266&highlight=positioning+system
http://villavu.com/forum/showthread.php?t=62360&highlight=positioning+system

SPS is easiest by far. It's too iffy in my experience though works great sometimes but others it doesn't and makes me mad. SPS 2.0 will be out in January, should be a lot better.

Besides that I like to use a good autocolor/color along with this method:
http://villavu.com/forum/showthread.php?t=62071

Good Luck

Thanks for the links, been searching around for those for quite a while.

I'll try out SPS for now.

What do you think about DTM walking?

Specifically, using the FindDTMRotated. I'm having a bit of trouble with it. Here's the link to my thread if you're not too busy.
http://villavu.com/forum/showthread.php?p=864134

YoHoJo
12-17-2011, 03:47 AM
Never been a huge fan of DTM walking, experimented with it a bit LOOONG ago and just didn't really think it was reliable and stuff. Colors change way too much and stuff. A tolerance of like 50-70 would be needed of each point. I like DTMs though for like percisioin clicks like to be in a specific spot/building but not long term walking.

DDTMs for walking seems pretty viable, and ObjectDTMs: http://villavu.com/forum/showthread.php?t=68112 seem cool too.

Haven't done much walking recently, but some of my next few scripts will have walking. Planning to just use http://villavu.com/forum/showthread.php?t=62071, maybe some RadialRoadWalk, and maybe DTMs for a click here or there.

Unknown
12-17-2011, 06:16 PM
Just finished watching the whole video. Now, I'll be watching the runescape scripting tutorial. Appreciate it YoHoJo!

lilcmp1
12-20-2011, 04:46 PM
Loved the video! Was significantly easier to take in then the block of text that is the stickies. Thanks for making this. I look forward to learning more and watching the next video

Jhangir
12-20-2011, 05:53 PM
Gonna check this out tonight and start making my script.

davx
12-22-2011, 06:48 PM
Thanks now no more fish will die xD gonna try looking at your other videos now :)

boffysworld
12-24-2011, 01:16 PM
u make it so easy to understand.

Deadly Serious
12-30-2011, 01:57 AM
Thanks for the great video, I really like it how you put your coding knowledge into context, via a script :D Makes it so much easier to understand. I'm moving onto your next video now. I hope it's as informative as this one was.

Heya69
12-30-2011, 09:01 AM
I just watched your video very helpful, thank you.

Also, I noticed this on sythe. Is this you or someone impersonating you?
http://www.sythe.org/showthread.php?t=1307027

YoHoJo
12-31-2011, 10:04 AM
I just watched your video very helpful, thank you.

Also, I noticed this on sythe. Is this you or someone impersonating you?
http://www.sythe.org/showthread.php?t=1307027

Thanks for looking out for me, that is indeed me!

Thank you everyone for the positive feedback, enthusiasm, and for watching along and creating your first scripts!
Hope to see many of you advance even further by looking at other scripts and tutorials, and I will be slowly making more video tutorials in the future!

KFC
12-31-2011, 11:05 AM
I don't think you realize just how helpful you are ;) though in the runescape tutorial i felt like you kinda just threw 5 things at me in 2 seconds at the beginning. i've been practicing a little bit and im going to go back and try to watch it again :p.

YoHoJo
12-31-2011, 11:17 AM
I can clarify anything if needed just ask!
I also assume viewers to read though some text tutorials to supplement the videos.
Most of the stuff in rush is just copy/past thugs you don't need to 100% worry about but if you have any further questions just ask and I'll gladly answer!
Feels great to help!

KFC
01-02-2012, 09:00 AM
Could you briefly explain the part you started to go on about then stopped "so it sees the goldfish at 5, 5, but what if it moves to 5, 7... wait i make no sense..." i think i need that for a simple ogre killer script but i cant figure it out myself >.<

YoHoJo
01-02-2012, 09:09 AM
Tell me the minutes/second mark at which I said that, and rephrase question please. I'll answer and clarify it later :D.

KFC
01-02-2012, 09:40 AM
Tell me the minutes/second mark at which I said that, and rephrase question please. I'll answer and clarify it later :D.

22:38 <--- gives you a couple seconds of prep too, doesnt just go straight into you saying it.


anyway, i want to know how to do what you were talking about there because the ogres keep moving making my mouse miss the click in the script im making :/.

Triggerfinger
01-21-2012, 03:11 PM
Started watching this video, pretty helpful so far! Thanks

EDIT: So I am trying the Goldfish and sadly I have encounted an noob error....


program savethegoldfish;

procedure Startgame;
begin
MoveMouse (206, 359);
ClickMouse (206, 359, 1);
wait(1500);
MoveMouse (396, 327);
ClickMouse (396, 327, 1);
wait(1700);
MoveMouse (335, 156);
ClickMouse (335, 156, 1);
End;

procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y 936444, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 98559, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 469428, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 88319, 15, 25, 266, 230, 20); then
begin
MoveMouse (x, y);
HoldMouse (x, y, 1);
MoveMouse (371, 50);
ReleaseMouse (371, 50, 1);
end;
end;

begin
Startgame
Repeat
savegoldfish
until(false);
end.

This error:
[Error] (20:36): comma (',') expected at line 19
Compiling failed. (highlights the bold text)

Supertrent1
01-29-2012, 06:59 AM
An AMAZING tutorial for complete begginers. I started scripting a few days ago and am already perfecting my powerchopper!

BaYBeeZ
01-31-2012, 07:19 AM
Thank you so much for this video tutorial! I watched the whole thing through and was able to follow along and understand everything that you were doing. I'm going to go watch your second tutorial now and hopefully get started making my own Runescape script. Thanks again!

Dan the man
02-10-2012, 12:22 PM
Great tutorial man I really enjoyed it. Out of all the beginner tuts you explained it the best because when i actually tested it worked! Lol

I must admit I was typing along with your mistakes as you went haha. 3 Screens ftw!!

snowshoes
02-11-2012, 10:07 PM
This tutorial was excellent! <3

Love and light,

craggs
02-12-2012, 11:57 AM
great tutorial! simply explained and well presented.

its been a long time since ive done anything pascal based and im very much looking forward to ruining some flash game highscore tables with Simba!

ty! :thumbsup:

flameskillz
02-12-2012, 11:26 PM
i love how all ur guides are in video =)

cmxz1
02-13-2012, 05:16 PM
Noone else is hearing bass like every 30 seconds?

blother
03-15-2012, 12:33 AM
I've always tried to learn and get into scripting and never could because i just couldn't get a grasp on it. This video is really awesome and opened up some fun ways to mess around in simba. I am going to check out your other videos, and I am sure you will find some more wonderful comments from me there as well :D

Also, i love the mass fish in the pan when you get to like 1000 fish lol

C0N0R
04-03-2012, 10:01 PM
Well, ive completed the tutorial to the best of my ability, and heres the script



program SaveTheFish;

procedure StartGame;
Begin
MoveMouse(230, 357);
ClickMouse(230, 357, 1);
Wait(1500);
MoveMouse(404, 326);
ClickMouse(404, 326, 1);
Wait(1500);
MoveMouse(342, 153);
ClickMouse(342, 153, 1);
end;
procedure SaveGoldFish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y, 1471228, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1003517, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 172287, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1271548, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1003517, 16, 29, 260, 244, 20) then
Begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(360, 75);
ReleaseMouse(360, 75, 1);
end;
end;

begin
StartGame;
repeat
SaveGoldFish;
until(false);
end.

After attempting to run, i get an error:

Error: Exception: Out of memory at line 18


how do i fix this?


-------------------------------------------------------------

Started watching this video, pretty helpful so far! Thanks

EDIT: So I am trying the Goldfish and sadly I have encounted an noob error....


program savethegoldfish;

procedure Startgame;
begin
MoveMouse (206, 359);
ClickMouse (206, 359, 1);
wait(1500);
MoveMouse (396, 327);
ClickMouse (396, 327, 1);
wait(1700);
MoveMouse (335, 156);
ClickMouse (335, 156, 1);
End;

procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y 936444, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 98559, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 469428, 15, 25, 266, 230, 20); or
if FindColorSpiralTolerance(x, y 88319, 15, 25, 266, 230, 20); then
begin
MoveMouse (x, y);
HoldMouse (x, y, 1);
MoveMouse (371, 50);
ReleaseMouse (371, 50, 1);
end;
end;

begin
Startgame
Repeat
savegoldfish
until(false);
end.

This error:
[Error] (20:36): comma (',') expected at line 19
Compiling failed. (highlights the bold text)

I ran into the same problem, at line 19-22 you need a coma after each "y"

Line 19 would be:


if FindColorSpiralTolerance(x, y, 936444, 15, 25, 266, 230, 20); or

Bobby Boo
04-05-2012, 04:25 AM
i has a proggy:
http://img405.imageshack.us/img405/5982/monkeyprog.png (http://imageshack.us/photo/my-images/405/monkeyprog.png/)

But seriously, very nice guides...
I went from knowing nothing to knowing a few basic things very quickly..
Now just to perfect my skills ;)

I Relix I
04-07-2012, 03:46 PM
These videos are awesome. 100% clarity on voice and image (if you follow the description, although you have to post it on every video lol).

Zyzolol
04-07-2012, 05:07 PM
Sexy ;)

Mash
04-08-2012, 04:16 PM
Yes tysm yohojo, top man :)! this helped so much

Gillzo
04-09-2012, 09:18 PM
awesome tut gaining more confidence in scripting, working one my first scirpt cant wait to see it finished and working.

Total
04-10-2012, 09:35 PM
Just wanted to say thanks for this. Definitely the only reason I can script now. :)

Chosen One
04-11-2012, 02:25 PM
This helped me understand the basics of Simba and how much i can do with this program! Well done YoHoJo! :)

YoHoJo
04-11-2012, 05:59 PM
You're welcome to all of the recent posters thanking me!
Seems like the videos are seeing a big jump in traffic recently, awesome!

Glad you all are giving scripting a try and attempting to learn!
Make sure to check out tutorial #2 and my other mini tutorials!

Imanoobbot
04-11-2012, 06:10 PM
Well, ive completed the tutorial to the best of my ability, and heres the script



program SaveTheFish;

procedure StartGame;
Begin
MoveMouse(230, 357);
ClickMouse(230, 357, 1);
Wait(1500);
MoveMouse(404, 326);
ClickMouse(404, 326, 1);
Wait(1500);
MoveMouse(342, 153);
ClickMouse(342, 153, 1);
end;
procedure SaveGoldFish;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y, 1471228, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1003517, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 172287, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1271548, 16, 29, 260, 244, 20) or
FindColorSpiralTolerance(x, y, 1003517, 16, 29, 260, 244, 20) then
Begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(360, 75);
ReleaseMouse(360, 75, 1);
end;
end;

begin
StartGame;
repeat
SaveGoldFish;
until(false);
end.

After attempting to run, i get an error:

Error: Exception: Out of memory at line 18


how do i fix this?


-------------------------------------------------------------


I ran into the same problem, at line 19-22 you need a coma after each "y"

Line 19 would be:


if FindColorSpiralTolerance(x, y, 936444, 15, 25, 266, 230, 20); or



Watch the tutorial again ;)

Roflme
04-21-2012, 04:54 PM
GREAT TUTORIAL! Watching the second tutorial when I get home. Going to use this one to try to make a script for a different flash game. Thank you so much for this video!

naturevalley
04-25-2012, 03:43 AM
Thank you YoHoJo, for teaching a noobie how to SaveGoldFish.
http://img.photobucket.com/albums/v300/DreamzWolven/SaveGoldFish.png

YoHoJo
04-25-2012, 05:56 AM
Sweet job NatureValley feels good doesn't it! You ran it for pretty long too, cool cool!

Hope you keep following along with my other tutorials and read other people's text tutorials and to see some neat runescape scripts from you in the future!!!

Imanoobbot
04-25-2012, 07:22 AM
Sweet job NatureValley feels good doesn't it! You ran it for pretty long too, cool cool!

Hope you keep following along with my other tutorials and read other people's text tutorials and to see some neat runescape scripts from you in the future!!!

Do you make some other video tutorials in the soon future? As DTM walking or usage of TPA´s. I love your videos :)

stuartroad
04-27-2012, 10:25 PM
Good tutorial, learning heaps, I can't figure out how to get the stupid music to stop on spank the monkey so it is so hard to understand you! But when I do hear you, It's very clear on what to do.

h4x_
04-29-2012, 12:50 PM
If anyone had trouble with MarkTime/TimeFromMark try this:


MarkTime(OreCounter);

repeat
AntiBan;
Wait(100);
If InvCount=PlusOne then begin
writeln ('Ore obtained');
end;
Until (InvCount=Plusone) or (TimeFromMark(OreCounter) > 3000);

(Put the MarkTime outside of the Repeat->Until loop so that way it accutally counts up, where before it just kept on updating the time so there was no way it reached 3 seconds ^ in this example)

EDIT: you fix this in video #2 :o

Adamcoled
05-08-2012, 10:15 AM
Appreciate the video. Hope it'll teach me how to script.

hypooo
05-08-2012, 10:40 PM
help please, i tried your video tutorial and my code wont work :-( im a newb you can laugh:/. please tell me where i went wrong, ill love you forever!

program new;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i srl/srl/misc/paintsmart.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
end;
begin
Smart_Server :=26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;
Procedure; FailSafe(Reason:String);
Begin;
Players(currentPlayer).Loc:-Reason;
Logout;
Stats_Commitl
TerminateScript;
End;
Function ChopDown:Boolean;
Var
SEX, SEY: Integer;
Begin
if FindObjCustom(x, y, ['Chop', 'down'], [1582113 , 3953242 , 2109229], 30) Then
Writeln('found tree, gonna cut... :-)');
End;

Begin
SetupSRL;
DeclarePlayers;
/ Repeat
ChopDown;
Until(false);

end.

EDIT:- this is the error code i get :|

[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] (24:4): period ('.') expected at line 23
Compiling failed.

Sigma
05-09-2012, 11:14 PM
help please, i tried your video tutorial and my code wont work :-( im a newb you can laugh:/. please tell me where i went wrong, ill love you forever!

program new;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i srl/srl/misc/paintsmart.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
end;
begin
Smart_Server :=26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;
Procedure; FailSafe(Reason:String);
Begin;
Players(currentPlayer).Loc:-Reason;
Logout;
Stats_Commitl
TerminateScript;
End;
Function ChopDown:Boolean;
Var
SEX, SEY: Integer;
Begin
if FindObjCustom(x, y, ['Chop', 'down'], [1582113 , 3953242 , 2109229], 30) Then
Writeln('found tree, gonna cut... :-)');
End;

Begin
SetupSRL;
DeclarePlayers;
/ Repeat
ChopDown;
Until(false);

end.

EDIT:- this is the error code i get :|

[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] (24:4): period ('.') expected at line 23
Compiling failed.

I'm very inexperienced, and it could be a completely different issue, but you have to change

Begin
if FindObjCustom(x, y, ['Chop', 'down'], [1582113 , 3953242 , 2109229], 30) Then

to


Begin
if FindObjCustom(x, y, ['hop', 'own'], [1582113 , 3953242 , 2109229], 30) Then

You can't use the first letter.

YoHoJo
05-09-2012, 11:41 PM
hypooo first clean up your standards, and past the code in simba tags.

Problem is kind of here:
begin
Smart_Server :=26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;

You can only have
Begin
End.
(Begin outside of a function/procedure and end with a period ONCE in a script (at the end)). You have that chunk of code in the middle of your script.

Clean up standards, use simba tags, and post again and I can help better.

therobotdances
05-12-2012, 06:03 PM
Great tutorial looking forward into watching the rest of your series!

cadet54
05-26-2012, 02:00 PM
This was awesome, you made it very easy to follow and it was nice to see how you go about finding problems like forgetting to declare what mouse button to use, I will work my way though your other tutorials as well. I have already been through a through other tutorials on basic scripting in this section and they are just as helpful.
Thanks again, looking forward to my first personal script without a tutorial :)

Luke L
05-27-2012, 05:52 PM
I'm going to follow along with this later on when I have time, but you did made me LOL today,

"As you can see, the point of this game... is to grab this hand... and spank this monkey."

Just the way your monotonous voice said that, made me lol hard. But looks great, I can't wait to follow along - thanks a lot :)!

l3g3nds
05-28-2012, 01:02 AM
Thanks for the guide! Can you make a guide for RSPS's please? Sorry to bug you but smart doesn't work for RSPS's and I'm looking to make bots on some. Just the basics would be great like walking, and banking?

Bot4Fun
06-01-2012, 05:19 PM
Thank you for this great guide! I have never written anything before, even not in other programs. But this just went great! I learned this real fast, and the guide was super easy to understand! Thank you so much, ill take a look at video 2 later!

cadet54
06-03-2012, 07:19 AM
Hey YoHoJo, you said you started programming for smaller games like spank the monkey and catch the goldfish like we followed you in the tutorial, are there other games you made scripts for?

If you did, could we have the name of the games so I can go away and try to make a few scripts for them, if not no worry's, I have found 2 that should be ok for me to make scripts for, practice is always good :).

YoHoJo
06-03-2012, 08:52 AM
Hey YoHoJo, you said you started programming for smaller games like spank the monkey and catch the goldfish like we followed you in the tutorial, are there other games you made scripts for?

If you did, could we have the name of the games so I can go away and try to make a few scripts for them, if not no worry's, I have found 2 that should be ok for me to make scripts for, practice is always good :).

Curveball:
http://www.addictinggames.com/sports-games/curveball.jsp
(Try using a repeat until(false) loop to do that)

Defend Your Castle:
http://www.xgenstudios.com/game.php?keyword=castle
(You can develop this pretty far, even have user settings where they can input which addons/powerups they wish to buy)

You should just move onto RS scripts though, just start with basic power(miner/fisher/cutter) with simple techniques and then learn more advanced ones and develop the script further over time.

cadet54
06-03-2012, 01:07 PM
Curveball:
http://www.addictinggames.com/sports-games/curveball.jsp
(Try using a repeat until(false) loop to do that)

Defend Your Castle:
http://www.xgenstudios.com/game.php?keyword=castle
(You can develop this pretty far, even have user settings where they can input which addons/powerups they wish to buy)

You should just move onto RS scripts though, just start with basic power(miner/fisher/cutter) with simple techniques and then learn more advanced ones and develop the script further over time.

Wow thanks very much for the reply, hopefully over time I will have a better understanding when developing my own scripts.

d_blan
06-12-2012, 11:18 AM
Lol, spanked the monkey at 6,962 miles per hour and got a score of 30,492 on Save the Goldfish. Thanks for the tut, was really clear and easy to learn from. Can't wait for the next one.

abibot
06-15-2012, 03:37 AM
Great vid, impressed with the client being able to play games other than runescape (unlike other bots). Trying my hardest to learn this, your vids help so much!

YoHoJo
06-16-2012, 10:19 PM
It's summer time!
What better time than now to start leaning how to script?!

putonajonny
06-16-2012, 11:42 PM
It's summer time!
What better time than now to start leaning how to script?!


It's summer time!
What better time than now to start leaning how to script?!

You are such a spammer ;)

Also shame it is raining here...

Danza99
06-25-2012, 05:05 PM
So, I finally finished all my exams etc and have spare time to start my own scripting!

Your video was very clear and concise (although I found out after multiple attempts that it's ctrl+space to bring up the procedure/function box, not ctrl+enter).

So far, you've made it look pretty simple, can't wait to go through the rest of your videos.

Also think I'll attempt using what I learnt just from this video to create a simple script for War Of Legends (another Jagex game)

So, thank you for the great video, a very nice job, and I hope the rest are just as good! :thumbsup:

jman1208
07-11-2012, 06:33 PM
Thanks a lot this helped me a lot start my first script!

digitalninja
08-27-2012, 06:50 PM
This is amazing stuff and I have almost finished my 1st script! Gotta say I love the video but having a "transcript" is really handy as well for two reasons:

1). I cant watch these at work but reading threads is totally ok :)

2). You cant "search" for answers in the youtube videos ... but if you had it transcribed we would know what was in the video.

Cant wait to become a member!

botftwww
09-02-2012, 06:09 AM
Nice videos! Fully support you bro! Is that all about scripting? Do you think there is any more to learn? I would like to make a magic script. Is there any any websites that include all functions with explanations and their usage?

Solar
09-02-2012, 09:38 AM
Nice videos! Fully support you bro! Is that all about scripting? Do you think there is any more to learn? I would like to make a magic script. Is there any any websites that include all functions with explanations and their usage?

There is the scripting reference, which you can find here;
http://docs.villavu.com/simba/referencescript.html

TehNeonFishy
09-04-2012, 12:15 PM
Off work for 2 weeks, time to make a real attempt into scripting since my last attempt failed due to having no spare time. :P

YoHoJo
11-12-2012, 08:33 AM
Bump :p

IsoMorphic
11-13-2012, 05:16 AM
Bump :p

Double bump
:P :P
:spot:

garyman
12-10-2012, 09:25 AM
I have been wanting to watch this for ages and finally got the time thanks to xmas break. It went really well, except i cannot figure out where I went wrong here.


Procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorsSpiralTolerance(x, y, 1137660 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 554495 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 936444 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 1471228 , 20, 37, 271, 242, 20) then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(365, 56);
ReleaseMouse(365, 56, 1);
end
end

[Error] C:\Simba\Scripts\savefish.simba(20:38): Variable Expected at line 19
Compiling failed.

I have looked back through your script multiple times and cannot find my issue. I might be overlooking something.

Thanks!

Sorry Idk how to put it in the tags that put it in correct format for the forums.

hellian46
12-15-2012, 01:10 AM
I have been wanting to watch this for ages and finally got the time thanks to xmas break. It went really well, except i cannot figure out where I went wrong here.


Procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorsSpiralTolerance(x, y, 1137660 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 554495 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 936444 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 1471228 , 20, 37, 271, 242, 20) then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(365, 56);
ReleaseMouse(365, 56, 1);
end
end

[Error] C:\Simba\Scripts\savefish.simba(20:38): Variable Expected at line 19
Compiling failed.

I have looked back through your script multiple times and cannot find my issue. I might be overlooking something.

Thanks!

Sorry Idk how to put it in the tags that put it in correct format for the forums.

You'r missing about half of the script, watch the video one more time..

garyman
12-15-2012, 02:42 AM
You'r missing about half of the script, watch the video one more time..


haha i have to whole script down but when I tried to compile this is the procedure where the error happened. if FindColorsSpiralTolerance was the line with the error.

IsoMorphic
12-17-2012, 12:45 AM
haha i have to whole script down but when I tried to compile this is the procedure where the error happened. if FindColorsSpiralTolerance was the line with the error.

Please post the whole script

garyman
12-19-2012, 02:47 AM
program Savethegoldfish;

Procedure StartGame;
begin
MoveMouse(203, 354);
ClickMouse(203, 354, 1);
Wait(500);
MoveMouse(393, 337);
ClickMouse(393, 337, 1);
Wait(500);
MoveMouse(341, 160);
ClickMouse(341, 160, 1);
end;

Procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorsSpiralTolerance(x, y, 1137660, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 554495, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 936444, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 1471228, 20, 37, 271, 242, 20) then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(365, 56);
ReleaseMouse(365, 56, 1);
end
end


begin
StartGame;
repeat
savegoldfish;
until (false);
end.

YoHoJo
12-19-2012, 03:08 AM
@GaryMan, next time please post your code in Simba tags.
Past the code, hilight it all, and then (on the forums) click the button that looks like a lion.

The problem is, you have FindColorsSpiralTolerance it needs to be FindColorSpiralTolerance

YoHoJo
01-03-2013, 10:44 PM
Hello World

lastprojectrs
01-09-2013, 10:12 AM
thanks, I'll try out scritping soon C:

Saint//+
01-29-2013, 02:23 PM
Super helpful :) easy to understand. i hope you make many many more of these!

Silentcore
02-13-2013, 05:26 PM
Hey Yohojo, I really learned something from this tutorial and the time has come to start scripting and watching your next tutorials..

Le_don
02-25-2013, 08:52 AM
YoHoJo

Fantastic tutorial so far, really enjoying this!
Had an issue with the slap the monkey one, I think the mouse was moving too quickly.
I was looking through this thread and spotted "Wait" - so I added that and it works fine now!


program spanklemonkey;
{$DEFINE SMART}
{$i srl/srl.simba}

var
x, y:Integer;
Begin
MoveMouse (542, 204);
HoldMouse (542, 204, 1);
Wait (500);
MoveMouse (20, 203);
ReleaseMouse (x, y, 1);
End.

Thank you! Carrying on with the rest of the tut now :D

OneDay
03-01-2013, 05:34 PM
program SaveTheGoldfish;

Procedure StartGame;
begin
Movemouse(785, 714);
Clickmouse(785, 714, 1);
MoveMouse(942, 692);
Wait(500);
Clickmouse(942, 692, 1);
Movemouse(898, 519);
Wait(500);
Clickmouse(898, 519, 1);
end;


procedure SaveGoldfish;
var
x, y: Integer;

begin
if FindColorSpiralTolerance(x, y, 88319, 564, 389, 806, 596, 20) or I get a range check error here
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1471228, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 98559, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 690943, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 804093, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1070589, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 366590, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) then
begin
MoveMouse(x, y);
Holdmouse(x, y, 1);
Movemouse(902, 432);
ReleaseMouse(902, 432, 1);
end;
end;


begin
StartGame;
SaveGoldfish;
end.

rj
03-01-2013, 11:20 PM
program SaveTheGoldfish;

Procedure StartGame;
begin
Movemouse(785, 714);
Clickmouse(785, 714, 1);
MoveMouse(942, 692);
Wait(500);
Clickmouse(942, 692, 1);
Movemouse(898, 519);
Wait(500);
Clickmouse(898, 519, 1);
end;


procedure SaveGoldfish;
var
x, y: Integer;

begin
if FindColorSpiralTolerance(x, y, 88319, 564, 389, 806, 596, 20) or I get a range check error here
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1471228, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 98559, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 690943, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 804093, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1070589, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 366590, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) then
begin
MoveMouse(x, y);
Holdmouse(x, y, 1);
Movemouse(902, 432);
ReleaseMouse(902, 432, 1);
end;
end;


begin
StartGame;
SaveGoldfish;
end.

Drag green arrow to the client your using and make sure

(x, y, 172287, 564, 389, 806, 596, 20)

Is looking for the color in the correct spot

Blackop2
03-24-2013, 09:50 PM
Well i followed the first game to the T. Your code was the same as mine(Cept the locations of course)

And i run it and all it does is move the mouse to the left of the monkey.

In the second game it would scan the shit out of each goldfish and only put it in the bowl on the third or first time it hit the pan. I moved the color codes around so darker or lighter were first and it did the same thing. I changed the tolerance from 20 and it still didn't work like in your video.

I have no idea whats wrong.

juliea
11-17-2013, 02:05 AM
I did the tutorial it was very informative.I saved alot of goldfish.

divinephil
08-19-2014, 02:26 PM
Nice tutorial dude trying to figure it all out! Thanks for helping a hand haha ;)

Blade bro4
02-17-2015, 12:59 AM
My old pal yohojo, thanks for this guide, helped me get a few things straight!