SRL Archive - SRL Archives

Aid Functions ~ Notsure.scar


Rich

2009-05-15 01:03:04

Well I've noticed that autos have been recently targeted by people that can cast "Tele-other". I'm sure most of you have seen videos like this one. This can simply be avoided by turning "Accept Aid" off, and that's what these two functions do.

//function AidOn : Boolean;
//By R1ch
//Checks to see if "Accept Aid" in on
//Example: if AidOn then
function AidOn : Boolean;
begin
GameTab(12);
Result:= (GetColor(600, 455) = 1974404);
end;
//function ToggleAid(TurnOn : Boolean) : Boolean;
//By R1ch
//Toggles "Accept Aid" to on or off
//Example: ToggleAid(True);
function ToggleAid(TurnOn : Boolean) : Boolean;
begin
if (AidOn) xor (TurnOn) then
begin
Result:= True;
Exit;
end else
begin
Mouse(588, 433, 10, 10, True);
Result:= True;
end;
end;

Does anyone have anything to say?

mormonman

2009-05-15 01:10:20


if (not(AidOn) and (TurnOn)) or ((AidOn) and not(TurnOn)) then
shorter to use

if AidOn xor TurnOn then

footballjds

2009-05-15 03:13:01

dang you!@
i was about to say xor that ;)

senrath

2009-05-15 03:31:02

Also, if not (GetCurrentTab = 12) then GameTab(12); can be shortened to GameTab(12);

footballjds

2009-05-15 03:32:29

roflozer ;)
yup cause in GameTab(12); it first does:
if (GetCurrentTab = 12) or not(LoggedIn) then EXIT;

Rich

2009-05-15 10:58:40

Oh, ok guys. Thanks for the comments.

EDIT: Changed the second one a bit, after reading ^ comments.

Narcle

2009-05-15 12:38:27

You should put GameTab(12) in AidOn then remove it from second function as it would use AidOns GameTab(12).

Also don't you need GameTab(12) in AidOn to see it?

Rich

2009-05-15 18:54:25

From: Narcle
You should put GameTab(12) in AidOn then remove it from second function as it would use AidOns GameTab(12).

Also don't you need GameTab(12) in AidOn to see it?


Thanks for the pointer Narcle. I made these last night, so I was a bit :norris: