I've got a custom boss engine and whenever boss dies it uses this method:
public void delete()
{
if (_lastSpawn == null)
{
return;
}
_lastSpawn.getLastSpawn().deleteMe();
_lastSpawn.stopRespawn();
SpawnTable.getInstance().deleteSpawn(_lastSpawn, false);
_lastSpawn = null;
setStatus(0);
setRespawnTime((System.currentTimeMillis()/1000)+((getMinutes()*60) + (randInt(0, (int)getDelay()*60))));
updateDbResp(getNpcId(), getRespawnTime()+(System.currentTimeMillis()/1000) , getStatus());
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
{
@Override
public void run()
{
doSpawn();
}
}, getRespawnTime()*1000);
Announcements.announceToAll("Mighty Boss "+getName()+" has been killed!");
}
but it doesn't drop anything,what do I have to change so it starts dropping items?I've watched other instances,but it requires instance and I just want to drop items on the ground and everyone can pick them up.
Most players play on l2j, that’s why.
But the difference is huge 🙂 .. Every admin or dev knows it’s true 😉
I dont prefer l2j, whether it’s x1 or any other type of server.
Question
StealthyS4m
I've got a custom boss engine and whenever boss dies it uses this method:
but it doesn't drop anything,what do I have to change so it starts dropping items?I've watched other instances,but it requires instance and I just want to drop items on the ground and everyone can pick them up.
11 answers to this question
Recommended Posts