mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
Added the two new datatypes to get the inventory commands to parse properly.
This commit is contained in:
parent
69b34fdce7
commit
1f3cd8eaf3
5 changed files with 93 additions and 15 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue