Code:
// summons all the bots
public static void summonWholeHotel(int _Rank, bool includeHigher, string Data)
{
try
{
{
foreach (virtualBot roomBot in Room._Bots.Values)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
if (_Rank < 7)
{
int roomname;
int bots;
roomname = dbClient.getInt("SELECT name FROM rooms WHERE id = '" + _roomID + "'");
bots = dbClient.getInt("SELECT name FROM bots WHERE id = '" + _bots + "'");
Room.sendSaying(roomUser, "*Summonas all " + bots + " to " + roomname + " [" + _roomID + "]*");
User.sendData("D^" + "H" + Encoding.encodeVL64(roomname));
}
}
}
}
}
catch { }
} // end the summoning void.