What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Help with reading whispers

Cracktomte

Member
Joined
Mar 7, 2010
Messages
430
Reaction score
13
Well, before the update the code looked like
Code:
WoWChat.Whisper += handleMessage;

private void handleMessage(ChatMessageEventArgs e)
{
            // Whisper
            if (e.Message.ChatType == ChatType.WhisperInform)
            {
                Do stuff...
            }
}
But, how should it be after the update? I don't have a clue tbh...
 
From looking in the object browser for 2 minutes I think it is something like this. :p (Right click on any reference in the solution explorer and click on view in object browser)

Code:
        WoWChat.Whisper += new WoWChat.ChatMessageHandlerEx<WoWChat.ChatWhisperEventArgs>(handleMessage);

        private void handleMessage(WoWChat.ChatWhisperEventArgs e)
        {
            
        }

Looking at the syntax I assume it will only contain whispers, so no need to filter them in a if statement.

Please remember how not the answer, this is one of the first basics you should know programming in Visual Studio and external resources. When you’re not using VS, get it the express edition is free, and add the HB executable as a resource to the project.

If this is not answering your question, stop programming or get a book.

I really hope you figured this out already before I could post this message. :o
 
Last edited:
Back
Top