SRL Archive - Help

finding game chat


Littellj

2012-03-06 22:39:18

Is there a function that can "monitor" game chat so that if it finds something it will move onto another procedure/function. I dug through scripts and found this.

 if pos( 'stunned', GetblackChatMessage) <> 0 then  

I'm thinking if i did this

 if pos( 'stunned', GetblackChatMessage) > 0 then  

It might work?

Ashaman88

2012-03-06 22:41:39

I use this -

If FindBlackChatMessage('isn') Then



Instead of isn put a few characters of whatever text you are looking for

Littellj

2012-03-06 22:43:41

From: ashaman88
I use this -




Instead of isn put a few characters of whatever text you are looking for


Thanks :thumbsup:



Do i need to put
begin

end; between this case?

If FindBlackChatMessage('fail') Then
Case Random(2) of
1:Wait(4000);
2:Antiban;
end;

Caotom

2012-03-07 07:13:11

From: Littellj
Thanks :thumbsup:



Do i need to put
begin

end; between this case?


No, you usually do not need a begin/end for one line cases (it's the same deal with if/then).

~Caotom