@Override
public String onKill(NpcInstance npc, QuestState st)
{
if (st.getCond() == 1)
{
int idx = ArrayUtils.indexOf(Mobs, npc.getId());
if (idx == ArrayUtils.INDEX_NOT_FOUND)
return null;
if (!st.checkBits(idx))
{
st.setBits(true, true, idx);
st.giveItems(LargeDragonSkull, 1);
if (st.getItemsCount(LargeDragonSkull) >= 7)
{
st.setCond(2);
st.playSound(SOUND_MIDDLE);
}
else
st.playSound(SOUND_ITEMGET);
}
}
return null;
}