darkpele Posted March 15, 2009 Posted March 15, 2009 I created a item that summon NPC, but when I use item the NPC spawn until the next restart. I need the NPC would be deleted in specific time. A friend told me that use this script in core for delete NPC, but i dont know where must put and i think is incomplete: // Por Creado Ashitaka e Implementado por Eggo static class DespawnTask implements Runnable { L2Spawn spawnedNPC = null; public DespawnTask(L2Spawn spawn) { spawnedNPC = spawn; } public void run() { try { spawnedNPC.getLastSpawn().decayMe(); } catch (Throwable t){} } } // and this: ThreadPoolManager.getInstance().scheduleGeneral(new DespawnTask(spawn), 600000); Someone can help me? Thanks Sorry for my english
Question
darkpele
I created a item that summon NPC, but when I use item the NPC spawn until the next restart.
I need the NPC would be deleted in specific time.
A friend told me that use this script in core for delete NPC, but i dont know where must put and i think is incomplete:
and this:
Someone can help me?
Thanks
Sorry for my english
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now