mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-11 15:04:42 +02:00
Added command and script packets. Finished the SetActorProperty packet. Fixed bug with manually send packets from console.
This commit is contained in:
parent
ba68546cc9
commit
0a6b005a0c
9 changed files with 198 additions and 43 deletions
|
@ -9,13 +9,16 @@ namespace FFXIVClassic_Map_Server.packets.send.script
|
|||
{
|
||||
class CommandStartRequestPacket
|
||||
{
|
||||
bool invalidPacket = false;
|
||||
public const ushort OPCODE = 0x012E;
|
||||
public const uint PACKET_SIZE = 0x78;
|
||||
|
||||
public bool invalidPacket = false;
|
||||
|
||||
public uint actorID;
|
||||
public uint scriptOwnerActorID;
|
||||
public uint val1;
|
||||
public uint val2;
|
||||
public string callbackName;
|
||||
public ScriptParamReader reader;
|
||||
|
||||
public CommandStartRequestPacket(byte[] data)
|
||||
{
|
||||
|
@ -30,14 +33,8 @@ namespace FFXIVClassic_Map_Server.packets.send.script
|
|||
val2 = binReader.ReadUInt32();
|
||||
binReader.ReadByte();
|
||||
|
||||
while (true)
|
||||
{
|
||||
byte inByte = binReader.ReadByte();
|
||||
if (inByte == 0)
|
||||
break;
|
||||
callbackName += (char)inByte;
|
||||
}
|
||||
|
||||
binReader.BaseStream.Seek(0x31, SeekOrigin.Begin);
|
||||
reader = new ScriptParamReader(binReader);
|
||||
}
|
||||
catch (Exception){
|
||||
invalidPacket = true;
|
||||
|
|
|
@ -9,14 +9,16 @@ namespace FFXIVClassic_Map_Server.packets.send.script
|
|||
{
|
||||
class ScriptResultPacket
|
||||
{
|
||||
bool invalidPacket = false;
|
||||
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;
|
||||
public uint val3;
|
||||
public uint val4;
|
||||
public uint val5;
|
||||
ScriptParamReader reader;
|
||||
|
||||
public ScriptResultPacket(byte[] data)
|
||||
{
|
||||
|
@ -26,11 +28,11 @@ namespace FFXIVClassic_Map_Server.packets.send.script
|
|||
{
|
||||
try{
|
||||
actorID = binReader.ReadUInt32();
|
||||
scriptOwnerActorID = binReader.ReadUInt32();
|
||||
val1 = binReader.ReadUInt32();
|
||||
val2 = binReader.ReadUInt32();
|
||||
val3 = binReader.ReadUInt32();
|
||||
val4 = binReader.ReadUInt32();
|
||||
val5 = binReader.ReadUInt32();
|
||||
binReader.ReadByte();
|
||||
reader = new ScriptParamReader(binReader);
|
||||
}
|
||||
catch (Exception){
|
||||
invalidPacket = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue