mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
Changed untradeable to itemType (since it's used for bazaar as well).
This commit is contained in:
parent
83fb9badd7
commit
c9116005d6
5 changed files with 38 additions and 8 deletions
|
@ -647,7 +647,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
itemId,
|
||||
quantity,
|
||||
slot,
|
||||
isUntradeable,
|
||||
itemType,
|
||||
quality,
|
||||
durability,
|
||||
spiritBind,
|
||||
|
@ -677,7 +677,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
byte itemType = reader.GetByte(4);
|
||||
byte qualityNumber = reader.GetByte(5);
|
||||
|
||||
uint durability = reader.GetUInt32(6);
|
||||
int durability = reader.GetInt32(6);
|
||||
ushort spiritBind = reader.GetUInt16(7);
|
||||
|
||||
byte materia1 = reader.GetByte(8);
|
||||
|
@ -701,7 +701,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
return items;
|
||||
}
|
||||
|
||||
public static InventoryItem addItem(Player player, uint itemId, int quantity, byte quality, byte itemType, uint durability, ushort type)
|
||||
public static InventoryItem addItem(Player player, uint itemId, int quantity, byte quality, byte itemType, int durability, ushort type)
|
||||
{
|
||||
InventoryItem insertedItem = null;
|
||||
|
||||
|
@ -715,9 +715,9 @@ namespace FFXIVClassic_Lobby_Server
|
|||
|
||||
string query = @"
|
||||
INSERT INTO server_items
|
||||
(itemId, quality, isUntradeable, durability)
|
||||
(itemId, quality, itemType, durability)
|
||||
VALUES
|
||||
(@itemId, @quality, @isUntradeable, @durability);
|
||||
(@itemId, @quality, @itemType, @durability);
|
||||
";
|
||||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue