SRL Archive - OSR Help

My First Script - problems


deadlywario0

2010-04-27 14:25:02

Ok, so i've been mailing back and forth for help and thought i'd see if any1 can help me solve this. The code for it is below (Any idea's on helping it Find the fishing spot/Invo would be appreciated, Its a crayfisher). ever since i added SMART (using and following the tutorial) It has been giving me errors.

[BANANA]Parts that are giving me errors are in BOLD[/BANANA]
(It doesn't like the := Part, I tried getting rid of the : but then it doesn't like something else)


program CrayFisherPro;
{.include SRL/SRL/Misc/SMART.scar}
{.include/SRL/SRL.scar}

//please Login before starting the script
//please remember to click the crosshair to select the window of your-
//-Runescape client.
//please put crayfish Cage in the first slot of your inventory.


var
i,x,y: Integer;


const
[B]FishSpot3 := 10590612;
SmartWorld := 15; // Which World/Server do you want to use?
SmartMembers := False; // Is it a Members World?
SmartSigned := True; // Signed/UnSigned Client?
SmartSuperDetail := False; // Use Super Detail?[/B]

begin
[B]Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
SetupSRL;[/B]

i:= 0;

repeat
If(FindColor(x,y,FishSpot3,0,0,600,600))then
begin
Writeln('Found Fishing spot #3');


MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
wait(100+random(10));
ClickMouse(x,y,false);
end else
Writeln('unable to find fishing spot #3');




i:= i + 1;
until(i >=10);

end.

x[Warrior]x3500

2010-04-27 14:39:31

FishSpot3 = 10590612;
i believe constants should be like that. take off the :

EDIT: also, to find a fishing spot, i would use a dynamic ATPA

deadlywario0

2010-04-27 14:44:04

From: x[Warrior]x3500
FishSpot3 = 10590612;
i believe constants should be like that. take off the :

EDIT: also, to find a fishing spot, i would use a dynamic ATPA

(Also, whats dynamic ATPA? kinda new lol. (I used this tutorial to add SMART: (http://villavu.com/forum/showthread.php?p=705791#post705791)

Took all of them off still got this error:
I copied and pasted His Code he has ":" and i Remove them and it still gives me errors.

begin
[B]Smart_Server = SmartWorld;[/B]//Throws Error between the "S" and the "m" of "Smart"
Smart_Members = SmartMembers;
Smart_Signed = SmartSigned;
Smart_SuperDetail = SmartSuperDetail;
SetupSRL;
Line 23: [Error] (152:1): Unknown identifier 'Smart_Server' in script

x[Warrior]x3500

2010-04-27 14:48:21

lol no here:
program CrayFisherPro;
{.include SRL/SRL/Misc/SMART.scar}
{.include/SRL/SRL.scar}

//please Login before starting the script
//please remember to click the crosshair to select the window of your-
//-Runescape client.
//please put crayfish Cage in the first slot of your inventory.


var
i,x,y: Integer;


const
FishSpot3 = 10590612;
SmartWorld = 15; // Which World/Server do you want to use?
SmartMembers = False; // Is it a Members World?
SmartSigned = True; // Signed/UnSigned Client?
SmartSuperDetail = False; // Use Super Detail?

begin
Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
SetupSRL;

i:= 0;

repeat
If(FindColor(x,y,FishSpot3,0,0,600,600))then
begin
Writeln('Found Fishing spot #3');


MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
wait(100+random(10));
ClickMouse(x,y,false);
end else
Writeln('unable to find fishing spot #3');




i:= i + 1;
until(i >=10);

end.


does that work

dynamic ATPA. well a DDTM is a dynamic dtm. the only difference that makes something dynamic is if it can change its primary color (aka autocolor). so a dynamic ATPA is a Array of TPointArray with an autocolor as the primary color. feel free to find tuts on TPAs. they are very usefull

deadlywario0

2010-04-27 14:50:02

From: x[Warrior]x3500
lol no here:
program CrayFisherPro;
{.include SRL/SRL/Misc/SMART.scar}
{.include/SRL/SRL.scar}

//please Login before starting the script
//please remember to click the crosshair to select the window of your-
//-Runescape client.
//please put crayfish Cage in the first slot of your inventory.


var
i,x,y: Integer;


const
FishSpot3 = 10590612;
SmartWorld = 15; // Which World/Server do you want to use?
SmartMembers = False; // Is it a Members World?
SmartSigned = True; // Signed/UnSigned Client?
SmartSuperDetail = False; // Use Super Detail?

begin
Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
SetupSRL;

i:= 0;

repeat
If(FindColor(x,y,FishSpot3,0,0,600,600))then
begin
Writeln('Found Fishing spot #3');


MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
wait(100+random(10));
ClickMouse(x,y,false);
end else
Writeln('unable to find fishing spot #3');




i:= i + 1;
until(i >=10);

end.


does that work

dynamic ATPA. well a DDTM is a dynamic dtm. the only difference that makes something dynamic is if it can change its primary color (aka autocolor). so a dynamic ATPA is a Array of TPointArray with an autocolor as the primary color. feel free to find tuts on TPAs. they are very usefull

That doesn't work throws the same exact error as above. Also, tut link? or i'll just go searching for one idk ur explanation made my head hurt XD

MylesMadness

2010-04-27 14:51:06

program CrayFisherPro;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}

//please Login before starting the script
//please remember to click the crosshair to select the window of your-
//-Runescape client.
//please put crayfish Cage in the first slot of your inventory.


var
i,x,y: Integer;


const
FishSpot3 = 10590612;
SmartWorld = 15; // Which World/Server do you want to use?
SmartMembers = False; // Is it a Members World?
SmartSigned = True; // Signed/UnSigned Client?
SmartSuperDetail = False; // Use Super Detail?

begin
Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
SetupSRL;
repeat
If(FindColor(x,y,FishSpot3,0,0,600,600))then
begin
Writeln('Found Fishing spot #3');
Mouse(x, y, 2, 2, True);
Inc(I);
end else
Writeln('unable to find fishing spot #3');
until(i >=10);
end.

deadlywario0

2010-04-27 14:53:35

From: MylesMadness
program CrayFisherPro;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}

//please Login before starting the script
//please remember to click the crosshair to select the window of your-
//-Runescape client.
//please put crayfish Cage in the first slot of your inventory.


var
i,x,y: Integer;


const
FishSpot3 = 10590612;
SmartWorld = 15; // Which World/Server do you want to use?
SmartMembers = False; // Is it a Members World?
SmartSigned = True; // Signed/UnSigned Client?
SmartSuperDetail = False; // Use Super Detail?

begin
Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
SetupSRL;
repeat
If(FindColor(x,y,FishSpot3,0,0,600,600))then
begin
Writeln('Found Fishing spot #3');
Mouse(x, y, 2, 2, True);
Inc(I);
end else
Writeln('unable to find fishing spot #3');
until(i >=10);
end.

It Worked, I don't see what u did to make it work tho? Mind explaining 2 a newbie? xD

MylesMadness

2010-04-27 14:55:07

There the a / before srl in the include line

deadlywario0

2010-04-27 14:56:16

From: MylesMadness
There the a / before srl in the include line


WOW I'm so smart T_T :duh::duh::duh::duh: +rep? XD

x[Warrior]x3500

2010-04-27 14:56:44

From: MylesMadness
There the a / before srl in the include line


wow lol didnt see that one… anyway

here is a decent tpa tut http://villavu.com/forum/showthread.php?t=49067&highlight=atpa

deadlywario0

2010-04-27 15:01:26

From: x[Warrior]x3500
wow lol didnt see that one… anyway

here is a decent tpa tut http://villavu.com/forum/showthread.php?t=49067&highlight=atpa


0.0 I'm reading through it now and its insane, I don't think im THAT advanced for a first script….Meh. I'll keep trying, I still cant beleive i missed that slash :duh::duh::duh::duh::duh::duh::duh:

x[Warrior]x3500

2010-04-27 15:03:30

From: deadlywario0
0.0 I'm reading through it now and its insane, I don't think im THAT advanced for a first script….Meh. I'll keep trying, I still cant beleive i missed that slash :duh::duh::duh::duh::duh::duh::duh:


if you EVER need help just pm or get a hold of me and i will gladly help