.. look for the name of the item in ground, for exampleDoes that work, or does it mess it up, because the Party Hat is in different colour in the game?Code:if IsUpText('Take Party Hat') then
If you didnt understand, then just tell me :D
Printable View
.. look for the name of the item in ground, for exampleDoes that work, or does it mess it up, because the Party Hat is in different colour in the game?Code:if IsUpText('Take Party Hat') then
If you didnt understand, then just tell me :D
You can use part of the line. For example IsUpText('arty hat').
Ok, so thewould work?Code:if IsUpText('ron pickaxe') then
Yes, anything as long as it is unique to that item. You don't want IsUpText('axe') or something that all axes have in common.
Yes you can. Color is not an issue with IsUpText unless the background color is very similar to the color of the text (which is not very opten, the only example i can thing of is white text in the ess mining place since the background is also a very light color). Only then does SCAR have a hard time recognising the colors.
Ok, thanks alot guys!
And sorry for the double post, but why this wont work?Code:program Test;
{.include SRL\SRL.scar}
begin
FindPick;
end.
{.include SRL/SRl/Skill/Mining.scar}
And because you need to tell it to do something.
For example:
SCAR Code:program Test;
{.include SRL\SRL.scar}
begin
if (FindPick) then
Writeln('Found Pick!');
end.
Yea i got that workin, but umm, im trying to make a script that finds gems and coins and stuff like that what bots drop. At the moment my script looks like this.Ok, ok, I copied it from stupid3ooo's script, but isnt it legal? I wont be selling my script, or even sharing, I'd just use it myself. But yea, i get an error that saysCode:function FindPick: Boolean;
var
c, XH, YH, BR: Integer;
ReequipPick: Boolean;
begin
Wait(2000 + Random(100));
repeat
if not (LoggedIn) then Exit;
c := c + 1;
x := Random(510) + 5;
y := Random(330) + 5;
if (FindColorSpiral(x, y, hc1, 3, 3, 515, 338)) or
(FindColorSpiral(x, y, hc2, 3, 3, 515, 338)) or
(FindColorSpiral(x, y, hc3, 3, 3, 515, 338)) or
(FindColorSpiral(x, y, hc4, 3, 3, 515, 338)) or
(FindColorSpiral(x, y, hc5, 3, 3, 515, 338)) then
begin
MMouse(x, y, 2, 2);
if IsUpText('ncut') or (IsUpText('oins') or (IsUpText('iamond')
or (IsUpText('apphire') or (IsUpText('uby') or (IsUpText('merald') then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
end;
Flag;
Wait(1000 + Random(100));
end else
if (PickUpItems) then
ItemGrab;
end;
and line 471 is the 19th line from the top of my script.Code:Line 471: [Error] (17809:68): Close round expected in script C:\Documents and Settings\Johtaja\Desktop\SCAR3.01\includes\SRL\SRL\skill\Mining.scar
Check that all opening brackets '(' have a closing bracket ')'. I can see that several of them are missing closed brackets.
Oh noes what a nub mistake :D Thanks ZephyrsFury
And now the script says:
MouseFlag(648, 84, 2, 2); <--- unknown identifier MouseFlag
and how can that be possible? Mouse flag is a function
look in the srl include :P might the answer is in there
you could use
findobj for finding a pick(might)
like this
if FindObj(x, y, 'one',BoneColor, 50) then Mouse(x, y, 2, 1, True);
one is from bone because B of bone is a captical letter in runscape so you can use this to for other items
MouseFlag Is A Function, therefore it returns true or false. u hafta do
If MouseFlag(xxx,x,x) then;
Begin;
//rest of your script