170171172173174175176177178179180
dropItem(actor, Water_Dragon_Scale, Rnd.get(1, 2)); if(Rnd.chance(36)) { dropItem(actor, Water_Dragon_Claw, Rnd.get(1, 3)); } actor.deleteMe(); } } } private void spawnMob(int id)
318319320321322323324325326327328
if(spawn.charStoreId == charStoredId && spawn.npcId == npcId) { L2NpcInstance npc = spawn.getNPC(); if(npc != null) { npc.deleteMe(); } it.remove(); } } }
4243444546474849505152
_wait = true; _wait_timeout = System.currentTimeMillis() + DESPAWN_TIME; } if(_wait_timeout != 0 && _wait && _wait_timeout < System.currentTimeMillis()) { actor.deleteMe(); } return super.thinkActive(); } @Override
264265266267268269270271272273274
L2NpcInstance npc = spawn.getNPC(); if(curr_time - spawn.spawned_at > spawn.TimeToLive || npc == null) { if(npc != null) { npc.deleteMe(); } Spawn_List.remove(spawn); } } }
2425262728293031323334
protected boolean thinkActive() { L2NpcInstance actor = getActor(); if(actor != null && System.currentTimeMillis() >= TIME_TO_DIE) { actor.deleteMe(); return false; } return super.thinkActive(); } }
175176177178179180181182183184185
else if(event.equalsIgnoreCase("Wait1") || event.equalsIgnoreCase("Chest")) { L2NpcInstance isQuest = L2ObjectsStorage.getByNpcId(Chest); if(isQuest != null) { isQuest.deleteMe(); } QuestTimer timer = st.getQuestTimer("Wait1"); if(timer != null) { timer.cancel();
8586878889909192939495
st.playSound(SOUND_GIVEUP); } else if(event.equalsIgnoreCase("suki_timer")) { L2NpcInstance n = findNpc(SUKI, player); n.deleteMe(); htmltext = null; } return htmltext; }