Geo
2011-04-04 01:47:25
{*******************************************************************************
function SetChat(state: string; chat: Integer): Boolean;
By: Wizzup?, WT-Fakawi, Starblaster100, N1ke! & Coh3n
Description: Sets Chat to desired state
Chat: Game Public Private Clan Trade Assist
0 1 2 3 4 5
*******************************************************************************}
function SetChat(state: string; chat: Integer): Boolean;
var
x, y, mx, Color: Integer;
begin
result := false;
mx := 90 + (chat * 55);
if (not InRange(chat, CHAT_GAME, CHAT_ASSIST)) then
begin
srl_Warn('SetChat', 'chat(' + IntToStr(chat) + ') does not exist.', warn_AllVersions);
Exit;
end;
case Lowercase(State) of
'on', 'all': Color := 65280;
'off': Color := 255;
'hide': Color := 16776960;
'friends', 'filter': Color := 65535;
else
srl_Warn('SetChat', state + ' does not exist.', warn_AllVersions);
end;
if (not FindColor(x, y, Color, mx - 10, 486, mx + 10, 502)) then
begin
Mouse(mx, 496, 4, 4, False);
Wait(RandomRange(50, 150));
[B]
if (Lowercase(State) = 'off') then
begin
case chat of
CHAT_PUBLIC: Mouse(mx, 496 - 33, 8, 3, True);
CHAT_PRIVATE..CHAT_ASSIST: Mouse(mx, 496 - 20, 8, 3, True);
end;[/B]
Wait(RandomRange(50, 150));
Result := FindColor(x, y, Color, mx - 10, 486, mx + 10, 502);
end else
Result := WaitOption(Capitalize(State), 300);
end;
end;
Changed:
if (Lowercase(State) = 'off') then
begin
case chat of
CHAT_PUBLIC: Mouse(mx, 496 - 33, 8, 3, True);
CHAT_PRIVATE..CHAT_ASSIST: Mouse(mx, 496 - 20, 8, 3, True);
end;
To:
if (Lowercase(State) = 'off') then
begin
case chat of
CHAT_PUBLIC: Mouse(mx, 496 - 33, 8, 3, True);
CHAT_PRIVATE..CHAT_TRADE: Mouse(mx, 496 - 20, 8, 3, True);
CHAT_ASSIST: Mouse(mx, 496 - 33, 8, 3, True);
end;
From: Jagex
We've added the ability for the assister to find out how long it is until they can next assist, as well as how much experience they've earned. Simply right-click the Assist tab below the chatbox.
From: http://services.runescape.com/m=news/conquest