Fix bugs and more bugs

This commit is contained in:
SilicaAndPina 2021-02-28 00:39:51 +13:00
parent 14f9a5b379
commit 26d24c1113
5 changed files with 59 additions and 15 deletions

View file

@ -3919,6 +3919,20 @@ namespace HISP.Server
}
}
public static int GetDroppedItemsCount()
{
using (MySqlConnection db = new MySqlConnection(ConnectionString))
{
db.Open();
MySqlCommand sqlCommand = db.CreateCommand();
sqlCommand.CommandText = "SELECT COUNT(1) FROM DroppedItems";
sqlCommand.Prepare();
int count = Convert.ToInt32(sqlCommand.ExecuteScalar());
sqlCommand.Dispose();
return count;
}
}
public static int GetNpcStartPoint(int playerId, int npcId)
{
using (MySqlConnection db = new MySqlConnection(ConnectionString))