Log in

View Full Version : Need quick help with my script!



Ilikepie1995
06-15-2007, 02:44 PM
Here is a script that i started making, it supposed to choose option 'Cut down tree' but all it does is right click's the tree then chooses 'Cancel'

program PieShafter;
{.include SRL/SRL.Scar}
{.include SRL/SRL/skill/WoodCutting.scar}
Procedure CutTreeAndShaft;
begin
repeat
if FindColor(x,y,2252880,0,0,500,500)then
Mouse(x,y,3,3,false);
Wait(2000);
ChooseOption(x,y,'Chop down tree');
until(false);
end;
begin
SetupSRL;
CutTreeAndShaft;
end.

Help me someone?Lol iam a beginner scripter so sorry :redface: ...

JAD
06-15-2007, 02:55 PM
Make it something like ChooseOption(x,y,'hop'); That's way to long. Try to avoid capitals when working with text to.

GoF
06-15-2007, 03:00 PM
Exactly, but it could also be that the text is like "Chop Down Tree" or something so it won't work..