Implement OP_CancelSneakHide

Didn't test every client, but they should all work
This commit is contained in:
Michael Cook (mackal)
2016-06-30 17:50:31 -04:00
parent a64343689c
commit 54de212214
12 changed files with 39 additions and 3 deletions
+8
View File
@@ -7871,6 +7871,14 @@ void Client::Handle_OP_Heartbeat(const EQApplicationPacket *app)
void Client::Handle_OP_Hide(const EQApplicationPacket *app)
{
// newer client respond to OP_CancelSneakHide with OP_Hide with a size of 4 and 0 data
if (app->size == 4) {
auto data = app->ReadUInt32(0);
if (data)
Log.Out(Logs::Detail, Logs::None, "Got OP_Hide with unexpected data %d", data);
return;
}
if (!HasSkill(EQEmu::skills::SkillHide) && GetSkill(EQEmu::skills::SkillHide) == 0)
{
//Can not be able to train hide but still have it from racial though