lanadekat
2014-09-14 09:36:06
this is the procedure:
It doesn't go to TeleportToBank();
Oh and also if I use this for another thing I don't want to share It will always click the same pixel, is there a way to let it click other pixels?
var
bankTimer: TTimeMarker;
begin
banktimer.start();
repeat
bankscreen.open(BANK_NPC_GREY)
until bankscreen.isopen()
if (bankTimer.getTime() > 60000) then
TeleportToBank();
end;
It doesn't go to TeleportToBank();
Oh and also if I use this for another thing I don't want to share It will always click the same pixel, is there a way to let it click other pixels?
findColorsSpiralTolerance(x, y, TPA, BANKER_COLOR, mainScreen.getBounds(), 20, colorSetting(BANKER_TOL, BANKER_SAT, BANKER_HUE));
if (Length(TPA) < 1) then
writeLn('no banker"s found!');
ATPA := TPA.toATPA(30, 30);
ATPA.filterBetween(8, 10);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['Bank','ank','Banker','anker'], 500) then
fastClick(MOUSE_LEFT);

