mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Add equip ability functions
Fix EquipAbility SQL query
This commit is contained in:
		| @@ -11,7 +11,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|         public const ushort OPCODE = 0x0131; | ||||
|         public const uint PACKET_SIZE = 0x50; | ||||
|  | ||||
|         public static SubPacket BuildPacket(uint playerActorID, uint eventOwnerActorID, string eventStarter) | ||||
|         public static SubPacket BuildPacket(uint sourcePlayerActorId, uint eventOwnerActorID, string eventStarter) | ||||
|         { | ||||
|             byte[] data = new byte[PACKET_SIZE - 0x20]; | ||||
|             int maxBodySize = data.Length - 0x80; | ||||
| @@ -20,14 +20,14 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|             { | ||||
|                 using (BinaryWriter binWriter = new BinaryWriter(mem)) | ||||
|                 { | ||||
|                     binWriter.Write((UInt32)playerActorID); | ||||
|                     binWriter.Write((UInt32)sourcePlayerActorId); | ||||
|                     binWriter.Write((UInt32)0); | ||||
|                     binWriter.Write((Byte)1); | ||||
|                     binWriter.Write(Encoding.ASCII.GetBytes(eventStarter), 0, Encoding.ASCII.GetByteCount(eventStarter) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(eventStarter)); | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             return new SubPacket(OPCODE, playerActorID, playerActorID, data); | ||||
|             return new SubPacket(OPCODE, sourcePlayerActorId, data); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -13,7 +13,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|         public const ushort OPCODE = 0x012F; | ||||
|         public const uint PACKET_SIZE = 0x90; | ||||
|  | ||||
|         public static SubPacket BuildPacket(uint playerActorId, uint targetActorId, string conditionName, List<LuaParam> luaParams) | ||||
|         public static SubPacket BuildPacket(uint sourcePlayerActorId, uint targetEventActorId, string conditionName, List<LuaParam> luaParams) | ||||
|         { | ||||
|             byte[] data = new byte[PACKET_SIZE - 0x20]; | ||||
|  | ||||
| @@ -21,8 +21,8 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|             { | ||||
|                 using (BinaryWriter binWriter = new BinaryWriter(mem)) | ||||
|                 { | ||||
|                     binWriter.Write((UInt32)playerActorId); | ||||
|                     binWriter.Write((UInt32)targetActorId); | ||||
|                     binWriter.Write((UInt32)sourcePlayerActorId); | ||||
|                     binWriter.Write((UInt32)targetEventActorId); | ||||
|  | ||||
|                     int test = 0x75dc1705; //This will crash if set to 0 on pushCommand but not for mining which has to be 0???? | ||||
|                      | ||||
| @@ -36,7 +36,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             return new SubPacket(OPCODE, playerActorId, playerActorId, data); | ||||
|             return new SubPacket(OPCODE, sourcePlayerActorId, data); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|         public const ushort OPCODE = 0x0130; | ||||
|         public const uint PACKET_SIZE = 0x2B8; | ||||
|  | ||||
|         public static SubPacket BuildPacket(uint playerActorID, uint eventOwnerActorID, string eventStarter, string callFunction, List<LuaParam> luaParams) | ||||
|         public static SubPacket BuildPacket(uint sourcePlayerActorId, uint eventOwnerActorID, string eventStarter, string callFunction, List<LuaParam> luaParams) | ||||
|         { | ||||
|             byte[] data = new byte[PACKET_SIZE - 0x20]; | ||||
|             int maxBodySize = data.Length - 0x80; | ||||
| @@ -22,7 +22,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|             { | ||||
|                 using (BinaryWriter binWriter = new BinaryWriter(mem)) | ||||
|                 { | ||||
|                     binWriter.Write((UInt32)playerActorID); | ||||
|                     binWriter.Write((UInt32)sourcePlayerActorId); | ||||
|                     binWriter.Write((UInt32)eventOwnerActorID); | ||||
|                     binWriter.Write((Byte)5); | ||||
|                     binWriter.Write(Encoding.ASCII.GetBytes(eventStarter), 0, Encoding.ASCII.GetByteCount(eventStarter) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(eventStarter)); | ||||
| @@ -34,7 +34,7 @@ namespace FFXIVClassic_Map_Server.packets.send.events | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             return new SubPacket(OPCODE, playerActorID, playerActorID, data); | ||||
|             return new SubPacket(OPCODE, sourcePlayerActorId, data); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user