mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00
Fixed emote not working when no target was set.
This commit is contained in:
parent
d3325676c5
commit
2f6841b125
1 changed files with 4 additions and 1 deletions
|
@ -17,12 +17,15 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
|
|||
{
|
||||
byte[] data = new byte[PACKET_SIZE - 0x20];
|
||||
|
||||
if (targetActorID == 0xC0000000)
|
||||
targetActorID = playerActorID;
|
||||
|
||||
using (MemoryStream mem = new MemoryStream(data))
|
||||
{
|
||||
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
||||
{
|
||||
uint realAnimID = 0x5000000 | ((emoteID - 100) << 12);
|
||||
uint realDescID = 20000 + ((emoteID - 1) * 10) + (targetActorID == playerActorID || targetActorID == 0xC0000000 ? (uint)2 : (uint)1);
|
||||
uint realDescID = 20000 + ((emoteID - 1) * 10) + (targetActorID == playerActorID ? (uint)2 : (uint)1);
|
||||
binWriter.Write((UInt32)realAnimID);
|
||||
binWriter.Write((UInt32)targetActorID);
|
||||
binWriter.Write((UInt32)realDescID);
|
||||
|
|
Loading…
Add table
Reference in a new issue