Roflme
2012-09-18 15:48:00
Procedure Walk;
var
myPath: TPointArray;
begin
myPath := [Insert Points Here];
SPS_WalkPath(myPath);
end;Now if I wanted to add say..
repeat
Wait(100+random(10));
Antiban;
FindNormalRandoms;
until not isMoving;
Where would that go? Can that go after SPS_WalkPath or before? Does it even do anything? Or will the script walk the path and then begin repeating that repeat (and end up being a useless addition to the script since after the path has been completed it won't be moving…)?
Tried reading
function SPS_WalkPath(Path: TPointArray): boolean;
var
I, H, T, D: integer;
P, MM: TPoint;
begin
H := High(Path);
T := GetSystemTime + 20000 + Random(5000);
while (not Result) and (GetSystemTime < T) do
begin
RunEnergy(20);
P := SPS_GetMyPos;
for I := H downto 0 do
begin
MM.X := MMCX + Path[I].X - P.X;
MM.Y := MMCY + Path[I].Y - P.Y;
D := Distance(MM.X, MM.Y, MMCX, MMCY);
if (D < 10) then
break
else
if (D < 70) then
begin
if (SPS_MultiMouse) then
MultiMouse(MM.X, MM.Y, 25, 3, false)
else
Mouse(MM.X, MM.Y, 5, 5, mouse_Left);
FFlag(Integer(I <> H) * 15);
T := getSystemTime + 20000 + Random(1000);
Break;
end;
end;
Result := (I = H);
end;
end;but I didn't really understand. I could just edit the actual SPS function to do antibans and findnormalrandoms but don't want to do it JUST IN CASE it could ruin another script (probably wouldn't). But even then I'd be somewhat lost in finding where to add it. Would just add it in quite a few spots I guess.
Just need to add this into my walking procedures and don't know where to put it :p
And on a side note, is there any difference between these three?
While isMoving do
Antiban;
FindNormalRandoms;
//etc. etc. etc.
While isMoving do
repeat
Antiban;
FindNormalRandoms;
//etc. etc. etc.
until not IsMoving
repeat
Antiban;
FindNormalRandoms;
//etc. etc. etc.
until not IsMoving
Is the while do statement and repeat until statement just redundant? Does any of those three work better? (Goal: While walking script will be checking for randoms/antiban/etc. etc.