SRL Archive - Help and Support

Help with array of colors.


Thick As Blood

2007-04-02 20:36:32

Well, i'm making a theiver, for the "Man" in edgville. Their's 5-8 of them, and i made a color array for them all.

procedure AllTheMenColors;
begin
ColorOfMan[1]:=2636860;
ColorOfMan[2]:=14194317;
ColorOfMan[3]:=8540489;
ColorOfMan[4]:=1385518;
ColorOfMan[5]:=2504505;
ColorOfMan[6]:=2364;
ColorOfMan[7]:=13929602;
end;

like so.

anyway, my problem is selecting the best colors. how exactly would i select the best possible color of the men? and what are the best tollerances?

is it all trial and error? or can someone help me out a little? :)

procedure RobMan;
var KMx,KMy:Integer;
begin
if (not(LoggedIn)) then
TerminateScript;
begin
for MenColors:=1 to 7 do
if FindColorSpiralTolerance(KMx,KMy,ColorOfMan[MenColors],MSX1,MSY1,MSX2,MSY2,5) then
MMouse(KMx,KMy,1,1);
if IsUpText('Man') then
begin
Mouse(KMx,KMy,1,1,false);
ClickOption('Pickpocket',1);
end;
end;
end;


^— is just what i'm working with for now..


Ideas? :)

Infantry001

2007-04-08 00:04:30

trial and error is the way to come up with the best color. But one way is to look for a color, and find a different color (unique to the man) that is around the first color.

and srry if u dont understand this… its late for me, and i cant type lol :P