How can I tell the script to wait unil the smelting bar screen appear when clicking the furnace?
There is a SmeltingScreen function in smithing.scar but I cannot use it becoz I dont know how -.-
How can I tell the script to wait unil the smelting bar screen appear when clicking the furnace?
There is a SmeltingScreen function in smithing.scar but I cannot use it becoz I dont know how -.-
Last edited by zealkctro; 03-25-2009 at 04:01 PM.
Try this:
SCAR Code:function SmithingScreen2: Boolean;
var
T: Integer;
begin
MarkTime(T);
repeat
Wait(100+random(250));
if SmithingScreen then
begin
Result := True;
Break;
end;
until (TimeFromMark(T) >= 15000) or (not(LoggedIn));
end;
lol
You can simply use:
If you take a look at the include then you see that SmithingScreen is a Boolean, which means that you can use it in an If Then statement.Code:If(SmithingScreen) then {CODE HERE} end else {CODE HERE}
EDIT: posted at the same time as Quickmarch
But i think my explination is a little easier to understand
Last edited by impiwimpi; 03-25-2009 at 04:07 PM.
Or
SCAR Code:While Not SmithingScreen Do
SleepAndMoveMouse(800 + Random(200));
thx for all of your help.
but I got another problem with banking...when I wrote openbankfast('akb'); It will just right click the banker and did nothing
Last edited by zealkctro; 03-26-2009 at 01:38 AM.
Yes, Include {.include srl/srl/misc/smithing.scar} after including SRL.
There are currently 1 users browsing this thread. (0 members and 1 guests)