mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-10 17:33:51 +00:00
Added 'Open Chest' animation for LDoN chest death (thanks Natedog!)
This commit is contained in:
parent
4842583426
commit
1e344f2ad2
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user