View Full Version : help a noob with CURRENT ways to script? :/
sydd131
11-29-2012, 10:24 AM
hey guys, i hate to post something like this, just i've done a bit of research, looked over a few tutorial's etc and haven't come up with much..
In short, i'm looking to learn how to make scripts in simba to be used with runescape (so i can make personal scripts for a challenge, for skilling etc).
However the problem comes in when i research tutorials, and they're telling me to use coordinates and other things of different sorts, but my problem comes in with old tutorials and such, i have also tried reading through currently working scripts, but cannot understand it for the life of me.
More or less, i was just about to try to make a script using coordinates, but i'm pretty sure i remember someone saying about NOT using coords, or at least doing it in a specific way to avoid errors etc.
So basicly.. i was just wondering if someone could be kind enough to run me through scripting and the best/safest/up to date ways to go about it..
I cannot begin to explain how much impressed i would be if someone could possibly help me with these issues, would mean the world to me! Thanks again guys.. i understand the whole 'go look for yourself' but i tried, and finding all of the most up to date information seemed almost impossible.. sorry, and thanks again.
Roflme
11-29-2012, 11:32 AM
I'm hoping I read your question right (my apologies if I didn't).
So "someone" said to not use coords. I think that "someone" referred to specific coords like, (120, 257). Setting your script to do
Mouse(120, 257, 1, 1, mouse_left); // Moves the mouse to the coordinates (120, 257)
//with a randomized shift of 1 coordinate in the x direction and 1 in the y direction (so it
//could be (119, 256) or (121, 258) or any combination of an x-coordinate between 119
//121 and a y coordinate between 256-258. When it arrives at the destination it will click
//with the left mouse
would not be a good idea. The problem is that the camera in runescape will always shift. And as you're going to never be in the same exact position, those mouse clicks could end up being shifted.
The "specific" way to use coordinates would be to use variables. So you'd do
FindColor(x, y, Color, x1, y1, x2, y2); // Finds the specified color in the box x1, y1,
// x2, y2. After it finds the color it sets the x and y variable to the specified coordinates.
Mouse(x, y, 1, 1, mouse_left); // Will use the x and y coordinates generated in
//FindColor and move the mouse there, with a 1 coordinate shift in the x and y direction.
Which will account for these automatic shifts of the camera angle, since the coordinates FindColor would find the colors and change the coordinates for you.
There are MUCH better ways for finding colors, objects, etc. though. The above was just an example.
I hope I understood your question correctly.
As for learning how to script I can vouch for YoHoJo's video tutorials. Head over to the beginners scripting tutorial section. Watch the first and second videos (the second one has 2 parts). He really goes over the basics of scripting. The video is ever so slighly out of date (he made an annotation where it should be changed). After watching them I'd suggest reading other's scripts. You can learn so many different ways to approach a task of, say, finding an item.
Sirenia
11-29-2012, 12:04 PM
search for YoHoJo srl on Youtube, watch first to last video, leave with enough meat to start doing something simple yourself :)
This should give you can basic idea, clicks on a color on the screen.
Replace
color=0;
to the color you want to click
Program:
program Clickcolor;
{$i srl/srl.simba}
const
color=0;
var
X,Y:Integer;
procedure start;
begin
FindColorTolerance(X,Y,color,0,0,764,502,10);
MouseSpeed:=15;
mmouse(x, y,1,1);
Wait(500 + Random(1200));
ClickMouse(X,Y,Mouse_Left);
end;
begin
start;
end.
I can help you (giving directions and answering questions) on Skype or another IM if you want. I find it hard to tell what you should do without chatting.
The Killer
11-29-2012, 09:26 PM
search for YoHoJo srl on Youtube, watch first to last video, leave with enough meat to start doing something simple yourself :)
^^ yohojos vids are highly recommended :)
sydd131
12-01-2012, 03:52 AM
Thanks heaps guys :) very happy to see such friendly responses, i was actually expecting a little bit of abuse :p i highly appreciate all responses and will look into the tutorials and see what i can gather.
CRASH_OVERRIDE
12-01-2012, 04:40 AM
Not long ago i wasnt sure how to even use a script. Its been about a week or so now and i am already working on scripts to release one day.
Everytime i find a handy tutorial on this site i have been adding it to my list.
Look here sydd131: http://villavu.com/forum/showthread.php?t=92611
Scroll down to the seventh post.(by me) It has everything needed for for scripts...
sydd131
12-01-2012, 09:09 AM
Thanks heaps mate!! I'm checking it out now! :D I've actually learned a hell of a lot since my last post, however I can see that once i work out a few more things, put a couple of weeks into this i might be able to get somewhere decent :) thanks heaps guys!!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.