{
if(!checkPlayers(pkilled, pkiller))
{
return;
}
QuestState st = pkiller.getQuestState(q.getClass());
if(st == null)
{
st = q.newQuestState(pkiller, Quest.CREATED);
}
if(st.getState() == CREATED || st.getState() == COMPLETED && st.getInt("doneDate") != Calendar.getInstance().get(Calendar.DAY_OF_YEAR))
{
st.setState(STARTED);
st.setCond(1);
st.set("max", Rnd.get(RANDOM_MIN, RANDOM_MAX));
st.set("kill", 0);
st.addNotifyOfPlayerKill();
}
}