mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Figured out a lot of the 19X and 1AX packets. Adding test packet data used in experiments.
This commit is contained in:
		@@ -11,9 +11,9 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
 | 
			
		||||
    class MoveActorToPositionPacket
 | 
			
		||||
    {
 | 
			
		||||
        public const ushort OPCODE = 0x00CF;
 | 
			
		||||
        public const uint PACKET_SIZE = 0x48;
 | 
			
		||||
        public const uint PACKET_SIZE = 0x50;
 | 
			
		||||
 | 
			
		||||
        public static SubPacket buildPacket(uint playerActorID, uint actorID)
 | 
			
		||||
        public static SubPacket buildPacket(uint playerActorID, uint targetActorID, float x, float y, float z, float rot, ushort moveState)
 | 
			
		||||
        {
 | 
			
		||||
            byte[] data = new byte[PACKET_SIZE - 0x20];
 | 
			
		||||
 | 
			
		||||
@@ -21,12 +21,16 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
 | 
			
		||||
            {
 | 
			
		||||
                using (BinaryWriter binWriter = new BinaryWriter(mem))
 | 
			
		||||
                {
 | 
			
		||||
 | 
			
		||||
                    binWriter.BaseStream.Seek(0x8, SeekOrigin.Begin);
 | 
			
		||||
                    binWriter.Write((Single)x);
 | 
			
		||||
                    binWriter.Write((Single)y);
 | 
			
		||||
                    binWriter.Write((Single)z);
 | 
			
		||||
                    binWriter.Write((Single)rot);
 | 
			
		||||
                    binWriter.Write((ushort)moveState);
 | 
			
		||||
                }
 | 
			
		||||
                data = mem.GetBuffer();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            SubPacket packet = new SubPacket(OPCODE, playerActorID, actorID, data);
 | 
			
		||||
            SubPacket packet = new SubPacket(OPCODE, playerActorID, targetActorID, data);
 | 
			
		||||
            return packet;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								FFXIVClassic Map Server/packets/send/Actor/SetActorTarget.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								FFXIVClassic Map Server/packets/send/Actor/SetActorTarget.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
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 SetActorTarget
 | 
			
		||||
    {
 | 
			
		||||
        public const ushort OPCODE = 0x00DB;
 | 
			
		||||
        public const uint PACKET_SIZE = 0x28;
 | 
			
		||||
        
 | 
			
		||||
        public static SubPacket buildPacket(uint playerActorID, uint targetActorID, uint targetID)
 | 
			
		||||
        {            
 | 
			
		||||
            return new SubPacket(OPCODE, playerActorID, targetID, BitConverter.GetBytes((ulong)targetID));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user