Log in

View Full Version : Retaliate function



Waddo
07-24-2011, 08:33 PM
{************************************************* ******************************
procedure Retaliate(RetTrue: Boolean);
By: WT-Fakawi & n3ss3s, slight mod by EvilChicken!
Description: Set's Auto Retaliate ON of OFF.
************************************************** *****************************}
procedure Retaliate(RetTrue: Boolean);
Var
X, Y: Integer;
Begin
if (GetCurrentTab <> tab_Combat) then
begin
GameTab(tab_Combat);
Wait(300 + Random(200));
end;
if (RetTrue) xor FindColorTolerance(X, Y, 1777019, 624, 385, 719, 396, 2) then
MouseBox(577, 364, 719, 396, 1);
End;

the co-ords for mouse box where wrong, and I've reduced the wait time.
The time it took before just didn't seem human. And took too long.

BraK
07-24-2011, 08:45 PM
if that's being edited anyway it's probably better if you use RandomRange for the Wait. Devs will decide I'm sure.

~BraK

Coh3n
07-24-2011, 09:05 PM
The wait is there for lag purposes I'm sure (in case the gametab doesn't load right away). It can be replaced with a WaitColor call.

Waddo
07-24-2011, 09:13 PM
ah waitcolour, what include file is that in? what are the parameters. or do you mean just make a function to do it?

Coh3n
07-24-2011, 09:17 PM
ah waitcolour, what include file is that in? what are the parameters. or do you mean just make a function to do it?WaitColor is in timing.scar in SRL. You can also use Simba's function search bar to search for whatever function you need. Double click it to open the source, or view the parameters on the status bar at the bottom of the Simba window.