From c09471ed43955c294c4a7e280c689de0b4b15361 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Mon, 26 Jun 2017 00:14:26 -0400 Subject: [PATCH] GL completion animation will only play to self now. --- FFXIVClassic Map Server/actors/chara/Character.cs | 10 ++++++++-- .../actors/director/GuildleveDirector.cs | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/FFXIVClassic Map Server/actors/chara/Character.cs b/FFXIVClassic Map Server/actors/chara/Character.cs index 66b54804..8d032b87 100644 --- a/FFXIVClassic Map Server/actors/chara/Character.cs +++ b/FFXIVClassic Map Server/actors/chara/Character.cs @@ -104,9 +104,15 @@ namespace FFXIVClassic_Map_Server.Actors } - public void PlayAnimation(uint animId) + public void PlayAnimation(uint animId, bool onlySelf = false) { - zone.BroadcastPacketAroundActor(this, PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId)); + if (onlySelf) + { + if (this is Player) + ((Player)this).QueuePacket(PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId)); + } + else + zone.BroadcastPacketAroundActor(this, PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId)); } } diff --git a/FFXIVClassic Map Server/actors/director/GuildleveDirector.cs b/FFXIVClassic Map Server/actors/director/GuildleveDirector.cs index 5a82382d..8bf90ce2 100644 --- a/FFXIVClassic Map Server/actors/director/GuildleveDirector.cs +++ b/FFXIVClassic Map Server/actors/director/GuildleveDirector.cs @@ -98,7 +98,7 @@ namespace FFXIVClassic_Map_Server.actors.director { Player player = (Player)a; player.MarkGuildleve(guildleveId, true, true); - player.PlayAnimation(0x02000002); + player.PlayAnimation(0x02000002, true); player.ChangeMusic(81); player.SendGameMessage(Server.GetWorldManager().GetActor(), 50023, 0x20, (object)(int)guildleveId); player.SendDataPacket("attention", Server.GetWorldManager().GetActor(), "", 50023, (object)(int)guildleveId);