else if (event.equalsIgnoreCase("use_staff"))
{
if (st.getQuestItemsCount(StaffofBlessing) > 0)
{
st.takeAllItems(StaffofBlessing);
player.broadcastPacket(new EventTrigger(21100206, false));
removeInvincibility(player, 18953);
return null;
}
htmltext = "powerful_q10295_0.htm";
}
else if (event.equalsIgnoreCase("use_book"))
{
if (st.getQuestItemsCount(ScrollofAbstinence) > 0)
{
st.takeAllItems(ScrollofAbstinence);
player.broadcastPacket(new EventTrigger(21100200, false));
removeInvincibility(player, 18954);
return null;
}
htmltext = "powerful_q10295_0.htm";
}
else if (event.equalsIgnoreCase("use_sword"))
{
if (st.getQuestItemsCount(SwordofHolySpirit) > 0)
{
st.takeAllItems(SwordofHolySpirit);
player.broadcastPacket(new EventTrigger(21100204, false));
removeInvincibility(player, 18955);
return null;
}
htmltext = "powerful_q10295_0.htm";
}
else if (event.equalsIgnoreCase("use_shield"))
{
if (st.getQuestItemsCount(ShieldofSacrifice) > 0)
{
st.takeAllItems(ShieldofSacrifice);
player.broadcastPacket(new EventTrigger(21100202, false));
removeInvincibility(player, 18952);
return null;
}
htmltext = "powerful_q10295_0.htm";
}