From: the scar noob
In the words that santa said it, you can technically see that he says: "a byte is an integer up to 256", which isn't correct Ice.
Cause that means that a byte number ranges from the negative value of an integer until 256 => -2147483648 .. 256 which is incorrect:)
-Tsn.
Ha, true, but I never said "santa is right". No I said 0..255 is 256 numbers ;)
From: JuKKa
Program RSObject;
{.Include SRL/SRL.Scar}
Type
RSObject = Record
X, Y, Color, Tol, CTS: Integer;
Name: TStringArray;
Width, Height: Integer;
End;
Var
Man, Woman, WhiteKnight, BlackKnight, Guard: RSObject;
Procedure SetupRSObjects;
Begin
Guard.Color := 0;
Guard.Tol := 10;
Guard.CTS := 2;
Guard.Name := ['Guard', 'uar', 'ard', 'Gua'];
Guard.Width := 25;
Guard.Height := 50;
//--------------------\\
Man.Color := 0;
Man.Tol := 10;
Man.CTS := 2;
Man.Name := ['Man'];
Man.Width := 25;
Man.Height := 50;
//--------------------\\
Woman.Color := 0;
Woman.Tol := 10;
Woman.CTS := 2;
Woman.Name := ['Woman', 'Wom', 'oma', 'man'];
Woman.Width := 25;
Woman.Height := 50;
//--------------------\\
WhiteKnight.Color := 0;
WhiteKnight.Tol := 10;
WhiteKnight.CTS := 2;
WhiteKnight.Name := ['White', 'night', 'hit', 'ite'];
WhiteKnight.Width := 25;
WhiteKnight.Height := 50;
End;
Function FindRSObject(TObject: RSObject): Boolean;
Var
I, CTS: Integer;
TPA: TPointArray;
aTPA: T2DPointArray;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(TObject.CTS);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, TObject.Color, MSX1, MSY1, MSX2, MSY2, TObject.Tol);
ColorToleranceSpeed(CTS);
aTPA := TPAtoATPAEx(TPA, TObject.Width, TObject.Height);
For I:= 0 To High(aTPA) Do
Begin
MiddleTPAEx(aTPA[I], TObject.X, TObject.Y);
MMouse(TObject.X, TObject.Y, 0, 0);
Wait(50+Random(25));
Result := IsUpTextMultiCustom(TObject.Name);
If(Result)Then Break;
End;
End;
Begin
SetupSRL;
FindRSObject(Guard);
End.
Something like this ;)?
Exactly!
Maybe even make function so that declaring takes less space for example
function DeclareRSObject(var NameRSObject: RSObject; Width, Height: LongInt);
begin
NameRSOBject.Width := Width;
NameRSObject.Height := Height;
DeclareRSObject(Woman, 54, 43);
From: EvilChicken!
N3s, if you're thinking about cup-size, you've totally phajld. Like when my hair got stuck in the mixer (spinning thingy, right.)
Yep, adding spam to spam.
Anyway, I have to underline that I think that this is a really good idea, exept for the color array in the record. They're dynamic, riiight?
So this may be a bit complicated, but if we had some sort of system ala SmartColors which would upload colors of objects to the internet which would be used by users using the same object finding procedures/systems, this would be really great.
Wizzup? has made this thread which is stating that SRL now has it's own Google Code account, plese check it out. (nt rly oftpic.)
So, what do you think about my idea? (As in, iz et possible?)
Sounds cool, I'll check it out.
From: Dan Cardin
afaik he means bust size, in inches, so not char :).
on a per script bases, i dont think this would be that helpful. if a bunch of objects were already done and you could include them into your script then i think it would be quite a nifty way of time saving.
Definitively.