}
@Override
public String onKill(NpcInstance npc, QuestState st)
{
TIntIntHashMap moblist = new TIntIntHashMap();
if ((npc == null) || (st == null))
{
return null;
}
int cond = st.getCond();
if ((cond >= 2) && (cond < 9))
{
int ONE = st.getInt("one");
int TWO = st.getInt("two");
int THREE = st.getInt("three");
int FOUR = st.getInt("four");
int FIVE = st.getInt("five");
int SIX = st.getInt("six");
int SEVEN = st.getInt("seven");
int EIGHT = st.getInt("eight");
if ((npc.getNpcId() == 25837) && (cond == 2))
{
ONE++;
st.set("one", String.valueOf(ONE));
st.setCond(3);
st.playSound("ItemSound.quest_middle");
}
else if ((npc.getNpcId() == 25840) && (cond == 3))
{
TWO++;
st.set("two", String.valueOf(TWO));
st.setCond(4);
st.playSound("ItemSound.quest_middle");
}
else if ((npc.getNpcId() == 25843) && (cond == 4))
{
THREE++;
st.set("three", String.valueOf(THREE));
st.setCond(5);
st.playSound("ItemSound.quest_middle");
}
else if ((npc.getNpcId() == 25841) && (cond == 5))
{
FOUR++;
st.set("four", String.valueOf(FOUR));
st.setCond(6);
st.playSound("ItemSound.quest_middle");
}
if (cond == 6)
{
if (npc.getNpcId() == 25838)
{
FIVE++;
st.set("five", String.valueOf(FIVE));
}
else if (npc.getNpcId() == 25839)
{
SIX++;
st.set("six", String.valueOf(SIX));
}
if ((FIVE > 0) && (SIX > 0))
{
st.setCond(7);
st.playSound("ItemSound.quest_middle");
}
}
else if ((npc.getNpcId() == 25846) && (cond == 7))
{
SEVEN++;
st.set("seven", String.valueOf(SEVEN));
st.setCond(8);
st.playSound("ItemSound.quest_middle");
}
else if ((npc.getNpcId() == 25824) && (cond == 8))
{
EIGHT++;
st.set("eight", String.valueOf(EIGHT));
st.setCond(9);
st.playSound("ItemSound.quest_middle");
}
moblist.put(25837, ONE);
moblist.put(25840, TWO);
moblist.put(25845, THREE);
moblist.put(25841, FOUR);
moblist.put(25838, FIVE);
moblist.put(25839, SIX);
moblist.put(25846, SEVEN);
moblist.put(25825, EIGHT);
}
return null;
}