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

Grabbing a whisper

gawdz

Community Developer
Joined
Jan 15, 2010
Messages
252
Reaction score
9
anyone have an example i tried but cant seem to grab a recent whisper
 
like

Code:
        public void Grabwhisper(ChatMessageEventArgs e)
{

}

but doesnt seem to work
 
Out of the eBored plugin:

Code:
 public void AnswerWhisper(ChatMessageEventArgs e)
        {
            Styx.Helpers.Logging.Write("Extender: Whisper ({0}) from {1}.",
                    e.Message.Content, e.Message.Sender);

            if (e.Message.Sender != Styx.Global.Me.Name)
            {
                _counter = 0;
                _answered = false;
                foreach (string s in Config.Instance.Questions)
                {                   
                    if (e.Message.Content.Contains(s))
                    {
                        Styx.Helpers.Logging.Write("Extender: Sending custom message ({0}).",
                    Config.Instance.Answers.ElementAt(_counter));
                        WoWChat.WoWChat.SendChatMessage(Config.Instance.Answers.ElementAt(_counter), 
                            ChatType.Whisper, e.Message.Sender);
                        _answered = true;
                        break;
                    }
                    _counter++;
                }

                if (!_answered)
                {
                    _random = Config.Instance.Randoms.ElementAt(_rand.Next(0, Config.Instance.Randoms.Count - 1));
                    Styx.Helpers.Logging.Write("Extender: Sending random message ({0}).",
                        _random);
                    WoWChat.WoWChat.SendChatMessage(_random, ChatType.Whisper, e.Message.Sender);
                }
            }
            else
            {
                Styx.Helpers.Logging.Write("Extender: Not answering own whispers ({0}).", e.Message.Content);
            }
        }
    }
 
ok i can successfully get whispers but...

Code:
WoWChat.SendChatMessage(string, ChatType.WhisperTo, e.Message.Sender);

doesn't send a whisper any ideas?
 
as far as I can tell there is a problem with the ChatType
I was not able to get this working aswell.
 
Yeah. Chattype is fine via everything else like guild say yell but whisper don't work imma pm boss or hawker about it
 
Back
Top