so, it's been a long time since last i scripted or used a script, a very, very long time, so i need a little help here with a kinda basic error if i remember right.
[Error] (12291:20): Unknown identifier 'x' in script
so, it's been a long time since last i scripted or used a script, a very, very long time, so i need a little help here with a kinda basic error if i remember right.
[Error] (12291:20): Unknown identifier 'x' in script
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
you need to declare 'x' as a variable.
and how do i do that...
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
lol i knew i would feel like an idiot for asking this, thnx for the help
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
well, now that i've fixed the variables, i've found myself with another error lol
[Error] (12301:37): Invalid number of parameters in script
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
Post the line. I can help you out then. Otherwise in general it just means you need more information in the ( ). For example: to set run you put Run(true); if I put Run(true, random, random1); it would say invalid number of paralmentsm, because it is only suspose to have 1 thing inside bracits. Also I HIGHLY recommend using this script. It guides you through all errors in a very user friendly method.
well there's the script, really basic, but i just can't get it to work//Chest Theiver
//By: Rscheater13
//With help from ~alex~
//Stand facing so you can only see one chest if you theiving lvl isn't
//high enough
//Low-detail
//Screen as high as possible
//V-bright
//I designed this one mainly for stealing Nature Runes but it works for any
Program RScheater13sChestTheiver;
{.include SRL\SRL.SCAR}
Var
TimesStolen: integer;
x : Integer;
y : Integer;
Const
TimesToSteal=500; //How many times you want to steal from the chest
Procedure FindChest;
Begin
Repeat
FindColorTolerance(x, y, 4018270, 6, 6, 514, 337, 40);
MMouse(x, y, 2, 2);
Until(IsUpText('hest'));
End;
Procedure OpenChest;
Begin
Mouse(x, y, 2, 2, False);
ChooseOption(x, y, 'earch for trap');
End;
Procedure HoldOn;
Begin
Wait(16000+random(1000));
End;
Begin
ActivateClient;
SetUpSRL;
Repeat
Findchest;
OpenChest;
HoldOn;
Until(TimesToSteal=TimesStolen)
End.
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
SCAR Code://Chest Theiver
//By: Rscheater13
//With help from ~alex~
//Stand facing so you can only see one chest if you theiving lvl isn't
//high enough
//Low-detail
//Screen as high as possible
//V-bright
//I designed this one mainly for stealing Nature Runes but it works for any
Program RScheater13sChestTheiver;
{.include SRL\SRL.SCAR}
Var
TimesStolen: integer;
x,y : Integer;
Const
TimesToSteal=500; //How many times you want to steal from the chest
Procedure OpenChest;
Begin
Repeat
if FindColorTolerance(x, y, 4018270, 6, 6, 514, 337, 40) then
MMouse(x, y, 2, 2);
Until(IsUpText('chest'));
Mouse(x, y, 2, 2, False);
ChooseOption('earch for trap');// I think this was your problem there is no x, and y in front
end;
Procedure HoldOn;
Begin
Wait(16000+random(1000));
End;
Begin
SetUpSRL;
ActivateClient;
Repeat
openchest;
HoldOn;
TimesStolen:= TimesStolen + 1
Until(TimesToSteal=TimesStolen)
End.
Also Choose option doesn't use a x and y in there .
You didn't add the count of timesstolen.
Try that if it doesn't work, you probably need to change the color.
thank you very much, i'll try it as soon as i have a chance
WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.
There are currently 1 users browsing this thread. (0 members and 1 guests)