Thread: keyring
View Single Post
  #7  
Old 09-14-2008, 09:09 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by James76 View Post
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:

Code:
N(OP_KeyRing),
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:

Code:
OP_KeyRing=0x68c4
Reply With Quote