@Override public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) { final QuestState st = getRandomPartyMemberState(killer, -1, 3, npc); if (st != null) { st.giveItemRandomly(npc, CRIMSON_SPIDER_CLAW, 1, 0, 0.6, true); } return super.onKill(npc, killer, isSummon); }
@Override public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon) { final QuestState st = getRandomPartyMemberState(player, 1, 3, npc); if (st != null) { if (st.giveItemRandomly( npc, PRIME_MEAT, 1, PRIME_MEAT_COUNT, MOBS_MEAT.get(npc.getId()), true)) { st.setCond(2, true); } } return super.onKill(npc, player, isSummon); }
@Override public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon) { final int i; switch (npc.getId()) { case 20795: case 20797: { i = 1; break; } default: { i = 3; break; } } final QuestState st = getRandomPartyMemberState(player, -1, i, npc); if (st != null) { st.giveItemRandomly(npc, BLADE_STAKATO_FANG, 1, 0, MOBS.get(npc.getId()), true); } return super.onKill(npc, player, isSummon); }