This is to seperate, for example; Abyssal Vine Whip.
Difficulty 0.5/10
ItemOptionsHandler HandleItemOption3
Code:
if (itemId == #####) {
player.getInventory().deleteItem(#####, ##);
player.getInventory().addItem(#####, ##);
player.getInventory().addItem(#####, ##);
player.getPackets().sendGameMessage("You seperate the ITEMNAME from the ITEMNAME.");
return;
}
If you don't have Abyssal Vine Whip creation, add this to;
ItemOptionsHandler HandleItemonItem
Code:
if (itemId == ##### && UsedWithId == #####) {
player.getInventory().deleteItem(#####, ##);
player.getInventory().deleteItem(#####, ##);
player.getInventory().addItem(#####, ##);
player.getPackets().sendGameMessage("You wrap the whip vine around your abyssal whip and create an abyssal vine whip.");
return;
}
NOTE: You can use this for godsword creation, spirit shield creation, and much more.
I only recommend these methods for people starting out or those who are just learning about ItemOptionsHandler.