SRL Archive - General

Help with InChat function


Zeta Matt

2012-05-31 23:11:35

I'm using

if InChat('bot') or InChat('smith') or InChat('rang') then
Debug('Someone is talking to you!');
PlaySound('C:\Simba\alarm.wav');



And it's playing the alarm everytime without writing on debug. I've already serched for other "InChat's" all over the script, and there is only this one. Someone help me?

Does it check your name in the Writing box below the chat box?

Sin

2012-05-31 23:17:16

Add a begin and an end.

Zeta Matt

2012-06-01 16:27:21

Yeah, I put a Begin and an End when I did a new function, but it wasn't working when on mainloop

YoHoJo

2012-06-01 16:36:34

Show all code.