mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Cleaned up the emotes code.
This commit is contained in:
@@ -771,9 +771,9 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
return mountState;
|
||||
}
|
||||
|
||||
public void DoEmote(uint animId, uint descId)
|
||||
public void DoEmote(uint targettedActor, uint animId, uint descId)
|
||||
{
|
||||
BroadcastPacket(ActorDoEmotePacket.BuildPacket(actorId, actorId, currentTarget, animId, descId), true);
|
||||
BroadcastPacket(ActorDoEmotePacket.BuildPacket(actorId, actorId, targettedActor, animId, descId), true);
|
||||
}
|
||||
|
||||
public void SendGameMessage(Actor sourceActor, Actor textIdOwner, ushort textId, byte log, params object[] msgParams)
|
||||
|
@@ -14,16 +14,18 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
|
||||
{
|
||||
byte[] data = new byte[PACKET_SIZE - 0x20];
|
||||
|
||||
if (targettedActorId == 0xC0000000)
|
||||
if (targettedActorId == 0)
|
||||
{
|
||||
targettedActorId = sourceActorId;
|
||||
if (descriptionId != 10105)
|
||||
descriptionId++;
|
||||
}
|
||||
|
||||
using (MemoryStream mem = new MemoryStream(data))
|
||||
{
|
||||
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
||||
{
|
||||
uint realAnimID = 0x5000000 | (animationId << 12);
|
||||
if (descriptionId != 10105 && targettedActorId == sourceActorId)
|
||||
descriptionId++;
|
||||
uint realAnimID = 0x5000000 | (animationId << 12);
|
||||
binWriter.Write((UInt32)realAnimID);
|
||||
binWriter.Write((UInt32)targettedActorId);
|
||||
binWriter.Write((UInt32)descriptionId);
|
||||
|
Reference in New Issue
Block a user