Hey,
I've never made a successful RS script before, except one that walks from a to b (which is like 10 feet lol). Anyways, I was looking through the "my first script" thing when I came upon this : http://www.villavu.com/forum/showthread.php?t=22487
I was like, alright, cool, here's a magic script. Normally when I try to learn something, I end up trying to duplicate an original WITH slight differences. This is how I learned to pixel.
Anyways, I've been trying to use that script as a sort of model, however make it auto alch.
here is what I have so far.
3rd Update:
SCAR Code:
program AutoAlch;
{.include SRL/SRL.scar}
var
x,y: Integer;
const
AlchColor=643794; //this determines if it is high(643794) or low alch(3195184
notecolor=7642540; //be smart and don't touch this
m = 862;
b = 416;
procedure MagicTab;
begin
MMouse(m,b); //this is line 13 (the first error)
Mouse(m,b,true);
end;
procedure Alch;
begin
if (FindColor (x,y,AlchColor,823,487,823,582)) then
begin
MMouse(x, y);
Mouse(x, y, True);
end
else
WriteLn ('Oops! You specified an invalid color')
if (FindColor(x, y,NoteColor,807,697,851,698)) then
MMouse (x, y);
Mouse(x, y, true);
else
WriteLn ('Have you forgotten to note your items? Color not found')
end.
as you can see, it ultimately sucks. I may have corrected the things after AlchColor etc, I looked at a tutorial and the numbers are like a box for the color to be searched in. I am also trying to figure out how to make it see like "ok it has 1k natures and a firestaff equipt" and so on. So when it gets to 0, it terminates the script.
Also if anyone could supply help with any of the points listed below, I would </3 you.
● Creating Anti-Randoms
● Terminating script when all alchs are done/no runes left
● Creating anti-ban features
● Making it run if a fight is located.
A few things I've done that may or may not help:
Changed MoveMouse to MMouse and ClickMouse to Mouse
Declared m = 862 and b = 416 (however I don't think it will do anything, see the first script error below)
Errors:
Line 13: [Error] (14694:12): Invalid number of parameters in script