smurg
2010-11-19 01:59:55
I re-brought up the whole Mouse(); debacle after I found out that the random only adds and doesn't subtract. Well, some of the core functions were built with the randomness not going both ways, such as in WalkToTile. It does a Mouse() and only adds the randomness.
I'm guessing that isn't meant to only go in the positive, but be random in positive and negative while picking a spot on the MM.
If it was meant to be or I'm just wrong, then just delete the thread, thanks :).
I'm guessing that isn't meant to only go in the positive, but be random in positive and negative while picking a spot on the MM.
If it was meant to be or I'm just wrong, then just delete the thread, thanks :).
{*******************************************************************************
Function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
By: Wizzup, TheGuyWhoGotOn, and Drags111
Description: Walks to the tile using minimap.
*******************************************************************************}
function WalkToTile(TheTile: TTile; Randomness, FlagD: Integer): Boolean;
var
wTile: TPoint;
t: Integer;
begin
Result := False;
TheTile := RandomizeTile(TheTile, Randomness, Randomness);
wTile := TileToMM(TheTile);
if not rs_OnMiniMap(wTile.X, wTile.Y) then
Exit;
Mouse(wTile.x, wTile.y, 1, 1, true);
Wait(RandomRange(80, 100));
t := getsystemtime;
if (FlagD = 0)then
begin
R_Flag;
end else
R_FFlag(FlagD);
Result := (GetSystemTime - t) < 60000;
end;