I have a problem with events. For example, when i hook BroadcastEvent and recieve CHAT_MSG_SAY i got 13 args
Code:
%s%s%s%s%s%s%d%d%s%d%d%s%u
.
Got this by
Code:
void BroadcastEvent( DWORD dwEventID, const char * pszFmt, void *... )
{
OutputDebugString(pszFmt);
/// CODE + restore stack
oBroadcastEvent( dwEventID, pszFmt );
}
The event looks like
Code:
[6064] %s%s%s%s%s%s%d%d%s%d%d%s%u
[6064] 0 field: CHAT_MSG_SAY
[6064] 1 field: 0н›ьл›\/Ь˜ь›ИЂкяћ
[6064] 2 field: <э›ЪЁP
[6064] 3 field: ѓД<_^[‹е]Г3яйqяяяММММММММММММММU‹мS3Ы9шпј
[6064] 4 field:
[6064] 5 field: %s%s%s%s%s%s%d%d%s%d%d%s%u
[6064] 6 field: say
[6064] 7 field: 60550140
[6064] 8 field: 148647772
[6064] 9 field:
[6064] 10 field: 418021576
[6064] 11 field: 10360063
[6064] 12 field:
[6064] 13 field:
6 Field : the message i have typed in chat.
The normal event is
Code:
("message", "sender", "language", "channelString", "target", "flags", unknown, channelNumber, "channelName", unknown, counter)
Arguments:
•message - The message thats received (string)
•sender - The sender's username. (string)
•language - The language the message is in. (string)
•channelString - The full name of the channel, including number. (string)
•target - The username of the target of the action. Not used by all events. (string)
•flags - The various chat flags. Like, DND or AFK. (string)
•unknown - This variable has an unkown purpose, although it may be some sort of internal channel id. That however is not confirmed. (number)
•channelNumber - The numeric ID of the channel. (number)
•channelName - The full name of the channel, does not include the number. (string)
•unknown - This variable has an unkown purpose although it always seems to be 0. (number)
•counter - This variable appears to be a counter of chat events that the client recieves. (number)
What could be the source of problem?