* Method updateStatusDb.
* @param id int
*/
private void updateStatusDb(int id)
{
Spawner spawner = _spawntable.get(id);
if (spawner == null)
{
return;
}
StatsSet info = _storedInfo.get(id);
if (info == null)
{
_storedInfo.put(id, info = new StatsSet());
}
NpcInstance raidboss = spawner.getFirstSpawned();
if (raidboss instanceof ReflectionBossInstance)
{
return;
}
if (raidboss != null)
{
info.set("current_hp", raidboss.getCurrentHp());
info.set("current_mp", raidboss.getCurrentMp());
info.set("respawn_delay", 0);
}
else
{
info.set("current_hp", 0);
info.set("current_mp", 0);
info.set("respawn_delay", spawner.getRespawnTime());
}
Connection con = null;
PreparedStatement statement = null;
try
{