hackingislol133
2014-05-27 05:36:57
I'm trying to start a timer when familiar timer reaches the 2:30 (1650000ms) resummon threshold when I realized that the timer for isn't resetting after the resummon. I stared at it for a few minutes and are completely stumped at what I'm doing wrong. I tested TTimeMarker in a test script and it produced the same result of not resetting the timer.
I don't understand what I'm doing wrong here.
procedure ResummonFamiliar;
var
STimer: TTimeMarker;
x, y, SummonDTM: Integer;
begin
STimer.start;
if (STimer.getTime() <= 1650000) then
begin
SummonDTM := DTMFromString('mggAAAHicY2NgYPjMzMDwHYj/Qem7ULyCiYFhJhAvAeINQDwPiNcA8bHZzAzCulYMsamZDGYu3mA2p7IRgyTQLGyYEQeGAABbuA7f');
wait(random(300,600));
if findDTM(SummonDTM, x, y, MainScreen.GetBounds) then
begin
mouse(x, y, 3, 3, MOUSE_MOVE);
wait(randomrange(250,500));
fastClick(MOUSE_LEFT);
if chooseOption.select(['ene', 'amili']) then
begin
writeLn('Resummoning');
wait(5000 + randomrange(1000,2000));
STimer.reset;
writeLn(STimer.getTime);
end
end
end
end; I don't understand what I'm doing wrong here.