I've got a custom boss engine and whenever boss dies it uses this method:
publicvoiddelete(){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(newRunnable(){@Overridepublicvoid 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.
🔥 The Grand Opening Day is Here!
⏳ In just a few hours, the gates will open and the war between ⚔️ Order and 💀 Chaos will erupt.
🏰 Two factions. One realm. Only the strongest will rise.
👑 Will you be the one to claim the throne?
📝 Register now : https://l2ovc.com/register
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