From 1e344f2ad28a0e04122349ac719f89b064797759 Mon Sep 17 00:00:00 2001 From: Uleat Date: Mon, 21 Mar 2016 18:35:11 -0400 Subject: [PATCH] Added 'Open Chest' animation for LDoN chest death (thanks Natedog!) --- zone/attack.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zone/attack.cpp b/zone/attack.cpp index c14a74059..858e6aee9 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -1936,6 +1936,16 @@ bool NPC::Death(Mob* killer_mob, int32 damage, uint16 spell, SkillUseTypes attac BuffFadeAll(); uint8 killed_level = GetLevel(); + if (GetClass() == LDON_TREASURE) { // open chest + EQApplicationPacket* outapp = new EQApplicationPacket(OP_Animation, sizeof(Animation_Struct)); + Animation_Struct* anim = (Animation_Struct*)outapp->pBuffer; + anim->spawnid = GetID(); + anim->action = 0x0F; + anim->speed = 10; + entity_list.QueueCloseClients(this, outapp); + safe_delete(outapp); + } + EQApplicationPacket* app = new EQApplicationPacket(OP_Death, sizeof(Death_Struct)); Death_Struct* d = (Death_Struct*)app->pBuffer; d->spawn_id = GetID();