Thomas
2015-04-14 15:17:39
Hey,
What do you guys think about this GE open function;
I'm not overly happy with it, but it works allot better then my TPA/ATPA version. Anyone have any suggestions to clean it up a little?
What do you guys think about this GE open function;
function openGE(): boolean;
var
FailCount, x, y: integer;
begin
if not isLoggedIn() then
exit;
FailTimer.start();
repeat
if mainscreen.findObject(x, y, 3611949, 4, colorSetting(2, 0.7, 1.1), mainscreen.playerPoint, 50, 110, 50, ['xchange', 'clerk'], MOUSE_LEFT) then
wait(randomRange(1000, 2000));
FailCount := FailCount + 1;
if FailTimer.getTime() > TIMEOUT or FailCount > 5 then
exit;
until grandExchange.isOpen(4000) or (not isLoggedIn());
result := grandExchange.isOpen(500);
end;I'm not overly happy with it, but it works allot better then my TPA/ATPA version. Anyone have any suggestions to clean it up a little?