After the script that I am making has clicked on the knife and the log (Fletching) when this come up:
How would I make it so that it right clicks on any of the bows to make, depending on what the user wants to make?
Thanks,
Rich
After the script that I am making has clicked on the knife and the log (Fletching) when this come up:
How would I make it so that it right clicks on any of the bows to make, depending on what the user wants to make?
Thanks,
Rich
<3
Originally Posted by Eminem
SCAR Code:Function ClickBowText(Text : String) : Boolean;
Begin
Result := ClickText(Lowercase(Text), NPCChars, MCX1, MCY1, MCX2, MCY2);
End;
So just put part of the text as its parameters, must be exact like
SCAR Code:If ClickBowText('hort') Then
Writeln('clicked text :)');
![]()
The FindText function.
Ok, thanks guys!
<3
Originally Posted by Eminem
Meh, I've got another question. Is there any way that I can measure the amount of logs in the inventory? I want this so that I can know when to start the banking procedure after it's finished one load.
<3
Originally Posted by Eminem
Use InvCount![]()
Copy and paste into top of your script...SCAR Code:function ItemCoordsDtm(area: string; dtm: Integer): TPointArray;
var
startx, starty, rowsize, colsize, colnumber, rownumber, col, row: Integer;
x1, y1, x2, y2: Integer;
itemx, itemy: Integer;
i: Integer;
begin
if not loggedin then exit;
SetArrayLength(Result, 0);
if (CheckArea(area)) then
begin
AreaInfo(area, startx, starty, rowsize, colsize, colnumber, rownumber);
for row := 0 to rownumber - 1 do
for col := 0 to colnumber - 1 do
begin
x1 := startx + col * colsize;
y1 := starty + row * rowsize;
x2 := x1 + colsize;
y2 := y1 + rowsize;
if (FindDTM(dtm, itemx, itemy, x1, y1, x2, y2)) then
begin
i := GetArrayLength(Result);
SetArrayLength(Result, i + 1);
Result[i].x := x1;
Result[i].y := y1;
end;
end;
end;
end;
function CountItemsDtm(area: string; dtm: Integer): Integer;
var
coords: TPointArray;
begin
if not loggedin then exit;
coords := ItemCoordsDtm(area, dtm);
Result := GetArrayLength(coords);
end;
Use/example: Banked := Banked + CountItemsDtm('inv', YourDTM)
Originally Posted by irc
What I mean is, is there something that would work like this:SCAR Code:if InvFullWith(DTM) then
PS: I just made up that command as an example.
<3
Originally Posted by Eminem
Ok. Check if the there are no logs left in the inv, then if there arnt, continue, if there are... restart your fletching procedure...
Originally Posted by irc
My God! You're a genius...How could not have thought of that! Thanks!
<3
Originally Posted by Eminem
There are currently 1 users browsing this thread. (0 members and 1 guests)