.. 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![]()






You can use part of the line. For example IsUpText('arty hat').






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.
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
{.include SRL/SRl/Skill/Mining.scar}
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()






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.
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
~Hermen






There are currently 1 users browsing this thread. (0 members and 1 guests)