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

19 lines
548 B
C++

#include "stdafx.h"
#include "Logger.h"
#include "L2Client.h"
void L2Client::ph_CharCreateFail( class L2Client *pcls, L2GamePacket *p )
{
L2Game_CharCreateFail *pf = new L2Game_CharCreateFail(
p->getBytesPtr(), p->getPacketSize() );
if( pf->parse( pcls->account.getL2Version() ) )
{
char reason[256] = {0};
pf->reasonCodeToString( pf->p_reasonCode, reason );
log_error( LOG_ERROR, "CharCreateFail: %s\n", reason );
pcls->addChatToTabFormat( CHAT_SYS, L"Char create error: %S", reason );
}
delete pf;
pf = NULL;
}