Jump to content

kingbing

Member
  • Content count

    26
  • Joined

  • Last visited

  1. Sup guys, im having an issue with item on item interactions, im currently using chronicscape v2 source and client. The owner said to replace InventoryOptionsHandler.java and I did this is what I changed it to: package com.rs.net.decoders.handlers; import java.util.List; import com.rs.game.npc.familiar.Familiar; import com.rs.game.npc.familiar.GiftOfSeasons; import com.rs.game.npc.pet.Pet; import com.rs.game.player.CoordsEvent; import com.rs.game.player.Equipment; import com.rs.game.player.Inventory; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.player.QuestManager.Quests; import com.rs.game.player.actions.BoxAction; import com.rs.game.player.actions.BoxAction.HunterEquipment; import com.rs.game.player.actions.Firemaking; import com.rs.game.player.actions.Fletching; import com.rs.game.player.actions.Fletching.Fletch; import com.rs.game.player.actions.GemCutting; import com.rs.game.player.actions.GemCutting.Gem; import com.rs.game.player.actions.HerbCleaning; import com.rs.game.player.actions.Herblore; import com.rs.game.player.actions.LeatherCrafting; import com.rs.game.player.actions.Summoning; import com.rs.game.player.actions.Summoning.Pouches; import com.rs.game.player.content.farming.PatchConstants; import com.rs.game.player.content.AncientEffigies; import com.rs.game.player.content.ArmourSets; import com.rs.game.player.content.ArmourSets.Sets; import com.rs.game.player.content.Burying.Bone; import com.rs.game.player.content.Dicing; import com.rs.game.player.content.FlowerGame; import com.rs.game.player.content.Foods; import com.rs.game.player.content.Magic; import com.rs.game.player.content.magic.Alchemy; import com.rs.game.player.content.magic.Enchanting; import com.rs.game.player.content.magic.Lunars; import com.rs.game.player.content.Pots; import com.rs.game.player.content.Runecrafting; import com.rs.game.player.content.SkillCapeCustomizer; import com.rs.game.player.controlers.Barrows; import com.rs.game.player.content.DwarfCannon; import com.rs.game.player.controlers.FightKiln; import com.rs.utils.SerializableFilesManager; import com.rs.game.minigames.CrystalChest; import com.rs.game.minigames.ClueScrollEasy; import com.rs.game.player.content.DiceGame; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import java.text.DecimalFormat; import com.rs.io.InputStream; import com.rs.utils.Logger; import com.rs.utils.Utils; public static void handleItemOnItem(final Player player, InputStream stream) { int itemUsedWithId = stream.readShort(); int toSlot = stream.readShortLE128(); int interfaceId = stream.readInt() >> 16; int interfaceId2 = stream.readInt() >> 16; int fromSlot = stream.readShort(); int itemUsedId = stream.readShortLE128(); if ((interfaceId2 == 747 || interfaceId2 == 662) && interfaceId == Inventory.INVENTORY_INTERFACE) { if (player.getFamiliar() != null) { player.getFamiliar().setSpecial(true); if (player.getFamiliar().getSpecialAttack() == SpecialAttack.ITEM) { if (player.getFamiliar().hasSpecialOn()) player.getFamiliar().submitSpecial(toSlot); } } return; } if (interfaceId == Inventory.INVENTORY_INTERFACE && interfaceId == interfaceId2 && !player.getInterfaceManager().containsInventoryInter()) { if (toSlot >= 28 || fromSlot >= 28) return; Item usedWith = player.getInventory().getItem(toSlot); Item itemUsed = player.getInventory().getItem(fromSlot); if (itemUsed == null || usedWith == null || itemUsed.getId() != itemUsedId || usedWith.getId() != itemUsedWithId) return; player.stopAll(); if (!player.getControlerManager().canUseItemOnItem(itemUsed, usedWith)) return; Fletch fletch = Fletching.isFletching(usedWith, itemUsed); if (fletch != null) { player.getDialogueManager().startDialogue("FletchingD", fletch); return; } if (itemUsed.getId() == CrystalChest.toothHalf() && usedWith.getId() == CrystalChest.loopHalf() || itemUsed.getId() == CrystalChest.loopHalf() && usedWith.getId() == CrystalChest.toothHalf()){ CrystalChest.makeKey(player); return; } else if (itemUsed.getId() == 2368 && usedWith.getId() == 2366) { if (player.getInventory().containsItem(2366, 1) && player.getInventory().containsItem(2368, 1)) { player.getInventory().deleteItem(2366, 1); player.getInventory().deleteItem(2368, 1); player.getInventory().addItem(1187, 1); player.getPackets().sendGameMessage("You have made a Dragon sq shield!"); return; } } else if (itemUsed.getId() == 2366 && usedWith.getId() == 2368) { if (player.getInventory().containsItem(2366, 1) && player.getInventory().containsItem(2368, 1)) { player.getInventory().deleteItem(2366, 1); player.getInventory().deleteItem(2368, 1); player.getInventory().addItem(1187, 1); player.getPackets().sendGameMessage("You have made a Dragon sq shield!"); return; } } else if (itemUsed.getId() == 22448 && usedWith.getId() == 22498 || usedWith.getId() == 554) { if (player.getInventory().containsItem(22498, 1) && player.getInventory().containsItem(22448, 3000) && player.getInventory().containsItem(554, 15000)) { player.getInventory().deleteItem(22498, 1); player.getInventory().deleteItem(22448, 3000); player.getInventory().deleteItem(554, 15000); player.getInventory().addItem(22494, 1); player.getPackets().sendGameMessage("You made a Polypore staff!"); return; } } else if (itemUsed.getId() == 22451 && usedWith.getId() == 22456) { if (player.getInventory().containsItem(22451, 5000) && player.getInventory().containsItem(22456, 1)) { player.getInventory().deleteItem(22451, 5000); player.getInventory().deleteItem(22456, 1); player.getInventory().addItem(22490, 1); player.getPackets().sendGameMessage("You have made a Ganodermic poncho!"); return; } } else if (itemUsed.getId() == 22451 && usedWith.getId() == 22454) { if (player.getInventory().containsItem(22451, 1500) && player.getInventory().containsItem(22454, 1)) { player.getInventory().deleteItem(22451, 1500); player.getInventory().deleteItem(22454, 1); player.getInventory().addItem(22486, 1); player.getPackets().sendGameMessage("You have made a Ganodermic leggings!"); return; } } else if (itemUsed.getId() == 22451 && usedWith.getId() == 22452) { if (player.getInventory().containsItem(22451, 500) && player.getInventory().containsItem(22452, 1)) { player.getInventory().deleteItem(22451, 500); player.getInventory().deleteItem(22452, 1); player.getInventory().addItem(22482, 1); player.getPackets().sendGameMessage("You have made a Ganodermic visor!"); return; } } else if (itemUsed.getId() == 22450 && usedWith.getId() == 22456) { if (player.getInventory().containsItem(22450, 3500) && player.getInventory().containsItem(22456, 1)) { player.getInventory().deleteItem(22450, 3500); player.getInventory().deleteItem(22456, 1); player.getInventory().addItem(22478, 1); player.getPackets().sendGameMessage("You have made a Grifolic poncho!"); return; } } else if (itemUsed.getId() == 22450 && usedWith.getId() == 22454) { if (player.getInventory().containsItem(22450, 1200) && player.getInventory().containsItem(22454, 1)) { player.getInventory().deleteItem(22450, 1200); player.getInventory().deleteItem(22454, 1); player.getInventory().addItem(22474, 1); player.getPackets().sendGameMessage("You have made a Grifolic leggings!"); return; } } else if (itemUsed.getId() == 22450 && usedWith.getId() == 22452) { if (player.getInventory().containsItem(22450, 400) && player.getInventory().containsItem(22452, 1)) { player.getInventory().deleteItem(22450, 400); player.getInventory().deleteItem(22452, 1); player.getInventory().addItem(22470, 1); player.getPackets().sendGameMessage("You have made a Grifolic visor!"); return; } } else if (itemUsed.getId() == 22449 && usedWith.getId() == 22456) { if (player.getInventory().containsItem(22449, 2500) && player.getInventory().containsItem(22456, 1)) { player.getInventory().deleteItem(22449, 2500); player.getInventory().deleteItem(22456, 1); player.getInventory().addItem(22466, 1); player.getPackets().sendGameMessage("You have made a Fungal poncho!"); return; } } else if (itemUsed.getId() == 22449 && usedWith.getId() == 22454) { if (player.getInventory().containsItem(22449, 1000) && player.getInventory().containsItem(22454, 1)) { player.getInventory().deleteItem(22449, 1000); player.getInventory().deleteItem(22454, 1); player.getInventory().addItem(22462, 1); player.getPackets().sendGameMessage("You have made a Fungal leggings!"); return; } } else if (itemUsed.getId() == 22449 && usedWith.getId() == 22452) { if (player.getInventory().containsItem(22449, 300) && player.getInventory().containsItem(22452, 1)) { player.getInventory().deleteItem(22449, 300); player.getInventory().deleteItem(22452, 1); player.getInventory().addItem(22458, 1); player.getPackets().sendGameMessage("You have made a Fungal visor!"); return; } } else if (itemUsed.getId() == 806 && usedWith.getId() == 187) { if (player.getInventory().containsItem(806, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(806, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(812, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Bronze darts."); return; } } else if (itemUsed.getId() == 807 && usedWith.getId() == 187) { if (player.getInventory().containsItem(807, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(807, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(813, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Iron darts."); return; } } else if (itemUsed.getId() == 808 && usedWith.getId() == 187) { if (player.getInventory().containsItem(808, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(808, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(814, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Steel darts."); return; } } else if (itemUsed.getId() == 809 && usedWith.getId() == 187) { if (player.getInventory().containsItem(809, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(809, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(815, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Mithril darts."); return; } } else if (itemUsed.getId() == 810 && usedWith.getId() == 187) { if (player.getInventory().containsItem(810, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(810, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(816, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Adamant darts."); return; } } else if (itemUsed.getId() == 811 && usedWith.getId() == 187) { if (player.getInventory().containsItem(811, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(811, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(817, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Rune darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 806) { if (player.getInventory().containsItem(806, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(806, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(812, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Bronze darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 807) { if (player.getInventory().containsItem(807, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(807, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(813, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Iron darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 808) { if (player.getInventory().containsItem(808, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(808, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(814, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Steel darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 809) { if (player.getInventory().containsItem(809, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(809, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(815, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Mithril darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 810) { if (player.getInventory().containsItem(810, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(810, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(816, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Adamant darts."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 811) { if (player.getInventory().containsItem(811, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(811, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(817, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Rune darts."); return; } } else if (itemUsed.getId() == 825 && usedWith.getId() == 187) { if (player.getInventory().containsItem(825, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(825, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(831, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Bronze javelins."); return; } } else if (itemUsed.getId() == 826 && usedWith.getId() == 187) { if (player.getInventory().containsItem(826, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(826, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(832, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Iron javelins."); return; } } else if (itemUsed.getId() == 827 && usedWith.getId() == 187) { if (player.getInventory().containsItem(827, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(827, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(833, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Steel javelins."); return; } } else if (itemUsed.getId() == 828 && usedWith.getId() == 187) { if (player.getInventory().containsItem(828, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(828, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(834, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Mithril javelins."); return; } } else if (itemUsed.getId() == 829 && usedWith.getId() == 187) { if (player.getInventory().containsItem(829, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(829, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(835, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Adamant javelins."); return; } } else if (itemUsed.getId() == 830 && usedWith.getId() == 187) { if (player.getInventory().containsItem(830, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(830, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(836, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Rune javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 825) { if (player.getInventory().containsItem(825, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(825, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(831, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Bronze javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 826) { if (player.getInventory().containsItem(826, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(826, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(832, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Iron javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 827) { if (player.getInventory().containsItem(827, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(827, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(833, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Steel javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 828) { if (player.getInventory().containsItem(828, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(828, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(834, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Mithril javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 829) { if (player.getInventory().containsItem(829, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(829, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(835, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Adamant javelins."); return; } } else if (itemUsed.getId() == 187 && usedWith.getId() == 830) { if (player.getInventory().containsItem(830, 15) && player.getInventory().containsItem(187, 1)) { player.getInventory().deleteItem(830, 15); player.getInventory().deleteItem(187, 1); player.getInventory().addItem(836, 15); player.getInventory().addItem(229, 1); player.getPackets().sendGameMessage("You have poisoned the Rune javelins."); return; } } else if (itemUsed.getId() == 9007 && usedWith.getId() == 9008) { if (player.getInventory().containsItem(9007, 1) && player.getInventory().containsItem(9008, 1)) { player.getInventory().deleteItem(9007, 1); player.getInventory().deleteItem(9008, 1); player.getInventory().addItem(9009, 1); player.getPackets().sendGameMessage("You attach the two skull sides to make the Strange skull."); return; } } else if (itemUsed.getId() == 9010 && usedWith.getId() == 9011) { if (player.getInventory().containsItem(9010, 1) && player.getInventory().containsItem(9011, 1)) { player.getInventory().deleteItem(9010, 1); player.getInventory().deleteItem(9011, 1); player.getInventory().addItem(9012, 1); player.getPackets().sendGameMessage("You attach the top and bottom sceptre halves to make a Runed sceptre."); return; } } else if (itemUsed.getId() == 9009 && usedWith.getId() == 9012) { if (player.getInventory().containsItem(9009, 1) && player.getInventory().containsItem(9012, 1)) { player.getInventory().deleteItem(9009, 1); player.getInventory().deleteItem(9012, 1); player.getInventory().addItem(9013, 1); player.getPackets().sendGameMessage("You attach the Strange skull to the Runed sceptre to make a Skull sceptre."); return; } } else if (itemUsed.getId() == 9008 && usedWith.getId() == 9007) { if (player.getInventory().containsItem(9007, 1) && player.getInventory().containsItem(9008, 1)) { player.getInventory().deleteItem(9007, 1); player.getInventory().deleteItem(9008, 1); player.getInventory().addItem(9009, 1); player.getPackets().sendGameMessage("You attach the two skull sides to make the Strange skull."); return; } } else if (itemUsed.getId() == 9011 && usedWith.getId() == 9010) { if (player.getInventory().containsItem(9010, 1) && player.getInventory().containsItem(9011, 1)) { player.getInventory().deleteItem(9010, 1); player.getInventory().deleteItem(9011, 1); player.getInventory().addItem(9012, 1); player.getPackets().sendGameMessage("You attach the top and bottom sceptre halves to make a Runed sceptre."); return; } } else if (itemUsed.getId() == 9012 && usedWith.getId() == 9009) { if (player.getInventory().containsItem(9009, 1) && player.getInventory().containsItem(9012, 1)) { player.getInventory().deleteItem(9009, 1); player.getInventory().deleteItem(9012, 1); player.getInventory().addItem(9013, 1); player.getPackets().sendGameMessage("You attach the Strange skull to the Runed sceptre to make a Skull sceptre."); return; } } else if (itemUsed.getId() == 21775 && usedWith.getId() == 1391) { if (player.getInventory().containsItem(21775, 1) && player.getInventory().containsItem(1391, 1)) { player.getInventory().deleteItem(21775, 1); player.getInventory().deleteItem(1391, 1); player.getInventory().addItem(21777, 1); player.getPackets().sendGameMessage("You attach the Orb of Armadyl to the Battlestaff to make an Armadyl Battlestaff!"); return; } } else if (itemUsed.getId() == 1391 && usedWith.getId() == 21775) { if (player.getInventory().containsItem(21775, 1) && player.getInventory().containsItem(1391, 1)) { player.getInventory().deleteItem(21775, 1); player.getInventory().deleteItem(1391, 1); player.getInventory().addItem(21777, 1); player.getPackets().sendGameMessage("You attach the Orb of Armadyl to the Battlestaff to make an Armadyl Battlestaff!"); return; } } else if (itemUsed.getId() == 11710 && usedWith.getId() == 11712 || usedWith.getId() == 11714) { if (player.getInventory().containsItem(11710, 1) && player.getInventory().containsItem(11712, 1) && player.getInventory().containsItem(11714, 1)) { player.getInventory().deleteItem(11710, 1); player.getInventory().deleteItem(11712, 1); player.getInventory().deleteItem(11714, 1); player.getInventory().addItem(11690, 1); player.getPackets().sendGameMessage("You made a godsword blade."); return; } } else if (itemUsed.getId() == 11690 && usedWith.getId() == 11702) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(11702, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(11702, 1); player.getInventory().addItem(11694, 1); player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Armadyl godsword."); return; } } else if (itemUsed.getId() == 11690 && usedWith.getId() == 11704) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(11704, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(11704, 1); player.getInventory().addItem(11696, 1); player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Bandos godsword."); return; } } else if (itemUsed.getId() == 11690 && usedWith.getId() == 11706) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(11706, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(11706, 1); player.getInventory().addItem(11698, 1); player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Saradomin godsword."); return; } } else if (itemUsed.getId() == 11690 && usedWith.getId() == 11708) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(11708, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(11708, 1); player.getInventory().addItem(11700, 1); player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Zamorak godsword."); return; } } int herblore = Herblore.isHerbloreSkill(itemUsed, usedWith); if (herblore > -1) { player.getDialogueManager().startDialogue("HerbloreD", herblore, itemUsed, usedWith); return; } if (itemUsed.getId() == LeatherCrafting.NEEDLE.getId() || usedWith.getId() == LeatherCrafting.NEEDLE.getId()) { if (LeatherCrafting .handleItemOnItem(player, itemUsed, usedWith)) { return; } } Sets set = ArmourSets.getArmourSet(itemUsedId, itemUsedWithId); if (set != null) { ArmourSets.exchangeSets(player, set); return; } if (Firemaking.isFiremaking(player, itemUsed, usedWith)) return; else if (contains(1755, Gem.OPAL.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.OPAL); else if (contains(1755, Gem.JADE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.JADE); else if (contains(1755, Gem.RED_TOPAZ.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.RED_TOPAZ); else if (contains(1755, Gem.MYRE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.MYRE); else if (contains(1755, Gem.OCHRE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.OCHRE); else if (contains(1755, Gem.BRUISE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.BRUISE); else if (contains(1755, Gem.BROKEN.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.BROKEN); else if (contains(1755, Gem.BLOOD.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.BLOOD); else if (contains(1755, Gem.MYREB.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.MYREB); else if (contains(1755, Gem.OCHREB.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.OCHREB); else if (contains(1755, Gem.BRUISEB.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.BRUISEB); else if (contains(1755, Gem.BLOODB.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.BLOODB); else if (contains(1755, Gem.SAPPHIREBOLTS.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.SAPPHIREBOLTS); else if (contains(1755, Gem.EMERALDBOLTS.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.EMERALDBOLTS); else if (contains(1755, Gem.RUBYBOLTS.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.RUBYBOLTS); else if (contains(1755, Gem.DIAMONDBOLTS.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.DIAMONDBOLTS); else if (contains(1755, Gem.DRAGONSTONEBOLTS.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.DRAGONSTONEBOLTS); else if (contains(1755, Gem.SAPPHIRE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.SAPPHIRE); else if (contains(1755, Gem.EMERALD.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.EMERALD); else if (contains(1755, Gem.RUBY.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.RUBY); else if (contains(1755, Gem.DIAMOND.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.DIAMOND); else if (contains(1755, Gem.DRAGONSTONE.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.DRAGONSTONE); else if (itemUsed.getId() == 21369 && usedWith.getId() == 4151){ player.getInventory().deleteItem(21369, 1); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(21371, 1); player.getPackets().sendGameMessage("Good job, you have succesfully combined a whip and vine into a vine whip."); } else if (itemUsed.getId() == 4151 && usedWith.getId() == 21369){ player.getInventory().deleteItem(21369, 1); player.getInventory().deleteItem(4151, 1); player.getInventory().addItem(21371, 1); player.getPackets().sendGameMessage("Good job, you have succesfully combined a whip and vine into a vine whip."); } else if (itemUsed.getId() == 13734 && usedWith.getId() == 13754){ player.getInventory().deleteItem(13734, 1); player.getInventory().deleteItem(13754, 1); player.getInventory().addItem(13736, 1); player.getPackets().sendGameMessage("You have poured the holy elixir on a spirit shield making it unleash Blessed powers."); } else if (itemUsed.getId() == 13754 && usedWith.getId() == 13734){ player.getInventory().deleteItem(13734, 1); player.getInventory().deleteItem(13754, 1); player.getInventory().addItem(13736, 1); player.getPackets().sendGameMessage("You have poured the holy elixir on a spirit shield making it unleash Blessed powers."); } else if (itemUsed.getId() == 13736 && usedWith.getId() == 13748){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13748, 1); player.getInventory().addItem(13740, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Divine Powers."); } else if (itemUsed.getId() == 13736 && usedWith.getId() == 13750){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13750, 1); player.getInventory().addItem(13742, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Elysian Powers."); } else if (itemUsed.getId() == 13736 && usedWith.getId() == 13746){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13746, 1); player.getInventory().addItem(13738, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Arcane Powers."); } else if (itemUsed.getId() == 13746 && usedWith.getId() == 13736){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13746, 1); player.getInventory().addItem(13738, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Arcane Powers."); } else if (itemUsed.getId() == 13736 && usedWith.getId() == 13752){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13752, 1); player.getInventory().addItem(13744, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Spectral Powers."); } else if (itemUsed.getId() == 13752 && usedWith.getId() == 13736){ player.getInventory().deleteItem(13736, 1); player.getInventory().deleteItem(13752, 1); player.getInventory().addItem(13744, 1); player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Spectral Powers."); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 4087){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(4087, 1); player.getInventory().addItem(24363, 1); player.getPackets().sendGameMessage("You create Dragonbone platelegs!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 4585){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(4585, 1); player.getInventory().addItem(24364, 1); player.getPackets().sendGameMessage("You create Dragonbone plateskirt!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 14479){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(14479, 1); player.getInventory().addItem(24360, 1); player.getPackets().sendGameMessage("You create Dragonbone platebody!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 11335){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(11335, 1); player.getInventory().addItem(24359, 1); player.getPackets().sendGameMessage("You create Dragonbone full helm!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 13006){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(13006, 1); player.getInventory().addItem(24361, 1); player.getPackets().sendGameMessage("You create Dragonbone gloves!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 11732){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(11732, 1); player.getInventory().addItem(24362, 1); player.getPackets().sendGameMessage("You create Dragonbone boots!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 6918){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(6918, 1); player.getInventory().addItem(24354, 1); player.getPackets().sendGameMessage("You create Dragonbone mage hat!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 6916){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(6916, 1); player.getInventory().addItem(24355, 1); player.getPackets().sendGameMessage("You create Dragonbone mage top!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 6924){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(6924, 1); player.getInventory().addItem(24356, 1); player.getPackets().sendGameMessage("You create Dragonbone mage bottoms!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 6922){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(6922, 1); player.getInventory().addItem(24357, 1); player.getPackets().sendGameMessage("You create Dragonbone mage gloves!"); } else if (itemUsed.getId() == 24352 && usedWith.getId() == 6920){ player.getInventory().deleteItem(24352, 1); player.getInventory().deleteItem(6920, 1); player.getInventory().addItem(24358, 1); player.getPackets().sendGameMessage("You create Dragonbone mage boots!"); } else if (itemUsed.getId() == 25312 && usedWith.getId() == 24365){ player.getInventory().deleteItem(25312, 1); player.getInventory().deleteItem(24365, 1); player.getInventory().addItem(25320, 1); player.getPackets().sendGameMessage("You create Dragon kiteshield (or)!"); } else if (itemUsed.getId() == 19346 && usedWith.getId() == 11335){ player.getInventory().deleteItem(19346, 1); player.getInventory().deleteItem(11335, 1); player.getInventory().addItem(19336, 1); player.getPackets().sendGameMessage("You create Dragon full helm (or)!"); } else if (itemUsed.getId() == 19350 && usedWith.getId() == 14479){ player.getInventory().deleteItem(19350, 1); player.getInventory().deleteItem(14479, 1); player.getInventory().addItem(19337, 1); player.getPackets().sendGameMessage("You create Dragonbone platebody (or)!"); } else if (itemUsed.getId() == 19348 && usedWith.getId() == 4087){ player.getInventory().deleteItem(19348, 1); player.getInventory().deleteItem(4087, 1); player.getInventory().addItem(19338, 1); player.getPackets().sendGameMessage("You create Dragon platelegs (or)!"); } else if (itemUsed.getId() == 19348 && usedWith.getId() == 4585){ player.getInventory().deleteItem(19348, 1); player.getInventory().deleteItem(4585, 1); player.getInventory().addItem(19339, 1); player.getPackets().sendGameMessage("You create Dragon plateskirt (or)!"); } else if (itemUsed.getId() == 19352 && usedWith.getId() == 1187){ player.getInventory().deleteItem(19352, 1); player.getInventory().deleteItem(1187, 1); player.getInventory().addItem(19340, 1); player.getPackets().sendGameMessage("You create Dragon sq shield (or)!"); } else if (itemUsed.getId() == 25314 && usedWith.getId() == 24365){ player.getInventory().deleteItem(25314, 1); player.getInventory().deleteItem(24365, 1); player.getInventory().addItem(25321, 1); player.getPackets().sendGameMessage("You create Dragon kiteshield (sp)!"); } else if (itemUsed.getId() == 19354 && usedWith.getId() == 11335){ player.getInventory().deleteItem(19354, 1); player.getInventory().deleteItem(11335, 1); player.getInventory().addItem(19341, 1); player.getPackets().sendGameMessage("You create Dragon full helm (sp)!"); } else if (itemUsed.getId() == 19358 && usedWith.getId() == 14479){ player.getInventory().deleteItem(19358, 1); player.getInventory().deleteItem(14479, 1); player.getInventory().addItem(19342, 1); player.getPackets().sendGameMessage("You create Dragonbone platebody (sp)!"); } else if (itemUsed.getId() == 19356 && usedWith.getId() == 4087){ player.getInventory().deleteItem(19356, 1); player.getInventory().deleteItem(4087, 1); player.getInventory().addItem(19343, 1); player.getPackets().sendGameMessage("You create Dragon platelegs (sp)!"); } else if (itemUsed.getId() == 19356 && usedWith.getId() == 4585){ player.getInventory().deleteItem(19356, 1); player.getInventory().deleteItem(4585, 1); player.getInventory().addItem(19344, 1); player.getPackets().sendGameMessage("You create Dragon plateskirt (sp)!"); } else if (itemUsed.getId() == 19360 && usedWith.getId() == 1187){ player.getInventory().deleteItem(19360, 1); player.getInventory().deleteItem(1187, 1); player.getInventory().addItem(19345, 1); player.getPackets().sendGameMessage("You create Dragon sq shield (sp)!"); } else if (contains(1755, Gem.ONYX.getUncut(), itemUsed, usedWith)) GemCutting.cut(player, Gem.ONYX); else player.getPackets().sendGameMessage( "Nothing interesting happens."); if (Settings.DEBUG) Logger.log("ItemHandler", "Used:" + itemUsed.getId() + ", With:" + usedWith.getId()); } } CAN U PLEASE REPLY NEED :)
  2. kingbing

    RuneLove 3 - 803

    nice release [COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR] [quote name='fbook2']L000L, you can not move just stands unless you use the commands coords[/QUOTE] wait so you cant move?
  3. [quote name='letifer']did u add the antileech compile?[/QUOTE] yeh already have
  4. Help im having some trouble on the Project v2 file on runserver: Launching Server... [Launcher] Initiating Cache... Exception in thread 'main' java.lang.ArrayIndexOutOfBoundsException: 19 at com.rs.utils.Utils.getItemDefinitionsSize<Utils.ja va:313> at com.rs.cache.loaders.ItemsEquipids.init<ItemEquipI ds.java:13> at cpm.rs.Launcher.main<Launcher.java:71> Press any key to continue...
  5. Help im having some trouble on the Project v2 file on runserver: Launching Server... [Launcher] Initiating Cache... Exception in thread 'main' java.lang.ArrayIndexOutOfBoundsException: 19 at com.rs.utils.Utils.getItemDefinitionsSize<Utils.java:313> at com.rs.cache.loaders.ItemsEquipids.init<ItemEquipIds.java:13> at cpm.rs.Launcher.main<Launcher.java:71> Press any key to continue...
  6. btw, how do you do that ganga lord baki thing?
  7. reupload cache .... cant download it
  8. kingbing

    718 rsps help!!!!

    OMG thnxx!! rep 4 both
  9. still same error I made the folder ad this is the location: C:\Data\Cache
  10. kingbing

    718 rsps help!!!!

    wheres that located??
  11. I was wandering how to make a server wide message when some has achieved level 99 , beat the corp, got comp cape etc Example: [COLOR="#FF0000"]KingBing Has Atleast Achieved Level 99 In All Skills[/COLOR]
  12. I can help if you want PM me i can design the website and i can code custom commands, etc
  13. idk if tht will wrk tho
×