2015-10-06 20:06:08 -04:00
|
|
|
|
using FFXIVClassic_Lobby_Server.packets;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.actor
|
|
|
|
|
{
|
|
|
|
|
class SetActorStatePacket
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x0134;
|
|
|
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
|
|
|
|
|
|
public const int STATE_NONE = 0x0000;
|
|
|
|
|
public const int STATE_DEAD = 0x0303;
|
|
|
|
|
public const int STATE_PASSIVE = 0xBF00;
|
|
|
|
|
public const int STATE_ACTIVE = 0xBF02;
|
|
|
|
|
|
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, uint targetID, uint state)
|
|
|
|
|
{
|
2015-10-06 23:08:40 -04:00
|
|
|
|
ulong combined = 0;
|
2015-10-06 20:06:08 -04:00
|
|
|
|
|
2015-10-06 23:08:40 -04:00
|
|
|
|
combined |= state;
|
|
|
|
|
|
|
|
|
|
return new SubPacket(OPCODE, playerActorID, targetID, BitConverter.GetBytes(combined));
|
2015-10-06 20:06:08 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|