mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
Events are now pushed onto a stack and popped off. Turns out multiple events *CAN* happen. Fixed quantity bugs when saving to DB. Fixed buying stacks.
This commit is contained in:
parent
08c5980b22
commit
a9d4e621e3
7 changed files with 38 additions and 58 deletions
|
@ -1624,9 +1624,9 @@ namespace FFXIVClassic_Map_Server
|
|||
|
||||
string query = @"
|
||||
INSERT INTO server_items
|
||||
(itemId, quality)
|
||||
(itemId, quantity, quality)
|
||||
VALUES
|
||||
(@itemId, @quality);
|
||||
(@itemId, @quantity, @quality);
|
||||
";
|
||||
|
||||
string query2 = @"
|
||||
|
@ -1638,6 +1638,7 @@ namespace FFXIVClassic_Map_Server
|
|||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
cmd.Parameters.AddWithValue("@itemId", itemId);
|
||||
cmd.Parameters.AddWithValue("@quantity", quantity);
|
||||
cmd.Parameters.AddWithValue("@quality", quality);
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue