Jump to content

Search the Community

Showing results for tags 'item'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 294 results

  1. Being that I spent many hours working with this, trying to figure out what exactly was the issue and why it wouldn't work, I've decided to share this information with you all so that it may save you both the time and trouble. Furthermore, because I only have seen one snippet pertinent towards item floor examining and the amount of 718 revisions+ that have ground item examining are slim to none. What was the issue? Well, as most of you are surely aware, client packets must be precise. The variables were not. NOTE: If you either used this or if this helped you in ANY way, please don't hesitate to up-vote (its FREE!) First you'll need to declare your packets+size inside WPD: Then add this under processPackets method: Inside WPE:
  2. When I change the range str of a bow and pack ,it changes the whole gear to that bonus and also doesn't add the bonuses together when I wield armour or bolts, anyone know how to fix?
  3. shershah1

    item bonuses

    Hi, i have tryd to compile my items stats with a compiler but it gives me this error: [QUOTE]error: Class names, 'com.rs.tools.ItemBonusesPacker', are only accepted if annot ation processing is explicitly requested 1 error Druk op een toets om door te gaan. . .[/QUOTE] Any answers greatly appriciated.
  4. Hello guys and girls. I am having trouble figuring out how to make an item be used as currency in a shop i made. Also, i want the same item be able to be exchanged for experience in a skill. Can anyone help me out on this?
  5. I have dumped this to my 580 cache in my grandmother computer DL Link:[URL="https://mega.co.nz/#!MpEDHb7b!Il6wSE0LVXYS5lpVl75uofFdwijUI4HoM6Xd69gCGEQ"]https://mega.co.nz/#!MpEDHb7b!Il6wSE0LVXYS5lpVl75uofFdwijUI4HoM6Xd69gCGEQ[/URL]
  6. A RuneScape Item Price Estimator Tool should be added into RuneLocus. A tool that estimates a price in game of an item. Something like the Grand Exchange should be added. Following a marketplace for items and gold that only staff can sell items on or instead of that, a whole new subscriptions shop for ranks, toplists, banners etc. Plus we should add a Webclient Builder or webpage builder? :)
  7. I'm trying to make an Npc talk along with take an item from someones inventory and exchange it for something else. With different options depending on the item you have . I understand the basic dialogue with cases and stages and options to select but how do I add in item exchange as well. I'm not talking about a shop either. I just want the npc to talk a certain way depending on which item or items you have and be able to exchange it with something else. I am new to 718 coding i'm reading all the tutorials I can and i've searched the forums and have found "item repairs and just normal dialogue and dialogue that opens up shops but not anything with dialogue with item exchange and if it is its a repair that just opens Options to select one you talk to the npc yeah that's close but that's not quite what i'm looking for lets say if you have a abyssal whip in your inventory and you want to have a different color idk i'm just throwing this out there and you talk to the npc and dialogue starts [CODE] Npc - Hello "name" I am "NpcName" I recolor whips for players! Player - Good that's why I am here! Npc - Checks which whip you have and dialogue starts depending on if you have a whip With recoloring dye or Req item Npc - Different dialogue if you have a colored whip to recolor NPC - Dialogue if you have no whip or no colored whip with you to recolor with required dye or item NPC - Dialogue if you do not have the dye or other REQ item. [/CODE] [B]If has a whip or colored whip[/B] [CODE] Player - I have this whip or *Color* whip NPC- Options Normal, Red, Blue, White, Orage, Purple - just putting options to give an example. NPC - Takes either whip or *Colored* whip and exchanges it for another color Player - Says thank you and goodbye [/CODE]
  8. Okey so i've added a custom called 'hell sword' and for some reason every shortbow (shortbow, oak shortow, willow shortbow,...) turns into the hell sword and it looks like dropped on the ground. Picture to show what i mean : [url]http://prntscr.com/6juyg6[/url]
  9. I'm trying to add p-ring for admins+ but, When I go to change the stats for pring and run itempacker, it makes every other item 0 stats, how to fix it from doing that?
  10. Hello! I am looking for a file containing RuneLocus's entire item database. Is it open to the public? If not, why not release a copy? I have been looking for an item database that contains valuable information about items and which equipment slot they pertain to, if any. Fortunately RuneLocus provides just that, but I cannot find an open source of the database. It was extremely painful to create a program with 10 worker threads to grab a substantial amount of the information I needed only to be halted because of too many connections being made. If anyone has any resources on equipment slot information they can provide, please let me know. Or, if RuneLocus does provide a copy of the database. If this is not the correct section then please feel free to either direct me or have the thread directed personally.
  11. I get this Error - "Cannot find symbol int i = Utils.getRandom(159);" It points at Utils. I feel like I've missed something really simple :palm: [code] else if(npc.getId() == 9400 && player.getTask().getSanta() == 0) { player.getPackets().sendGameMessage("Here's a present!"); player.getTask().currentSantaAmount = 1; int[] RandomItems = {995, 996, }; //Other ids go in there as well int i = Utils.getRandom(159); player.getInventory().addItem(RandomItems[i], 1);[/code]
  12. For those who still play RuneScape, as of today (Monday, December 1st 2014) you may want to check your bank account or Jagex purchases. Due to a presumed 'glitch' Jagex Treasure Hunter keys (new version of Squeal of Fortune, Jagex's Micro-transactions) were purchased automatically to a few hundred players. Most players were charged for 400 spins ($100.00) without their consent. Many of the affected users paid via bank accounts, resulting in overdraft fees and other bank fees. If you are one of those affected, contact them here. Some users believe that if you used the spins you would not be getting a refund, that is not the case however since costumers for items they did not purchase is enough grounds for a civil lawsuit. TL;DR Jagex messed up big.
  13. so for dev purposes, i wanted to know how do you make it to where when i click on something in game it gives me the id of that item in the chat box so i do what i wish with the item id, so that when my players click on that item whatever action i wish to happen will happen... using asteria 2.0 if that matters (also i want this only to happen for admins+) thanks ahead of time lacero
  14. Daedalus

    Item spawn issue

    Hey, Well I just discovered a fucked up bug, I have never seen before on my server lol Any way, I was wondering if any of you have ran into this bug before; When spawning items more than 1 of the item it doesn't show in your inventory unless you open bank, when you close bank again they disappear again, this can be repeated and still opens (though cannot dupe it) any idea in what could be causing it? This is the command script: [code] if (playerCommand.startsWith("item")) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 25000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("That item ID does not exist."); } } else { c.sendMessage("Wrong usage: (Ex:(::pickup_ID_Amount)(::item 995 1))"); } } catch(Exception e) { } }[/code] [U]Though, I have a feeling it has nothing to do with the command but the client itself. [/U]Thanks in advance.
  15. Paramore

    PvP Item Degrading

    These are my codes for vls degrading. It doesn't subtract a hit and stays at 600 all the time. Been at this for a couple hours in 5 days, as well as others trying to help me out. Yet, no one was successful. Thnkx and Rep++ if you manage to help me fix it. Pm me your skype if you're willing to help please. I know the [code]ItemAssistant.wearItemdegrade(player, 1, 3);[/code] Should be [code]ItemAssistant.wearItemdegrade(-1, 1, 3);[/code] But I get errors, help me out guys? Cmon! [code]public void degradeVls(Client player) { if (playerEquipment[Constants.HAND_SLOT] == 13899 && vlsLeft < 1) { playerEquipment[Constants.HAND_SLOT] = -1; playerEquipmentN[Constants.HAND_SLOT] = 0; ItemAssistant.wearItemdegrade(player, 1, 3); sendMessage("Your Vesta longsword crumbles to dust!"); vlsLeft = 200 + Misc.random(500); } }[/code] [code] /** * Degradable pvp armours/weapons */ public int vlsLeft = 600;[/code] [code] else if (token.equals("character-longsword")) { player.vlsLeft = Integer.parseInt(token2); } characterfile.write("character-longsword = ", 0, 22); characterfile.write(Integer.toString(player.vlsLeft), 0, Integer.toString(player.vlsLeft).length()); characterfile.newLine();[/code] Then this is my wearitem method. I think it's the method that's not letting it work. [code] public static boolean wearItem(Player player, int wearID, int slot) { synchronized(player) { int targetSlot = 0; boolean canWearItem = true; if (wearID == 5733) { if (player.isAdministrator() || player.isModerator()) { player.getDH().sendDialogues(8, 0); } return false; } if (player.playerItems[slot] == (wearID + 1)) { setItemRequirements(player, getItemName(wearID).toLowerCase(), wearID); targetSlot = targetSlot(getItemName(wearID).toLowerCase()); switch (wearID) { case 19747: case 7011: targetSlot = Constants.HEAD_SLOT; break; case 19709: case 19710: targetSlot = Constants.CAPE_SLOT; break; case 4566: case 4565: case 7671: case 7673: case 14057: targetSlot = Constants.WEAPON_SLOT; break; case 1035: case 19706: targetSlot = Constants.TORSO_SLOT; break; case 7053: targetSlot = Constants.SHIELD_SLOT; break; case 1033: targetSlot = Constants.LEG_SLOT; break; } if (player.duelRule[11] && targetSlot == Constants.HEAD_SLOT) { player.sendMessage("Wearing hats has been disabled in this duel!"); return false; } if (player.duelRule[12] && targetSlot == Constants.CAPE_SLOT) { player.sendMessage("Wearing capes has been disabled in this duel!"); return false; } if (player.duelRule[13] && targetSlot == Constants.AMULET_SLOT) { player.sendMessage("Wearing amulets has been disabled in this duel!"); return false; } if (player.duelRule[14] && targetSlot == Constants.WEAPON_SLOT) { player.sendMessage("Wielding weapons has been disabled in this duel!"); return false; } if (player.duelRule[15] && targetSlot == Constants.TORSO_SLOT) { player.sendMessage("Wearing bodies has been disabled in this duel!"); return false; } if ((player.duelRule[16] && targetSlot == Constants.SHIELD_SLOT) || (player.duelRule[16] && is2handed(getItemName(wearID).toLowerCase(), wearID))) { player.sendMessage("Wearing shield has been disabled in this duel!"); return false; } if (player.duelRule[17] && targetSlot == Constants.LEG_SLOT) { player.sendMessage("Wearing legs has been disabled in this duel!"); return false; } if (player.duelRule[18] && targetSlot == Constants.HAND_SLOT) { player.sendMessage("Wearing gloves has been disabled in this duel!"); return false; } if (player.duelRule[19] && targetSlot == Constants.FEET_SLOT) { player.sendMessage("Wearing boots has been disabled in this duel!"); return false; } if (player.duelRule[20] && targetSlot == Constants.RING_SLOT) { player.sendMessage("Wearing rings has been disabled in this duel!"); return false; } if (player.duelRule[21] && targetSlot == Constants.ARROW_SLOT) { player.sendMessage("Wearing arrows has been disabled in this duel!"); return false; } if (targetSlot == Constants.FEET_SLOT || targetSlot == Constants.LEG_SLOT || targetSlot == Constants.SHIELD_SLOT || targetSlot == Constants.TORSO_SLOT || targetSlot == Constants.HEAD_SLOT || targetSlot == Constants.HAND_SLOT) { if (player.defenceLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.DEFENCE]) < player.defenceLevelReq) { player.sendMessage("You need a defence level of " + player.defenceLevelReq + " to wear this item."); canWearItem = false; } } if (player.rangeLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.RANGED]) < player.rangeLevelReq) { player.sendMessage("You need a range level of " + player.rangeLevelReq + " to wear this item."); canWearItem = false; } } if (player.magicLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.MAGIC]) < player.magicLevelReq) { player.sendMessage("You need a magic level of " + player.magicLevelReq + " to wear this item."); canWearItem = false; } } } else if (targetSlot == Constants.AMULET_SLOT) { if (player.getPA().getLevelForXP(player.playerXP[Constants.MAGIC]) < player.magicLevelReq) { player.sendMessage("You need a magic level of " + player.magicLevelReq + " to wear this amulet."); canWearItem = false; } } else if (targetSlot == Constants.CAPE_SLOT) { if (player.getPA().getLevelForXP(player.playerXP[Constants.MAGIC]) < player.magicLevelReq) { player.sendMessage("You need a magic level of " + player.magicLevelReq + " to wear this amulet."); canWearItem = false; } } else if (targetSlot == Constants.WEAPON_SLOT) { if (player.attackLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.ATTACK]) < player.attackLevelReq) { player.sendMessage("You need an attack level of " + player.attackLevelReq + " to wield this weapon."); canWearItem = false; } } if (player.rangeLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.RANGED]) < player.rangeLevelReq) { player.sendMessage("You need a range level of " + player.rangeLevelReq + " to wield this weapon."); canWearItem = false; } } if (player.prayerLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.PRAYER]) < player.prayerLevelReq) { player.sendMessage("You need a prayer level of " + player.prayerLevelReq + " to wield this weapon."); canWearItem = false; } } if (player.magicLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.MAGIC]) < player.magicLevelReq) { player.sendMessage("You need a magic level of " + player.magicLevelReq + " to wield this weapon."); canWearItem = false; } } if (player.strengthLevelReq > 0) { if (player.getPA().getLevelForXP(player.playerXP[Constants.STRENGTH]) < player.strengthLevelReq) { player.sendMessage("You need a strength level of " + player.strengthLevelReq + " to wield this weapon."); canWearItem = false; } } } if (!canWearItem) { return false; } int wearAmount = player.playerItemsN[slot]; if (wearAmount < 1) { return false; } if (slot >= 0 && wearID >= 0) { player.setInventoryUpdate(true); int toEquip = player.playerItems[slot]; int toEquipN = player.playerItemsN[slot]; int toRemove = player.playerEquipment[targetSlot]; int toRemoveN = player.playerEquipmentN[targetSlot]; if (toEquip == toRemove + 1 && Item.itemStackable[toRemove]) { deleteItem(player, toRemove, getItemSlot(player, toRemove), toEquipN); player.playerEquipmentN[targetSlot] += toEquipN; } else if (targetSlot != Constants.SHIELD_SLOT && targetSlot != Constants.WEAPON_SLOT) { player.playerItems[slot] = toRemove + 1; player.playerItemsN[slot] = toRemoveN; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; } else if (targetSlot == Constants.SHIELD_SLOT) { boolean wearing2h = is2handed(getItemName(player.playerEquipment[Constants.WEAPON_SLOT]).toLowerCase(), player.playerEquipment[Constants.WEAPON_SLOT]); if (wearing2h) { toRemove = player.playerEquipment[Constants.WEAPON_SLOT]; toRemoveN = player.playerEquipmentN[Constants.WEAPON_SLOT]; player.playerEquipment[Constants.WEAPON_SLOT] = -1; player.playerEquipmentN[Constants.WEAPON_SLOT] = 0; updateSlot(player, Constants.WEAPON_SLOT); } player.playerItems[slot] = toRemove + 1; player.playerItemsN[slot] = toRemoveN; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; } else if (targetSlot == Constants.WEAPON_SLOT) { boolean is2h = is2handed(getItemName(wearID).toLowerCase(), wearID); boolean wearingShield = player.playerEquipment[Constants.SHIELD_SLOT] > 0; boolean wearingWeapon = player.playerEquipment[Constants.WEAPON_SLOT] > 0; if (is2h) { if (wearingShield && wearingWeapon) { if (freeSlots(player) > 0) { player.playerItems[slot] = toRemove + 1; player.playerItemsN[slot] = toRemoveN; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; removeItem(player, player.playerEquipment[Constants.SHIELD_SLOT], Constants.SHIELD_SLOT); } else { player.sendMessage("You do not have enough inventory space to do this."); return false; } } else if (wearingShield && !wearingWeapon) { player.playerItems[slot] = player.playerEquipment[Constants.SHIELD_SLOT] + 1; player.playerItemsN[slot] = player.playerEquipmentN[Constants.SHIELD_SLOT]; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; player.playerEquipment[Constants.SHIELD_SLOT] = -1; player.playerEquipmentN[Constants.SHIELD_SLOT] = 0; updateSlot(player, Constants.SHIELD_SLOT); } else { player.playerItems[slot] = toRemove + 1; player.playerItemsN[slot] = toRemoveN; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; } } else { player.playerItems[slot] = toRemove + 1; player.playerItemsN[slot] = toRemoveN; player.playerEquipment[targetSlot] = toEquip - 1; player.playerEquipmentN[targetSlot] = toEquipN; } } } if (targetSlot == Constants.WEAPON_SLOT) { player.usingSpecial = false; addSpecialBar(player, wearID); } if (player.getOutStream() != null && player != null) { player.getOutStream().createFrameVarSizeWord(34); player.getOutStream().writeWord(1688); player.getOutStream().writeByte(targetSlot); player.getOutStream().writeWord(wearID + 1); if (player.playerEquipmentN[targetSlot] > 254) { player.getOutStream().writeByte(255); player.getOutStream().writeDWord( player.playerEquipmentN[targetSlot]); } else { player.getOutStream().writeByte( player.playerEquipmentN[targetSlot]); } player.getOutStream().endFrameVarSizeWord(); player.flushOutStream(); } updateCombatInterface(player, player.playerEquipment[Constants.WEAPON_SLOT], getItemName(player.playerEquipment[Constants.WEAPON_SLOT])); player.getCombat().getPlayerAnimIndex(getItemName(player.playerEquipment[Constants.WEAPON_SLOT]).toLowerCase()); player.switches++; return true; } else { return false; } } }[/code] I got this too. Happens when both players in the duel arena die. Someone skype me please? Thnkx [code]Oct 27, 2014 1:13:31 PM core.maintick.TaskScheduler run SEVERE: Exception during task execution. java.lang.NullPointerException at game.player.content.combat.Death.duelArenaDeath(Death.java:316) at game.player.content.combat.Death.deathRespawnArea(Death.java:175) at game.player.content.combat.Death.giveLife(Death.java:154) at game.player.content.combat.Death$1.stop(Death.java:195) at game.player.event.CycleEventContainer.stop(CycleEventContainer.java:6 7) at game.player.content.combat.Death$1.execute(Death.java:190) at game.player.event.CycleEventContainer.execute(CycleEventContainer.jav a:59) at game.player.event.CycleEventHandler.process(CycleEventHandler.java:63 ) at core.Server$1.execute(Server.java:156) at core.maintick.Task.tick(Task.java:116) at core.maintick.TaskScheduler.run(TaskScheduler.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)[/code]
  16. Hey guys i added Drygores into my server. I added them in the item.cfg and in itemdef.java and i can wield them and stuff but i cant changed their stats for some reason. After i added them in item.cfg i got errors because i used instead of but after i fixed that and compiled I didn't get any errors but my drygores still have 0 stats. In item assistant i also made it so u need 90 attack to wield them which works. I have no idea why why i can't change their stats, i changed the stats for some other weapons but i can't for these drygores. [ATTACH]10644[/ATTACH] [ATTACH]10645[/ATTACH] [ATTACH]10646[/ATTACH] If anyone can help me it would be appreciate it. Thanks.
  17. 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 :)
  18. Here is my itemdef with the int switch (itemdef.id) { case 11722: itemDef.femaleEquip1 = itemDef.maleEquip1; itemDef.femaleEquip2 = itemDef.maleEquip2; break; case 11740: { itemdef.modelID = 20087; itemdef.name = "Owner Wings"; itemdef.modelZoom = 850; itemdef.modelRotation1 = 252; itemdef.modelRotation2 = 1020; itemdef.modelOffset1 = -1; itemdef.modelOffset2 = 24; itemdef.anInt165 = 20086; itemdef.anInt165 = 20086; itemdef.groundActions = new String[5]; itemdef.groundActions[2] = "Take"; itemdef.itemActions = new String[5]; itemdef.itemActions[1] = "Wear"; itemdef.itemActions[4] = "Drop"; } When i try and compile it i get this error ItemDef.java:235: error: cannot find s switch (itemde ^ symbol: variable itemdef location: class ItemDef ItemDef.java:235: error: illegal start switch (itemde ^ ItemDef.java:243: error: cannot find s itemdef.modelID = 20087; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:244: error: cannot find s itemdef.name = "Owner Wings"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:245: error: cannot find s itemdef.modelZoom = 850; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:246: error: cannot find s itemdef.modelRotation1 = 252; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:247: error: cannot find s itemdef.modelRotation2 = 1020; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:248: error: cannot find s itemdef.modelOffset1 = -1; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:249: error: cannot find s itemdef.modelOffset2 = 24; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:250: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:251: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:252: error: cannot find s itemdef.groundActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:253: error: cannot find s itemdef.groundActions[2] = "Take"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:254: error: cannot find s itemdef.itemActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:255: error: cannot find s itemdef.itemActions[1] = "Wear"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:256: error: cannot find s itemdef.itemActions[4] = "Drop"; ^ symbol: variable itemdef location: class ItemDef Note: client.java uses unchecked or un Note: Recompile with -Xlint:unchecked 16 errors Press any key to continue . . . Any help would be awesome thanks guys.
  19. [CENTER][IMG]http://www.runehq.com/image/geitems/c/casket.gif[/IMG] [B]Hello again, this tutorial is on how to add a clickable casket that gives a random item from a string of item id's which you can change to your liking. Files Needed : PlayerAssistant.java , ClickItem.java & ActionHandler.java Skills Needed : Ctrl + C and Ctrl + V Difficulty : 3/10 To begin with, you want to head over to PlayerAssistant.java, found in src\server\model\players. You then want to search for [/B][QUOTE]public static int Barrows[][/QUOTE][B] , below the end of that line add [/B][QUOTE]public static int Casket[] = {};[/QUOTE] [B]This line of code will hold the item id's. So an example of mine was[/B] [QUOTE]public static int Casket[] = {995,2434,2434,2434,315,361,1333,1331,995,379,385,385,385,7630,7630,4129,1161,1163,1093,1079,1081,1083,1085,4718,7630,7630,7630,7630,7630,7630,7630,7630,1067,1069,1071,1073,1075,1077,1101,1103,1105,1107,1109,1111,1153,1155,1157,1159,1161,1191,1193,1195,1197,1199,1323,1325,1327,1329,1331,995,315,361,1333,1331,995,379,385,385,385,7630,7630,7630,7630,4129,1161,1163,1093,1079,1081,1083,1085,4718,7630,7630,7630,7630,1067,1069,1071,1073,1075,1077,1101,1103,1105,1107,1109,1111,1153,1155,1157,1159,1161,1191,1193,1195,1197,1199,1323,1325,1327,1329,1331};[/QUOTE][B] Just make sure you separate each item id with a comma. Secondly, head over to ActionHandler.java, found in src\server\model\players. Search for[/B] [QUOTE]public void firstClickObject[/QUOTE][B] , then below[/B] [QUOTE]switch(objectType) {[/QUOTE][B] add[/B] [QUOTE]case 405: if (c.getItems().freeSlots() >= 1) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); } break;[/QUOTE] [B]What this does is, checks if the user has enough space to open the casket, if so deletes the casket, then continues to add a item from the list of id's you declared. Lastly, open up ClickItem.java, which if normally found in src\server\model\players\packets. Now search for [/B][QUOTE]public void processPacket[/QUOTE][B] and with the rest of the if statements add [/B][QUOTE]if(itemId == 405) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); c.sendMessage("You recieve loot!"); }[/QUOTE][B] What this does is check if the item clicked had the id of 405 ( Casket ID is 405 ), deletes the casket from their inventory, adds a random item from the list of id's and send a message to the player, which can be customised. That's pretty much it, don't forget to add imports if you don't already have them, remember Eclipse will add them in for you, so I would recommend using it if you are a beginner. Thanks for checking out my second tutorial, feel free to make any suggestions on other tutorials, or any fixes or improvements for this! If you have any errors post them below and I will try to respond and get them fixed as soon as I can.[/B][/CENTER]
  20. The server I got came with no stats on the items except the default items, but i cant change them or anything. I was able to create an item packer but it doesn't make a notepad of all the items that are in the server and when i try to make a custom notepad with stats and pack, it doesnt work. Could anyone help? I am using the rune-evo 3 source btw.
  21. Hello, i'm trying to make a code that when you click on a certain item, a quest interface pops up but it's not going so well because when I click on it, nothing happens....here are my codes so far, which I compiled with no errors: [CODE]PlayerAssistant public void infoScroll() { showInterface(8134); c.flushOutStream(); sendFrame126("@[email protected] blabla ", 8144); sendFrame126("1", 8148); sendFrame126("2", 8149); sendFrame126("3", 8150); sendFrame126("4", 8151); } ClickItem } if(itemId == 608) { c.getPA().infoScroll(); }[/CODE] Is there something else I need to add? or did I add something wrong?
  22. i have changed [CODE]public void dropItemsOnDeath() { if (getDifficulty() > 3) { sendItemsOnDeath(this); } }[/CODE] to [CODE]public void dropItemsOnDeath() { if (getDifficulty() > 0) { sendItemsOnDeath(this); } }[/CODE] No Luck Anyone who dies will keep their stuff even if they get killed in wildy, or unsafe clan wars or anywhere else. no one ever drops their stuff when they die. i have looked everywhere in player.java and nothing. I'm not asking for someone to spoon feed me, I'm asking if someone know where I can find the coding that needs to be changed so everyone drops their stuff. it's wierd how if you die from the corporeal beast, you drop your items if you die and they are placed on the ground where you died. anywhere else, no luck. Again, I'm looking to learn. Not for someone to spoon feed me. Thanks for your time!
  23. Basically, I want to find the code for the custom items that were already in my source, like black partyhat or whatever, can you help me?
  24. For example I have Dragon claws in my Donor point shop at a certain price, but i also want them in my pk point shop at a different price but when i change the price of the one in donor point it changes the price of the pk point shop to the same, does anyone know how to do this ?
  25. Dirty

    Protect Item

    I'm having an error with my protect item, and I don't know what is wrong >.< Error [Code] src\com\rs\game\player\Player.java:1978: error: method getValue in class ItemDef initions cannot be applied to given types; int price = item.getDefinitions().getValue(); ^ required: int found: no arguments reason: actual and formal argument lists differ in length src\com\rs\game\player\Player.java:1979: error: method getValue in class ItemDef initions cannot be applied to given types; if (price >= lastItem.getDefinitions().getValue( )) { ^ required: int found: no arguments reason: actual and formal argument lists differ in length Note: src\com\rs\Launcher.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors Press any key to continue . . .[/code] Protect Item Code [Important Part] [Code] CopyOnWriteArrayList<Item> keptItems = new CopyOnWriteArrayList<Item>(); Item lastItem = new Item(1, 1); // Adds 'lastItem' for (int i = 0; i < keptAmount; i++) { for (Item item : containedItems) { int price = item.getDefinitions().getValue(); if (price >= lastItem.getDefinitions().getValue()) { lastItem = item; } } keptItems.add(lastItem); containedItems.remove(lastItem); contained item from dropping, in this case the item the player keeps ('lastItem') lastItem = new Item(1, 1); } inventory.reset(); equipment.reset(); for (Item item : keptItems) { getInventory().addItem(item); }[/code] ItemDefinitions getValue [Code] public int getValue(int itemId) { return loadExchangePrices(itemId); }[/code] ItemDefinition loadExchangePrices [Code] public static int loadExchangePrices(int itemId) { try (BufferedReader buf = new BufferedReader(new FileReader( "./data/displays.txt"))) { String line; while ((line = buf.readLine()) != null) { String[] regex = line.split(","); if (line.startsWith(String.valueOf("ItemID: " + itemId))) { int itemValue = Integer.valueOf(regex[1].replace( " Value: ", "")); System.out.println("ITEMID: " + itemId + " PRICE: " + itemValue); return itemValue; }[/code] Been having this issue for months so I just stopped, but now im just going to ask for help.
×