/**
* @author eKo
*
*/
public class ViP implements IItemHandler
{
private static final int[] ITEM_IDS = { itemID };
public void useItem(L2PlayableInstance playable, L2ItemInstance item)
{
if (!(playable instanceof L2PcInstance))
return;
L2PcInstance activeChar = (L2PcInstance)playable;
int itemId = item.getItemId();
if (itemId == itemID)
{
L2Skill sk = SkillTable.getInstance().getInfo(/*skill id*/, /*skill lvl*/);
activeChar.addSkill(sk, true);
}
}
public int[] getItemIds()
{
return ITEM_IDS;
}
}
so it would be like this... (if correct say it and lock the topic.) also (where do i put that code?)