SRL Archive - Discussions and Debates

SCAR Procedures/Functions!


Santa_Clause

2007-07-12 20:46:57

Hello all,

Me and a couple of other people have been wondering, where can we get the actual code of Procedures/Functions that are built into SCAR?

Example:

function GetCurrentTab: Integer;
begin
begin
if GetColor(559, 180) = 2566003 then
Result := 1
else if GetColor(585, 172) = 2434414 then
Result := 2
else if GetColor(612, 172) = 2434414 then
Result := 3
else if GetColor(630, 175) = 2829182 then
Result := 4
else if GetColor(676, 176) = 2763390 then
Result := 5
else if GetColor(706, 174) = 2763390 then
Result := 6
else if GetColor(731, 177) = 2829182 then
Result := 7
else if GetColor(594, 475) = 2171233 then
Result := 8
else if GetColor(622, 497) = 2434414 then
Result := 9
else if GetColor(631, 492) = 2829182 then
Result := 10
else if GetColor(678, 483) = 2171233 then
Result := 11
else if GetColor(706, 485) = 2434414 then
Result := 12
if GetColor(728, 488) = 2829182 then
Result := 13;
end;
end;

The code for that would be:

 if GetColor(559, 180) = 2566003 then
Result := 1
else if GetColor(585, 172) = 2434414 then
Result := 2
else if GetColor(612, 172) = 2434414 then
Result := 3
else if GetColor(630, 175) = 2829182 then
Result := 4
else if GetColor(676, 176) = 2763390 then
Result := 5
else if GetColor(706, 174) = 2763390 then
Result := 6
else if GetColor(731, 177) = 2829182 then
Result := 7
else if GetColor(594, 475) = 2171233 then
Result := 8
else if GetColor(622, 497) = 2434414 then
Result := 9
else if GetColor(631, 492) = 2829182 then
Result := 10
else if GetColor(678, 483) = 2171233 then
Result := 11
else if GetColor(706, 485) = 2434414 then
Result := 12
if GetColor(728, 488) = 2829182 then
Result := 13;

Where can I find the code of the procedures and functions so I can modify them?

bullzeye95

2007-07-12 21:02:59

You mean the ones like FindColor and stuff? If so, you can't.

Pyro

2007-07-13 03:09:09

Lol my god a few people have been asking me this. You cant edit scar functions. Fullstop

mastaraymond

2007-07-13 03:29:35

From: Pyro
Lol my god a few people have been asking me this. You cant edit scar functions. Fullstop
ughum, there is an way to 'edit' the scar functions but its more like a bug and I'm not telling :p fullstop

NewToAutoing

2007-07-13 03:57:22

Well not edit, but isn't there a way to look at it? To learn from it or make something similar to it that you want to use?

The Claw

2007-07-13 04:03:27

You could decompile the scar exe file and stuff around with that if you knew what you were doing I geuss, if you really wanted to

BenLand100

2007-07-13 12:12:25

The assembly code is easy enough to find, but you can't do anything meaningful with it. In otherwords you can't see the code for scar methods. However, you can override them in scripts by making a procedure/function with the same name and arguments.

Bobarkinator

2007-07-16 10:20:43

Freddy I think posted the FindColor source on his site, you can check. I'm pretty sure he posted something.