What program did you use for the recording?
And I'll say it again, nice tut!
What program did you use for the recording?
And I'll say it again, nice tut!
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...
Will definitely look into this once i fin school today. Want to start over again
Thank you for your help This tut was so informative and time for me to start working on my first script lol hehe
Awesome guide, good voice. It was fun to script this.
Great tut, I also watched the tut on DTM`s so i might try to make a simple script like an Alcher or Cannonballer
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 (:
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!
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/...20112-59AM.png
Something about an error on paraments.. Any Help?
Last edited by Gushers; 12-14-2011 at 09:07 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
omg thank you!
@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!
You need an end after that clickmouse lone. Every begin needs a corresponding end!
It should look like
End;
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.
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?
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!
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.
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;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!
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
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.ph...9&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?
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?
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?
There are currently 1 users browsing this thread. (0 members and 1 guests)