Jump to content

Integration of external chat networks.


Guest octo

Recommended Posts

Hi,

the last day or two I've been playing around with the idea of adding some gateway functionality to the chat system. By that I mean to add functionality to the server to log into chat networks (like a Jabber server) on account of users joining the game and relaying messages. It'd be awesome to be able to chat a little with people not actually in the game as well as saying hello to people I know from the game without actually having to start it myself.

I think intercepting messages sent by people logged into MaNGOS and send them to somewhere else is pretty straight forward. It's the other way around I currently can't figure out. If I understand Player::BuildPlayerChat correctly, only an ID is transmitted, not a string representing the user name. Is that so? Language and GIUD are transferred twice, does that maybe leave some room to transmit yet-untranslated names or something like that, that can be used for the purpose of transmitting a not really existing user name?

WorldObject::BuildMonsterChat on the other hand transfers a mob's name (apparently along it's ID). I have absolutely no idea how that would look like in-game. Can one reply to that? (How) Can one distinguish between a monster-whisper and a player-whisper? Especially interesting: Can one reply to it?

Regards,

-octo

Link to comment
Share on other sites

There was a project called mangchat that implemented IRC chat channels to sync with the in game chat. The project page is still up at http://mangchat.visualdreams-its.com/index.php/Main_Page ,but I don't think the project is active anymore. However the source is still available on the filebeam mirrors on that page so you could take a look how the send/recieve mechanism works. I vaguely remember that there was whisper from irc to game function somewhere in there, but I may be wrong.

Monster whispers are noticeable in that they cannot be replied to and is distinguishable in that the npc name is used instead. An example of a mob whisper http://www.wowwiki.com/Khadgar%27s_Servant .

Link to comment
Share on other sites

There was a project called mangchat that implemented IRC chat channels to sync with the in game chat.

Thanks for the hint, I'll take a look. From a first glance, this looks mighty simple. :)

Monster whispers are noticeable in that they cannot be replied to and is distinguishable in that the npc name is used instead.

I thought so :/ I'll try with the CHAT_MSG_SYSTEM type that MangChat appears to use.

Regards,

-octo

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use