l2-unlegits/l2ooghelper/packet_handlers/ph_SystemMessage.cpp
2012-02-01 05:25:08 +00:00

18 lines
467 B
C++

#include "stdafx.h"
#include "Logger.h"
#include "L2Client.h"
#include "utils.h"
void L2Client::ph_SystemMessage( class L2Client *pcls, L2GamePacket *p )
{
p->getPacketType();
//unsigned int sm_ID = p->readUInt();
//unsigned int paramCount = p->readUInt();
wchar_t *sm = (wchar_t *)malloc( 20480 );
if( !sm ) return;
memset( sm, 0, 20480 );
Utils_process_SystemMessage( p, sm );
pcls->addChatToTab( CHAT_SYS, sm );
free( sm ); sm = NULL;
}