mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Fix bugs and more bugs
This commit is contained in:
parent
14f9a5b379
commit
26d24c1113
5 changed files with 59 additions and 15 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue