mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Added the two new datatypes to get the inventory commands to parse properly.
This commit is contained in:
@@ -509,7 +509,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
uint uniqueId = reader.GetUInt32(0);
|
||||
uint itemId = reader.GetUInt32(1);
|
||||
int quantity = reader.GetInt32(2);
|
||||
uint slot = reader.GetUInt32(3);
|
||||
ushort slot = reader.GetUInt16(3);
|
||||
|
||||
bool isUntradeable = reader.GetBoolean(4);
|
||||
byte qualityNumber = reader.GetByte(5);
|
||||
@@ -576,7 +576,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
cmd.Parameters.AddWithValue("@durability", durability);
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
insertedItem = new Item((uint)cmd.LastInsertedId, itemId, quantity, (uint)player.inventories[type].getNextEmptySlot(), isUntradeable, quality, durability, 0, 0, 0, 0, 0, 0);
|
||||
insertedItem = new Item((uint)cmd.LastInsertedId, itemId, quantity, (ushort)player.inventories[type].getNextEmptySlot(), isUntradeable, quality, durability, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{ Console.WriteLine(e); }
|
||||
|
Reference in New Issue
Block a user