Quote:
Originally Posted by James76
Works. Now just going to get the /key command to work..
|
I thought I'd share info about how to handle a new Client->Server opcode, which may save you a bit of time if you are unfamiliar with the code.
In common/emu_oplist.h, you need to add a new line:
Then, in client_packet.h
Code:
void Handle_OP_KeyRing(const EQApplicationPacket *app);
Then, in client_packet.cpp, up at the top:
Code:
ConnectedOpcodes[OP_KeyRing] = &Client::Handle_OP_KeyRing;
And finally, add:
Code:
void Client::Handle_OP_KeyRing(const EQApplicationPacket *app) {
// Your code
}
And you also need to add a line to patch_Titanium.conf: