View Full Version : GetChatMsg and more problems!
maglor
05-26-2007, 01:07 PM
I am making a script to get member here, a powercutter. Now I need the script to be able to check this sentence in the chatbox: 'You do not have an axe which you have the woodcutting...' You know what I mean. I tried using this:
(InChatMulti('u do not have a', 'n axe which y', 'u have the wo'))
(GetLastChatMsg = 'ou do not have an axe')
(InChat('do not have an ax')
Also using a bmp (but I think it uses black as transparent)
But every time I run the script, I find the msg, also on account which still have an axe and the good woodcutting lvl :duh:
Does anyone know a better way
Wizzup?
05-26-2007, 01:12 PM
I am making a script to get member here, a powercutter. Now I need the script to be able to check this sentence in the chatbox: 'You do not have an axe which you have the woodcutting...' You know what I mean. I tried using this:
(InChatMulti('u do not have a', 'n axe which y', 'u have the wo'))
(GetLastChatMsg = 'ou do not have an axe')
(InChat('do not have an ax')
Also using a bmp (but I think it uses black as transparent)
But every time I run the script, I find the msg, also on account which still have an axe and the good woodcutting lvl :duh:
Does anyone know a better way
function FindBlackChatMessage(ChatMsg: String): Boolean;
By: Wizzup?
Description: Returns True if text with color 0 in last chat line is found.
function IsChatBlackTextAnyLine(ChatTxt: String): Boolean;
By: Wizzup?
Description: Returns true if ChatTxt is found in any of the 5 lines in ChatBox.
function IsChatMessage(S: string): Boolean;
begin
Result := (Pos(S, GetNewChatMsg) > 0);
end;
maglor
05-26-2007, 01:15 PM
I'll try it now, thanks for replying wizzup
maglor
05-26-2007, 01:30 PM
Found what the problem was: I forgot a ";" after one function, but scar didn't saw...
evilwalrus
05-28-2007, 02:58 AM
wish i could help, good luck though
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.