L2ItemInstance weapon = st.getPlayer().getActiveWeaponInstance();
if(npcId == 27003 && st.getQuestItemsCount(WAND_SPIRITBOUND1) == 0)
{
st.getPlayer().getInventory().destroyItem(weapon, 1, false);
st.giveItems(WAND_SPIRITBOUND1, 1);
st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
if(Collect == 3)
{
st.set("cond", "3");
st.playSound(SOUND_MIDDLE);
}
else
{
st.playSound(SOUND_ITEMGET);
}
}
else if(npcId == 27004 && st.getQuestItemsCount(WAND_SPIRITBOUND2) == 0)
{
st.getPlayer().getInventory().destroyItem(weapon, 1, false);
st.giveItems(WAND_SPIRITBOUND2, 1);
st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
if(Collect == 3)
{
st.set("cond", "3");
st.playSound(SOUND_MIDDLE);
}
else
{
st.playSound(SOUND_ITEMGET);
}
}
else if(npcId == 27005 && st.getQuestItemsCount(WAND_SPIRITBOUND3) == 0)
{
st.getPlayer().getInventory().destroyItem(weapon, 1, false);
st.giveItems(WAND_SPIRITBOUND3, 1);
st.getPlayer().sendPacket(CACHE_SYSMSG_GALLINS_OAK_WAND, new ItemList(st.getPlayer(), false));
long Collect = st.getQuestItemsCount(WAND_SPIRITBOUND1) + st.getQuestItemsCount(WAND_SPIRITBOUND2) + st.getQuestItemsCount(WAND_SPIRITBOUND3);
if(Collect == 3)
{
st.set("cond", "3");
st.playSound(SOUND_MIDDLE);