Bug fix on broadcast packet method, filled out what 0x144 does.

This commit is contained in:
Filip Maj 2017-05-16 23:43:07 -04:00
parent 08b3564d7e
commit c67c5f3bdf
6 changed files with 23 additions and 8 deletions

View file

@ -355,7 +355,7 @@ namespace FFXIVClassic_Map_Server.Actors
if (isIsolated && packet.header.sourceId != a.actorId)
continue;
SubPacket clonedPacket = new SubPacket(packet, actor.actorId);
SubPacket clonedPacket = new SubPacket(packet, a.actorId);
Player p = (Player)a;
p.QueuePacket(clonedPacket);
}

View file

@ -81,7 +81,7 @@ namespace FFXIVClassic_Map_Server.Actors
public SubPacket CreateIdleAnimationPacket(uint playerActorId)
{
return SetActorIdleAnimationPacket.BuildPacket(actorId, playerActorId, animationId);
return SetActorSubStatPacket.BuildPacket(actorId, playerActorId, 0, 0, 0, 0, 0, 0, animationId);
}
public void SetQuestGraphic(Player player, int graphicNum)

View file

@ -321,6 +321,12 @@ namespace FFXIVClassic_Map_Server.Actors
{
return actorClassId;
}
public void ChangeNpcAppearance(uint id)
{
LoadNpcAppearance(id);
zone.BroadcastPacketAroundActor(this, CreateAppearancePacket(actorId));
}
public void LoadNpcAppearance(uint id)
{