Log in

View Full Version : help with script



rogue poser
02-15-2007, 05:13 AM
hey, im trying 2 figure out WHAT I DID WRONG on this, this is my first script and im attempting an auto alcher..... it says

"Line 174: [Hint] (193:43): Variable 'NEWLINE' never used in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Globals.scar

Successfully executed"

so it says it worked but errrm...... WTF it wont do what im telling it to, all i want it to do is find a friking color and click it, so i set the alch colors to just some generic colors on the runescape page, just to try to get it to click them

im very tired i will be checking up in the morning, some1 please tell me what im doing wrong (probably like 10 things at once)









program AutoAlcher;//ROGUE POSER'S first script, an auto alcher
//////////////////////////////////////////////////////
//PPPPPP/////OOOO/////SSSSSS////EE///////EE//RRRRRRRR//
//PP///PP//OO////OO//SS////SSS//EE///////EE//RR////////
//PPPPPP///OO////OO/SS//////////EE///////EE//RRRRR/////
//PP//PP///OO////OO/SS///SSSSS//EE///////EE//RR////////
//PP///PP//OO////OO//SS/////SS///EE/////EE///RR////////
//PP////PP///OOOO//////SSSSS///////EEEEE/////RRRRRRRR//
///////////////////////////////////////////////////////



{.include SRL\SRL.SCAR}

Const
AlchColor1 = 65535 ; //for AlchColors 1 and 2 put the color
AlchColor2 = 16777215 ; //of the item you wish to alch
ItemAlchd = 'Item name here'; //name of item being alched.CAPITALIZE APPROPRIATELY
BankerColor1 = 0000000;
BankerColor2 = 0000000;


Procedure Report;
begin
writeln('+-+-+-+-+-+-+-+-+-+-+-+-+-+-')
writeln('Rogue Posers Auto Alcher V.001 lol')
writeln('Worked for '+ TimeRunning);
writeln('+-+-+-+-+-+-+-+-+-+-+-+-+-+-')
end;

Procedure Alch;
begin
if(FindColor(x,y,AlchColor1,0,0,600,600)) then
begin
Writeln('Found Item ... Now Alching');
Wait(300+random(150));
MoveMouseSmooth(x,y+random(2));
HoldMouse(x,y,true);
Wait(100+random(75));
ReleaseMouse(x,y,true);
end else
Writeln('Did not find Item, proceding to color 2');
begin
if(FindColor(x,y,AlchColor2,0,0,600,600)) then
MoveMouseSmooth(x,y+random(2));
HoldMouse(x,y,true);
Wait(90+random(85));
ReleaseMouse(x,y,true);
end;
end;

begin


end.



i just want to know what all im doing wrong, can some1 whos good at this help me?

Dark_Sniper
02-15-2007, 05:56 AM
you made the procs..
recomend you use mmouse or mouse next time over movemousesmooth...

like i said you made the procs.. but your forgot to add them into your main loop

your main loop is:

Begin

End.

this is how it should look like (make sure you edit it to your needs)

program AutoAlcher;
//ROGUE POSER'S first script, an auto alcher
//////////////////////////////////////////////////////
//PPPPPP/////OOOO/////SSSSSS////EE///////EE//RRRRRRRR//
//PP///PP//OO////OO//SS////SSS//EE///////EE//RR////////
//PPPPPP///OO////OO/SS//////////EE///////EE//RRRRR/////
//PP//PP///OO////OO/SS///SSSSS//EE///////EE//RR////////
//PP///PP//OO////OO//SS/////SS///EE/////EE///RR////////
//PP////PP///OOOO//////SSSSS///////EEEEE/////RRRRRRRR//
///////////////////////////////////////////////////////



{.include SRL\SRL.SCAR}

Const
AlchColor1 = 65535 ; //for AlchColors 1 and 2 put the color
AlchColor2 = 16777215 ; //of the item you wish to alch
ItemAlchd = 'Item name here'; //name of item being alched.CAPITALIZE APPROPRIATELY
BankerColor1 = 0000000;
BankerColor2 = 0000000;


Procedure Report;
begin
writeln('+-+-+-+-+-+-+-+-+-+-+-+-+-+-')
writeln('Rogue Posers Auto Alcher V.001 lol')
writeln('Worked for '+ TimeRunning);
writeln('+-+-+-+-+-+-+-+-+-+-+-+-+-+-')
end;

Procedure Alch;
begin
if(FindColor(x,y,AlchColor1,0,0,600,600)) then
begin
Writeln('Found Item ... Now Alching');
Wait(300+random(150));
MoveMouseSmooth(x,y+random(2));
HoldMouse(x,y,true);
Wait(100+random(75));
ReleaseMouse(x,y,true);
end else
Writeln('Did not find Item, proceding to color 2');
begin
if(FindColor(x,y,AlchColor2,0,0,600,600)) then
MoveMouseSmooth(x,y+random(2));
HoldMouse(x,y,true);
Wait(90+random(85));
ReleaseMouse(x,y,true);
end;
end;

begin
SetupSRL;
Repeat
Alch;
Report;
until(not(loggedin))
end.

look at the very buttom thats what yopur forgot...

also newline error has always been in srl 3.6... it does not effect the script.

rogue poser
02-15-2007, 02:37 PM
thankyou sooooo much!!! :-D so i didnt even skrew up what i was writing i forgot to tell it to do the procedures YAY thankyou