well in my kebab buyer I have this piece of code to click the text that Karim says so it buys the kebab.
SCAR Code:
// Clicks on the text down the bottom of the screen to buy the kebabs. \\
procedure BuyKebabs;
begin
if(not(LoggedIn)) then exit;
KebabCount:=KebabCount;
ClickToContinue;
Wait(1000 + random(100));
ClickNPCChatText('Yes please.');
Wait(1000 + random(100));
ClickToContinue;
end;
The problem is, due to lag or whatever, sometimes the next screen to click on takes longer than 1 second to come up, but the script doesnt realise this so it thinks it has bought the kebab, and restarts the loop to click on karim, then BuyKebabs.
so is there any better way to make sure that the text is down the bottom of the screen before attempting to click on it? so that way i wont need waits.
help appreciated