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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

WoWChat events

CaOs

New Member
Joined
Jan 23, 2010
Messages
10
Hi guys,
do you know if the events in the WoWChat.WoWChat are still working?
 
I'm trying to do the same in a HBPlugin, just to log...and nothing happens....

HB 1.245 it does not work
HB 1.246 it seems to work properly
 
Last edited:
Actually that is the reason why I never finished Extender. Sometimes the event was fired over and over again or there was no event at all. Worst thing is, you can't get Unicode names for whisperers.
 
Nesox I am trying to monitor ingame messages from an outside program (relogger), it would be easier to just plug in the bot itself and get that stuff from there, how can I do this?
 
I've been trying to work on something simular, but without success, Althou my C# skills are non-exsistant.

Basiclly what I was trying to do (After looking at yours) is completly wrong lol.

Code:
[LIST=1]
[*]    public class kShot : HBPlugin
[*]    {
[*]          
[*] 
[*]        public void printScreen(WoWChat.ChatMessageHandler)         
[*]            {
[*]               if (WoWChat.WoWChat.NewWhisperFromMessage)
[*]               {
[*]                   KeyboardManager.KeyUpDown((char)Keys.PrintScreen);

[*]               }
[*]            }
[*]     }
[/LIST]
 
Yes indeed!
This will print all whispers in the guildchat, and say and whisperinfrom to the log :)
Enjoy
Code:
public class Warlock : ICombat
{
        public Warlock
        {
            WoWChat.WoWChat.NewSayMessage += WoWChat_NewSayMessage;
            WoWChat.WoWChat.NewWhisperFromMessage += WoWChat_NewWhisperFromMessage;
            WoWChat.WoWChat.NewWhisperToMessage += WoWChat_NewWhisperToMessage;
        }

        static void WoWChat_NewWhisperToMessage(ChatMessageEventArgs e)
        {
            Logging.Write("{0}", e.Message.ToString());
        }

        static void WoWChat_NewWhisperFromMessage(ChatMessageEventArgs e)
        {
            WoWChat.WoWChat.SendChatMessage(string.Format("Whisper from - [{0}]: {1}", e.Message.Sender, e.Message.Content), ChatType.Guild, "GUILD");
        }

        static void WoWChat_NewSayMessage(ChatMessageEventArgs e)
        {
            Logging.Write("{0}", e.Message.ToString());
        }

}

Can you show me an example of using it in a Plugin
I tried using this but it is different I think?
 
Ok, i solved the first issue using the last hb version 1.246 now the events are fired normally.
But when i try to use ChatType.WhisperTo in WoWChat.WoWChat.SendChatMessage(message, ChatType.WhisperTo, LastChannel);
I got an error in lua interface as unknow chattype.
With 1.245 this code was working...
 
Below code will print evry, (whisper, whisperto and say) chatmessage in the guildchat.

Code:
using Styx;
using System;
using Styx.Plugins.PluginClass;

namespace HBAutoEquip
{
    public class WhisperPlugin : HBPlugin
    {
        public WhisperPlugin()
        {
            WoWChat.WoWChat.NewSayMessage += WoWChat_NewSayMessage;
            WoWChat.WoWChat.NewWhisperFromMessage += WoWChat_NewWhisperFromMessage;[FONT=monospace]
      [/FONT]      WoWChat.WoWChat.NewWhisperToMessage += WoWChat_NewWhisperToMessage;
        }

        static void WoWChat_NewWhisperToMessage(ChatMessageEventArgs e)
        {
            WoWChat.WoWChat.SendChatMessage(string.Format("New whisper to message from - [{0}]: {1}", e.Message.Sender, e.Message.Content), ChatType.Guild, "GUILD");
        }

        static void WoWChat_NewWhisperFromMessage(ChatMessageEventArgs e)
        {
            WoWChat.WoWChat.SendChatMessage(string.Format("Whisper from - [{0}]: {1}", e.Message.Sender, e.Message.Content), ChatType.Guild, "GUILD");
        }

        static void WoWChat_NewSayMessage(ChatMessageEventArgs e)
        {
            WoWChat.WoWChat.SendChatMessage(string.Format("New say message from - [{0}]: {1}", e.Message.Sender, e.Message.Content), ChatType.Guild, "GUILD");
        }
    }
}

Thanks for this, just modified a version which will let me output the says/tells to the log. Have another small app that monitors the log in real time to provide audible alerts for says and tells, another goal crossed off my list!
 
Back
Top