mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
[Opcode] Implement SetFace opcode (#2167)
* Implement SetFace opcode This implements the opcode that's used to update zone clients when a client updates their face * Use SetFace in #feature command Add check for valid number This adds the #feature eyes command which isn't in the illusion struct
This commit is contained in:
@@ -5856,10 +5856,11 @@ void Client::Handle_OP_FaceChange(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
// Notify other clients in zone
|
||||
entity_list.QueueClients(this, app, false);
|
||||
auto fc = reinterpret_cast<FaceChange_Struct*>(app->pBuffer);
|
||||
|
||||
// Notify other clients in zone
|
||||
SetFaceAppearance(*fc, true);
|
||||
|
||||
FaceChange_Struct* fc = (FaceChange_Struct*)app->pBuffer;
|
||||
m_pp.haircolor = fc->haircolor;
|
||||
m_pp.beardcolor = fc->beardcolor;
|
||||
m_pp.eyecolor1 = fc->eyecolor1;
|
||||
@@ -5872,7 +5873,6 @@ void Client::Handle_OP_FaceChange(const EQApplicationPacket *app)
|
||||
m_pp.drakkin_details = fc->drakkin_details;
|
||||
Save();
|
||||
MessageString(Chat::Red, FACE_ACCEPTED);
|
||||
//Message(Chat::Red, "Facial features updated.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user