Exemplo n.º 1
0
  @Override
  public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) {
    QuestState st = checkPlayerCondition(player, npc, "cond", "1");
    if (st == null) return null;

    if (st.dropItems(POISON_SAC, 1, 1, 200000)) st.set("cond", "2");

    return null;
  }
  @Override
  public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) {
    QuestState st = checkPlayerCondition(player, npc, "cond", "1");
    if (st == null) return null;

    st.dropItems(ARTICLE_DEAD_HERO, 1, 0, CHANCES.get(npc.getNpcId()));

    return null;
  }
Exemplo n.º 3
0
  @Override
  public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) {
    L2PcInstance partyMember = getRandomPartyMember(player, npc, "1");
    if (partyMember == null) return null;

    QuestState st = partyMember.getQuestState(qn);

    if (st.dropItems(CURSED_GRAVE_GOODS, 1, 180, 750000)) st.set("cond", "2");

    return null;
  }
Exemplo n.º 4
0
  @Override
  public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) {
    // Drop tooth or light to anyone.
    L2PcInstance partyMember = getRandomPartyMemberState(player, npc, STATE_STARTED);
    if (partyMember == null) return null;

    QuestState st = partyMember.getQuestState(qn);

    st.dropItems(
        (npc.getNpcId() == CAVE_BEAST) ? CAVE_BEAST_TOOTH : DEATH_WAVE_LIGHT, 1, 65, 500000);

    // Drop sealed mysterious stone to party member who still need it.
    partyMember = getRandomPartyMember(player, npc, "condStone", "1");
    if (partyMember == null) return null;

    st = partyMember.getQuestState(qn);

    if (st.dropItems(SEALED_MYSTERIOUS_STONE, 1, 1, 1000)) st.unset("condStone");

    return null;
  }