mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.script
|
|
{
|
|
class ScriptResultPacket
|
|
{
|
|
public const ushort OPCODE = 0x012E;
|
|
public const uint PACKET_SIZE = 0xD8;
|
|
|
|
public bool invalidPacket = false;
|
|
|
|
public uint actorID;
|
|
public uint scriptOwnerActorID;
|
|
public uint val1;
|
|
public uint val2;
|
|
ScriptParamReader reader;
|
|
|
|
public ScriptResultPacket(byte[] data)
|
|
{
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
{
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
{
|
|
try{
|
|
actorID = binReader.ReadUInt32();
|
|
scriptOwnerActorID = binReader.ReadUInt32();
|
|
val1 = binReader.ReadUInt32();
|
|
val2 = binReader.ReadUInt32();
|
|
binReader.ReadByte();
|
|
reader = new ScriptParamReader(binReader);
|
|
}
|
|
catch (Exception){
|
|
invalidPacket = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|