Rich
2009-10-04 19:51:02
Changed it to use MouseCircle:
Richard
{*******************************************************************************
procedure ClickNorth(AngleHigh : boolean);
By: R1ch
Description: Clicks the compass to make it perfect North. Will set angle at
highest or lowest depending on AngleHigh
*******************************************************************************}
procedure ClickNorth(AngleHigh : Boolean);
begin
if Random(4) = 1 then
begin
MouseCircle(542, 24, 15, 2);
WaitOptionMulti(['ace', 'orth'], 1200);
end else
MouseCircle(542, 24, 15, 1);
SetAngle(AngleHigh);
end;{*******************************************************************************
function AddChatEffect(Effects : Integer) : string;
By: R1ch
Description: Adds a random chat effect to text depending on Effects
1 = Colour - eg. Cyan:
2 = Effect - eg. Shake:
3 = Both - eg. Cyan:Shake:
*******************************************************************************}
function AddChatEffect(Effects : Integer) : string;
var
Eff : TStringArray;
begin
Eff:= ['cyan', 'red', 'white', 'purple', 'green', 'flash1', 'flash2', 'flash3',
'glow1', 'glow2', 'glow3', 'slide', 'shake', 'scroll', 'wave', 'wave2'];
case Effects of
1 : Result:= (Eff[Random(11)] + ':');
2 : Result:= (Eff[(Random(5) + 11)] + ':');
3 : Result:= (Eff[Random(11)] + ':' + Eff[(Random(5) + 11)] + ':');
end;
end;Richard