mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Forgot the "GroupCreatedPacket".
This commit is contained in:
		| @@ -227,6 +227,11 @@ namespace FFXIVClassic_Map_Server | ||||
|                         ParameterDataRequestPacket paramRequest = new ParameterDataRequestPacket(subpacket.data); | ||||
|                         if (paramRequest.paramName.Equals("charaWork/exp")) | ||||
|                             session.GetActor().SendCharaExpInfo(); | ||||
|                         break; | ||||
|                     //Group Created Confirm | ||||
|                     case 0x0133: | ||||
|                         GroupCreatedPacket groupCreated = new GroupCreatedPacket(subpacket.data); | ||||
|  | ||||
|                         break; | ||||
|                     /* RECRUITMENT */ | ||||
|                     //Start Recruiting | ||||
|   | ||||
| @@ -0,0 +1,35 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace FFXIVClassic_Map_Server.packets.receive | ||||
| { | ||||
|     class GroupCreatedPacket | ||||
|     {     | ||||
|         public ulong groupId; | ||||
|         public string workString; | ||||
|  | ||||
|         public bool invalidPacket = false; | ||||
|  | ||||
|         public GroupCreatedPacket(byte[] data) | ||||
|         { | ||||
|             using (MemoryStream mem = new MemoryStream(data)) | ||||
|             { | ||||
|                 using (BinaryReader binReader = new BinaryReader(mem)) | ||||
|                 { | ||||
|                     try{ | ||||
|                         groupId = binReader.ReadUInt64(); | ||||
|                         workString = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' }); | ||||
|                     } | ||||
|                     catch (Exception){ | ||||
|                         invalidPacket = true; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user