I need a detailed explanation on creating new packets I need to create one for CDPSrvr::LoadIPCut so that I can call it from dpsrvr.cpp( worldserver ) to use in a command this would help me learn and would be much appreciated.
I attempted and failed
I put
in MsgHdr.h
I also put
in DpSrvr.cpp(world)
and
in DpSrvr.h
and
in DpSrvr.cpp(Account)
but received this error
I attempted and failed
I put
Code:
#define PACKETTYPE_RELOAD_BANS (DWORD)0x88100250
I also put
Code:
ON_MSG( PACKETTYPE_RELOAD_BANS, LoadIPCut );
Code:
void CDPSrvr::LoadIPCut()
{
}
in DpSrvr.cpp(world)
and
Code:
void LoadIPCut();
and
Code:
ON_MSG( PACKETTYPE_RELOAD_BANS, LoadIPCut );
but received this error
Code:
error C2440: '=' : cannot convert from 'BOOL (__thiscall CDPSrvr::* )(void)' to 'void (__thiscall CDPSrvr::* )(CAr &,DPID,DPID,LPBYTE,u_long)'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast