Sandstorm
2008-11-29 01:31:48
Program Test;
var
x, y: Integer;
Function Duel : Boolean;
Begin
Result := FindColor(x, y, 12926, MCX1, MCY1, MCX2, MCY2);
End;
Function DuelScreen1 : Boolean;
Begin
Result := GetColor(73, 37) = 0;
End;
Function DuelScreen2 : Boolean;
Begin
Result := GetColor(391, 34) = 0;
End;
Function Challenge : Boolean;
Begin
Result := GetColor(12, 346) = 0;
End;
Begin
SetupSRL;
If DuelScreen1 Then
WriteLn('Duel Screen one is up!');
If DuelScreen2 Then
WriteLN('Duel Screen two is up!');
If Challenge Then
Begin
MouseBox(198, 189, 317, 208, 1);
WriteLn('Accepted a challenge!');
TerminateScript;
End;
If Duel Then
Mouse(x + 5, y + 5, 3, 3, true);
End.Looking for testers. Updating a VERY old script of mine, and I realized this way was MUCH better then the 10-15 line procedures I had before :P.
DuelScreen1 is the first duel screen, number two is the confirmation screen. Challenge checks if there's a challenge screen up (where you choose stake or friendly), and Duel checks if someone challenged you. They should all work, but I want to be sure. Thanks in advance!
~Sandstorm