mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Implement water ballon game.
This commit is contained in:
parent
79b4b76c5d
commit
c8d6ec630a
4 changed files with 50 additions and 49 deletions
|
@ -1592,20 +1592,30 @@ namespace HISP.Server
|
|||
return count;
|
||||
}
|
||||
}
|
||||
|
||||
public static void EradicateItemFromExistance(int itemId)
|
||||
public static void DeleteAllDroppedItemsWithId(int itemId)
|
||||
{
|
||||
using (MySqlConnection db = new MySqlConnection(ConnectionString))
|
||||
{
|
||||
db.Open();
|
||||
|
||||
MySqlCommand sqlCommand = db.CreateCommand();
|
||||
sqlCommand.CommandText = "DELETE FROM Inventory WHERE itemId=@itemId";
|
||||
sqlCommand.CommandText = "DELETE FROM DroppedItems WHERE itemId=@itemId";
|
||||
sqlCommand.Parameters.AddWithValue("@itemId", itemId);
|
||||
sqlCommand.Prepare();
|
||||
sqlCommand.ExecuteNonQuery();
|
||||
|
||||
sqlCommand = db.CreateCommand();
|
||||
sqlCommand.CommandText = "DELETE FROM DroppedItems WHERE itemId=@itemId";
|
||||
sqlCommand.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public static void DeleteAllItemsFromUsers(int itemId)
|
||||
{
|
||||
using (MySqlConnection db = new MySqlConnection(ConnectionString))
|
||||
{
|
||||
db.Open();
|
||||
|
||||
MySqlCommand sqlCommand = db.CreateCommand();
|
||||
sqlCommand.CommandText = "DELETE FROM Inventory WHERE itemId=@itemId";
|
||||
sqlCommand.Parameters.AddWithValue("@itemId", itemId);
|
||||
sqlCommand.Prepare();
|
||||
sqlCommand.ExecuteNonQuery();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue