mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added item storage packet for armoire.
This commit is contained in:
		| @@ -249,6 +249,7 @@ | ||||
|     <Compile Include="packets\send\player\SetHasGoobbuePacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetHasChocoboPacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetLatestAchievementsPacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetPlayerItemStoragePacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetPlayerDreamPacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetPlayerTitlePacket.cs" /> | ||||
|     <Compile Include="packets\send\player\SetSpecialEventWorkPacket.cs" /> | ||||
|   | ||||
| @@ -537,16 +537,17 @@ namespace FFXIVClassic_Map_Server.Actors | ||||
|             playerSession.QueuePacket(debugSpawn);             | ||||
|             playerSession.QueuePacket(worldMasterSpawn); | ||||
|  | ||||
|             //Inn Packets (Dream, Cutscenes, Armoire) | ||||
|             if (zone.isInn) | ||||
|             { | ||||
|                 SetCutsceneBookPacket cutsceneBookPacket = new SetCutsceneBookPacket(); | ||||
|                 for (int i = 0; i < 2048; i++) | ||||
|                     cutsceneBookPacket.cutsceneFlags[i] = true; | ||||
|  | ||||
|                 SubPacket packet = cutsceneBookPacket.BuildPacket(actorId, "<Path Companion>", 11, 1, 1); | ||||
|  | ||||
|                 packet.DebugPrintSubPacket(); | ||||
|                 QueuePacket(packet); | ||||
|                 QueuePacket(SetPlayerItemStoragePacket.BuildPacket(actorId)); | ||||
|             } | ||||
|  | ||||
|             if (zone.GetWeatherDirector() != null) | ||||
|   | ||||
| @@ -0,0 +1,29 @@ | ||||
| using FFXIVClassic.Common; | ||||
| using System; | ||||
|  | ||||
| using FFXIVClassic.Common; | ||||
| using System.IO; | ||||
|  | ||||
| namespace FFXIVClassic_Map_Server.packets.send.player | ||||
| { | ||||
|     class SetPlayerItemStoragePacket | ||||
|     { | ||||
|         public const ushort OPCODE = 0x01A5; | ||||
|         public const uint PACKET_SIZE = 0x50; | ||||
|  | ||||
|         public static SubPacket BuildPacket(uint playerActorID) | ||||
|         { | ||||
|             byte[] data = new byte[PACKET_SIZE - 0x20]; | ||||
|  | ||||
|             using (MemoryStream mem = new MemoryStream(data)) | ||||
|             { | ||||
|                 using (BinaryWriter binWriter = new BinaryWriter(mem)) | ||||
|                 { | ||||
|                     binWriter.Write(new byte[] { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F}); //All items enabled | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             return new SubPacket(OPCODE, playerActorID, playerActorID, data); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user