I am strungeling on how to create an new packet.
This is what i have so far
MsgHdr.h
#define PACKETTYPE_UPDATETEST (WORD)0xDD000012
inside
DPClient.cpp
PHP Code:
void CDPClient::SendTest( u_long idPlayer, int IsRaven)
{
BEFORESENDSOLE( ar, PACKETTYPE_UPDATETEST, DPID_UNKNOWN );
ar << idPlayer << IsRaven;
SEND( ar, this, DPID_SERVERPLAYER )
}
PHP Code:
void SendTest( u_long idPlayer, int IsRaven);
PHP Code:
if( IsRaven ) //I thought it has to be something like this however its not not sure what to add here then
{
CString strName;
strName = szName;
strName += " [Bird]";
strcpy( szName, (LPCTSTR)strName );
}
With kind regards







