This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
StealthyS4m
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.
11 answers to this question
Recommended Posts