Jump to content

Search the Community

Showing results for tags 'max'.



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 36 results

  1. When you have max cash in bank and try to add more cash your from inventory the cash still gets deleted from inventory regardless of the fact that theres max cash in your bank I had a little go at it. not sure if its anything close to the fix. I added it to "public void addItem" in bank.java heres the code i wrote. int playerAmount = player.getInventory().getContainer().getNumberOf(item); int index = bank.indexOf(item); Item item2 = bank.get(index); if (playerAmount + item2.getAmount < 2147000000){ playeramount - item2.getAmount; player.getInventory().deleteItem(item.getId(), amount, slot, refresh); } Any thoughts?
  2. [CENTER][B][FONT=Arial Black][SIZE=5]Road to Completionist Cape[/SIZE][/FONT][/B] [IMG]http://i.imgur.com/xGdFsS3.png[/IMG] [B]Up-to-date requirements:[/B] [COLOR="#008000"]All skill levels at maximum (99 in all skills)[/COLOR] [COLOR="#FF0000"]120 Dungeoneering - 112/120[/COLOR] [COLOR="#008000"]All quests completed (Including Odd Old Man's wish list and Fur 'n' Seek)[/COLOR] [COLOR="#FF0000"]All tasks completed[/COLOR] [COLOR="#008000"]All magic spells unlocked from Livid Farm[/COLOR] [COLOR="#008000"]Bones to Peaches unlocked from the Mage Training Arena[/COLOR] [COLOR="#008000"]Unlocked the Tune Bane Ore spell from a scroll in Ritual of the Mahjarrat[/COLOR] [COLOR="#008000"]All Varrock Museum Kudos earned[/COLOR] [COLOR="#008000"]Unlock Rapid Renewal prayer[/COLOR] [COLOR="#FF0000"]Unlocked all Music tracks[/COLOR] [COLOR="#008000"]Completed the Hopespear's Will miniquest[/COLOR] [COLOR="#008000"]Completed the Curse of Zaros miniquest[/COLOR] [COLOR="#008000"]Completed the Fight Kiln[/COLOR] [COLOR="#008000"]Returned Clarence to rest[/COLOR] [COLOR="#008000"]Reached the end of the Stronghold of Player Safety[/COLOR] [COLOR="#008000"]Hunted the Thalassus ten times after the Deadliest Catch quest[/COLOR] [COLOR="#008000"]Claimed a reward from Claus the chef for doing him a favour after completing Carnillean Rising[/COLOR] [COLOR="#008000"]Have scored at least 1,111 in a session of Big Chinchompa[/COLOR] [COLOR="#008000"]Completed all of Doric and Boric tasks following What's Mine is Yours[/COLOR] [COLOR="#008000"]Earned 'the Annihilator' title by fighting all four nihil at once, during or after Fate of the Gods[/COLOR] [COLOR="#008000"]Found all memoriam crystals on Freneskae[/COLOR] [COLOR="#008000"]Completed all Fremennik Sagas[/COLOR] [COLOR="#008000"]Unlocked the Enhanced yaktwee stick by catching 1,000 charm sprites[/COLOR] [COLOR="#008000"]Constructed a Tuska mask[/COLOR] [COLOR="#FF0000"]Completed either the Hyu-Ji, Quin or Eastern Curiosities storyline from your Port[/COLOR] [COLOR="#008000"]Found all the pieces of the Reefwalker's Cape forgotten scroll[/COLOR] [COLOR="#008000"]Completed the Mahjarrat Memories miniquest[/COLOR] [COLOR="#008000"]Recovered all 14 of Bandos's memories on Yu'biusk[/COLOR] [COLOR="#FF0000"]Earned "the Reaper" title from Death[/COLOR] Bosses left to kill to earn "the Reaper" title from Death: [code] Araxxi Rots Chaos Elemental Corporeal Beast Dagannoth Kings Kalphite Queen Legiones Vorago [/code] Legend: [COLOR="#008000"]Green[/COLOR] = Finished! [COLOR="#FF0000"]Red[/COLOR] = Not Finished! [/CENTER] Progress: [code] 8/9/2014: Hunted the Thalassus ten times after the Deadliest Catch quest 8/10/2014: Bones to Peaches unlocked from the Mage Training Arena 8/11/2014: Returned Clarence to rest 8/12/2014: Completed all Fremennik Sagas 8/12/2014: Found all memoriam crystals on Freneskae 8/12/2014: Earned 'the Annihilator' title by fighting all four nihil at once, during or after Fate of the Gods 8/13/2014: Completed the Curse of Zaros miniquest 8/13/2014: All Varrock Museum Kudos earned 8/13/2014: Completed all of Doric and Boric tasks following What's Mine is Yours 8/13/2014: Unlock Rapid Renewal prayer 8/14/2014: 109 Dungeoneering 8/15/2014: 110 Dungeoneering 8/17/2014: 111 Dungeoneering 8/20/2014: 112 Dungeoneering 8/21/2014: Found all the pieces of the Reefwalker's Cape forgotten scroll [/code] Latest Activity: [url]http://services.runescape.com/m=adventurers-log/profile?searchName=Bouncer[/url]
  3. I'm not sure how on earth this money pouch is giving people max cash, but they've told me it's giving them max cash and I have checked their bank and seen max cash. Other than that, the money pouch is defected and not working properly. And I can't figure out why. Here's my InventoryOptionsHandler.java: [code]package com.rs.net.decoders.handlers; //import com.rs.game.player.ClueScrolls; import java.util.List; import com.rs.game.player.content.TreasureTrails; import com.rs.Settings; import com.rs.cores.WorldThread; import com.rs.game.Animation; import com.rs.game.Graphics; import com.rs.game.World; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.minigames.CrystalChest; import com.rs.game.minigames.RandomEventGift; import com.rs.game.npc.NPC; import com.rs.game.npc.familiar.Familiar.SpecialAttack; import com.rs.game.npc.pet.Pet; import com.rs.game.player.ClueScrolls; 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.content.LividFarm; 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.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.Foods; import com.rs.game.player.content.Magic; 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.controlers.FightKiln; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.io.InputStream; import com.rs.utils.Logger; import com.rs.utils.Utils; public class InventoryOptionsHandler { public static void handleItemOption2(final Player player, final int slotId, final int itemId, Item item) { if (Firemaking.isFiremaking(player, itemId)) return; if (itemId >= 5509 && itemId <= 5514) { int pouch = -1; if (itemId == 5509) pouch = 0; if (itemId == 5510) pouch = 1; if (itemId == 5512) pouch = 2; if (itemId == 5514) pouch = 3; Runecrafting.emptyPouch(player, pouch); player.stopAll(false); } else if (itemId >= 15086 && itemId <= 15100) { Dicing.handleRoll(player, itemId, true); return; } else { if (player.isEquipDisabled()) return; long passedTime = Utils.currentTimeMillis() - WorldThread.LAST_CYCLE_CTM; WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { List<Integer> slots = player.getSwitchItemCache(); int[] slot = new int[slots.size()]; for (int i = 0; i < slot.length; i++) slot[i] = slots.get(i); player.getSwitchItemCache().clear(); ButtonHandler.sendWear(player, slot); player.stopAll(false, true, false); } }, passedTime >= 600 ? 0 : passedTime > 330 ? 1 : 0); if (player.getSwitchItemCache().contains(slotId)) return; player.getSwitchItemCache().add(slotId); } } public static void dig(final Player player) { player.resetWalkSteps(); player.setNextAnimation(new Animation(830)); player.lock(); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.unlock(); if (Barrows.digIntoGrave(player)) return; if(player.getX() == 3005 && player.getY() == 3376 || player.getX() == 2999 && player.getY() == 3375 || player.getX() == 2996 && player.getY() == 3377 || player.getX() == 2989 && player.getY() == 3378 || player.getX() == 2987 && player.getY() == 3387 || player.getX() == 2984 && player.getY() == 3387) { //mole player.setNextWorldTile(new WorldTile(1752, 5137, 0)); player.getPackets().sendGameMessage("You seem to have dropped down into a network of mole tunnels."); return; } if (ClueScrolls.digSpot(player)){ return; } player.getPackets().sendGameMessage("You find nothing."); } }); } public static void handleItemOption1(Player player, final int slotId, final int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getLockDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; player.stopAll(false); if (Foods.eat(player, item, slotId)) return; if (itemId >= 15086 && itemId <= 15100) { Dicing.handleRoll(player, itemId, false); return; } if (itemId == 6) //Cannon player.getDwarfCannon().checkLocation(); if (itemId == 20494) {//Gold Cannon if (player.isDonator()) { player.getDwarfCannon().checkGoldLocation(); } else { player.sm("You must be an Extreme Donator to set up a Royal Cannon."); } } if (itemId == 20498) {//Royal Cannon if (player.isExtremeDonator()) { player.getDwarfCannon().checkRoyalLocation(); } else { player.sm("You must be an Extreme Donator to set up a Royal Cannon."); } } if (itemId == 20667) { Magic.VecnaSkull(player); } if (Pots.pot(player, item, slotId)) return; if (itemId == 2677) { TreasureTrails.handleClues(player); } if (itemId == 2678) { TreasureTrails.handleClues1(player); } if (itemId == 2679) { TreasureTrails.handleClues2(player); } if (itemId >= 5509 && itemId <= 5514) { int pouch = -1; if (itemId == 5509) pouch = 0; if (itemId == 5510) pouch = 1; if (itemId == 5512) pouch = 2; if (itemId == 5514) pouch = 3; Runecrafting.fillPouch(player, pouch); return; } if (itemId == 22370) { Summoning.openDreadnipInterface(player); } if (itemId == 6950) { player.getDialogueManager().startDialogue("LividOrb"); } if (itemId == 20704) { LividFarm.bunchPlants(player); } if (itemId == 10846) { player.getDialogueManager().startDialogue("PrizeOptions"); } if (itemId == 10847) { player.getDialogueManager().startDialogue("PrizeOptions"); } if (itemId == 10845) { player.getDialogueManager().startDialogue("PrizeOptions"); } if (itemId == 10844) { player.getDialogueManager().startDialogue("PrizeOptions"); } if (itemId == 2689) { player.getDialogueManager().startDialogue("ExtremeDonatorPanel"); } if (itemId == 952) {// spade dig(player); return; } for (int i: ClueScrolls.ScrollIds){ if (itemId == i){ if (ClueScrolls.Scrolls.getMap(itemId) != null){ ClueScrolls.showMap(player, ClueScrolls.Scrolls.getMap(itemId)); return; } if (ClueScrolls.Scrolls.getObjMap(itemId) != null){ ClueScrolls.showObjectMap(player, ClueScrolls.Scrolls.getObjMap(itemId)); return; } if (ClueScrolls.Scrolls.getRiddles(itemId) != null){ ClueScrolls.showRiddle(player, ClueScrolls.Scrolls.getRiddles(itemId)); return; } } } if (itemId == 2717){ ClueScrolls.giveReward(player); } if (HerbCleaning.clean(player, item, slotId)) return; Bone bone = Bone.forId(itemId); if (bone != null) { Bone.bury(player, slotId); return; } if (Magic.useTabTeleport(player, itemId)) return; if (itemId == AncientEffigies.SATED_ANCIENT_EFFIGY || itemId == AncientEffigies.GORGED_ANCIENT_EFFIGY || itemId == AncientEffigies.NOURISHED_ANCIENT_EFFIGY || itemId == AncientEffigies.STARVED_ANCIENT_EFFIGY) player.getDialogueManager().startDialogue("AncientEffigiesD", itemId); else if (itemId == 4155) player.getDialogueManager().startDialogue("EnchantedGemDialouge"); else if (itemId == 611) player.getLocationCrystal().handleClick(); else if (itemId == 6183) RandomEventGift.openGift(player); else if (itemId == 23749) { player.getSkills().addXp(Skills.DUNGEONEERING, 20); player.getInventory().deleteItem(23749, 1); } else if (itemId == 23750) { player.getSkills().addXp(Skills.DUNGEONEERING, 125); player.getInventory().deleteItem(23750, 1); } else if (itemId == 24155) { // Double Spin ticket player.getPackets().sendGameMessage("You opened your spin ticket and got two spins."); player.setSpins(player.getSpins() + 2); player.getPackets().sendIComponentText(1139, 10, " "+ player.getSpins() +" "); player.getInventory().deleteItem(24155, 1); } else if (itemId == 24154) { // Spin ticket player.getPackets().sendGameMessage("You opened your spin ticket and got one spin."); player.setSpins(player.getSpins() + 1); player.getPackets().sendIComponentText(1139, 10, " "+ player.getSpins() +" "); player.getInventory().deleteItem(24154, 1); } else if (itemId == 23717) { player.getSkills().addXp(Skills.ATTACK, 2500); player.getInventory().deleteItem(23717, 1); } else if (itemId == 23721) { player.getSkills().addXp(Skills.STRENGTH, 2500); player.getInventory().deleteItem(23721, 1); } else if (itemId == 23725) { player.getSkills().addXp(Skills.DEFENCE, 2500); player.getInventory().deleteItem(23725, 1); } else if (itemId == 23729) { player.getSkills().addXp(Skills.RANGE, 2500); player.getInventory().deleteItem(23729, 1); } else if (itemId == 23733) { player.getSkills().addXp(Skills.MAGIC, 2500); player.getInventory().deleteItem(23733, 1); } else if (itemId == 23737) { player.getSkills().addXp(Skills.PRAYER, 2500); player.getInventory().deleteItem(23737, 1); } else if (itemId == 23741) { player.getSkills().addXp(Skills.RUNECRAFTING, 2500); player.getInventory().deleteItem(23741, 1); } else if (itemId == 23745) { player.getSkills().addXp(Skills.CONSTRUCTION, 2500); player.getInventory().deleteItem(23745, 1); } else if (itemId == 23749) { player.getSkills().addXp(Skills.DUNGEONEERING, 2500); player.getInventory().deleteItem(23749, 1); } else if (itemId == 23753) { player.getSkills().addXp(Skills.HITPOINTS, 2500); player.getInventory().deleteItem(23753, 1); } else if (itemId == 23757) { player.getSkills().addXp(Skills.AGILITY, 2500); player.getInventory().deleteItem(23757, 1); } else if (itemId == 23761) { player.getSkills().addXp(Skills.HERBLORE, 2500); player.getInventory().deleteItem(23761, 1); } else if (itemId == 23765) { player.getSkills().addXp(Skills.THIEVING, 2500); player.getInventory().deleteItem(23765, 1); } else if (itemId == 23769) { player.getSkills().addXp(Skills.CRAFTING, 2500); player.getInventory().deleteItem(23769, 1); } else if (itemId == 23774) { player.getSkills().addXp(Skills.FLETCHING, 2500); player.getInventory().deleteItem(23774, 1); } else if (itemId == 23778) { player.getSkills().addXp(Skills.SLAYER, 2500); player.getInventory().deleteItem(23778, 1); } else if (itemId == 23782) { player.getSkills().addXp(Skills.HUNTER, 2500); player.getInventory().deleteItem(23782, 1); } else if (itemId == 23786) { player.getSkills().addXp(Skills.MINING, 2500); player.getInventory().deleteItem(23786, 1); } else if (itemId == 23790) { player.getSkills().addXp(Skills.SMITHING, 2500); player.getInventory().deleteItem(23790, 1); } else if (itemId == 23794) { player.getSkills().addXp(Skills.FISHING, 2500); player.getInventory().deleteItem(23794, 1); } else if (itemId == 23798) { player.getSkills().addXp(Skills.COOKING, 2500); player.getInventory().deleteItem(23798, 1); } else if (itemId == 23802) { player.getSkills().addXp(Skills.FIREMAKING, 2500); player.getInventory().deleteItem(23802, 1); } else if (itemId == 23806) { player.getSkills().addXp(Skills.WOODCUTTING, 2500); player.getInventory().deleteItem(23806, 1); } else if (itemId == 23810) { player.getSkills().addXp(Skills.FARMING, 2500); player.getInventory().deleteItem(23810, 1); } else if (itemId == 23814) { player.getSkills().addXp(Skills.SUMMONING, 2500); player.getInventory().deleteItem(23814, 1); } else if (itemId == 23718) { player.getSkills().addXp(Skills.ATTACK, 5000); player.getInventory().deleteItem(23718, 1); } else if (itemId == 23722) { player.getSkills().addXp(Skills.STRENGTH, 5000); player.getInventory().deleteItem(23722, 1); } else if (itemId == 23726) { player.getSkills().addXp(Skills.DEFENCE, 5000); player.getInventory().deleteItem(23726, 1); } else if (itemId == 23730) { player.getSkills().addXp(Skills.RANGE, 5000); player.getInventory().deleteItem(23730, 1); } else if (itemId == 23734) { player.getSkills().addXp(Skills.MAGIC, 5000); player.getInventory().deleteItem(23734, 1); } else if (itemId == 23738) { player.getSkills().addXp(Skills.PRAYER, 5000); player.getInventory().deleteItem(23738, 1); } else if (itemId == 23742) { player.getSkills().addXp(Skills.RUNECRAFTING, 5000); player.getInventory().deleteItem(23742, 1); } else if (itemId == 23746) { player.getSkills().addXp(Skills.CONSTRUCTION, 5000); player.getInventory().deleteItem(23746, 1); } else if (itemId == 23750) { player.getSkills().addXp(Skills.DUNGEONEERING, 5000); player.getInventory().deleteItem(23750, 1); } else if (itemId == 23754) { player.getSkills().addXp(Skills.HITPOINTS, 5000); player.getInventory().deleteItem(23754, 1); } else if (itemId == 23758) { player.getSkills().addXp(Skills.AGILITY, 5000); player.getInventory().deleteItem(23758, 1); } else if (itemId == 23762) { player.getSkills().addXp(Skills.HERBLORE, 5000); player.getInventory().deleteItem(23762, 1); } else if (itemId == 23766) { player.getSkills().addXp(Skills.THIEVING, 5000); player.getInventory().deleteItem(23766, 1); } else if (itemId == 23770) { player.getSkills().addXp(Skills.CRAFTING, 5000); player.getInventory().deleteItem(23770, 1); } else if (itemId == 23775) { player.getSkills().addXp(Skills.FLETCHING, 5000); player.getInventory().deleteItem(23775, 1); } else if (itemId == 23779) { player.getSkills().addXp(Skills.SLAYER, 5000); player.getInventory().deleteItem(23779, 1); } else if (itemId == 23783) { player.getSkills().addXp(Skills.HUNTER, 5000); player.getInventory().deleteItem(23783, 1); } else if (itemId == 23787) { player.getSkills().addXp(Skills.MINING, 5000); player.getInventory().deleteItem(23787, 1); } else if (itemId == 23791) { player.getSkills().addXp(Skills.SMITHING, 5000); player.getInventory().deleteItem(23791, 1); } else if (itemId == 23795) { player.getSkills().addXp(Skills.FISHING, 5000); player.getInventory().deleteItem(23795, 1); } else if (itemId == 23799) { player.getSkills().addXp(Skills.COOKING, 5000); player.getInventory().deleteItem(23799, 1); } else if (itemId == 23803) { player.getSkills().addXp(Skills.FIREMAKING, 5000); player.getInventory().deleteItem(23803, 1); } else if (itemId == 23807) { player.getSkills().addXp(Skills.WOODCUTTING, 5000); player.getInventory().deleteItem(23807, 1); } else if (itemId == 23811) { player.getSkills().addXp(Skills.FARMING, 5000); player.getInventory().deleteItem(23811, 1); } else if (itemId == 23815) { player.getSkills().addXp(Skills.SUMMONING, 5000); player.getInventory().deleteItem(23815, 1); } else if (itemId == 23719) { player.getSkills().addXp(Skills.ATTACK, 7500); player.getInventory().deleteItem(23719, 1); } else if (itemId == 23723) { player.getSkills().addXp(Skills.STRENGTH, 7500); player.getInventory().deleteItem(23723, 1); } else if (itemId == 23727) { player.getSkills().addXp(Skills.DEFENCE, 7500); player.getInventory().deleteItem(23727, 1); } else if (itemId == 23731) { player.getSkills().addXp(Skills.RANGE, 7500); player.getInventory().deleteItem(23731, 1); } else if (itemId == 23735) { player.getSkills().addXp(Skills.MAGIC, 7500); player.getInventory().deleteItem(23735, 1); } else if (itemId == 23739) { player.getSkills().addXp(Skills.PRAYER, 7500); player.getInventory().deleteItem(23739, 1); } else if (itemId == 23743) { player.getSkills().addXp(Skills.RUNECRAFTING, 7500); player.getInventory().deleteItem(23743, 1); } else if (itemId == 23747) { player.getSkills().addXp(Skills.CONSTRUCTION, 7500); player.getInventory().deleteItem(23747, 1); } else if (itemId == 23751) { player.getSkills().addXp(Skills.DUNGEONEERING, 7500); player.getInventory().deleteItem(23751, 1); } else if (itemId == 23755) { player.getSkills().addXp(Skills.HITPOINTS, 7500); player.getInventory().deleteItem(23755, 1); } else if (itemId == 23759) { player.getSkills().addXp(Skills.AGILITY, 7500); player.getInventory().deleteItem(23759, 1); } else if (itemId == 23763) { player.getSkills().addXp(Skills.HERBLORE, 7500); player.getInventory().deleteItem(23763, 1); } else if (itemId == 23767) { player.getSkills().addXp(Skills.THIEVING, 7500); player.getInventory().deleteItem(23767, 1); } else if (itemId == 23771) { player.getSkills().addXp(Skills.CRAFTING, 7500); player.getInventory().deleteItem(23771, 1); } else if (itemId == 23776) { player.getSkills().addXp(Skills.FLETCHING, 7500); player.getInventory().deleteItem(23776, 1); } else if (itemId == 23780) { player.getSkills().addXp(Skills.SLAYER, 7500); player.getInventory().deleteItem(23780, 1); } else if (itemId == 23784) { player.getSkills().addXp(Skills.HUNTER, 7500); player.getInventory().deleteItem(23784, 1); } else if (itemId == 23788) { player.getSkills().addXp(Skills.MINING, 7500); player.getInventory().deleteItem(23788, 1); } else if (itemId == 23792) { player.getSkills().addXp(Skills.SMITHING, 7500); player.getInventory().deleteItem(23792, 1); } else if (itemId == 23796) { player.getSkills().addXp(Skills.FISHING, 7500); player.getInventory().deleteItem(23796, 1); } else if (itemId == 23800) { player.getSkills().addXp(Skills.COOKING, 7500); player.getInventory().deleteItem(23800, 1); } else if (itemId == 23804) { player.getSkills().addXp(Skills.FIREMAKING, 7500); player.getInventory().deleteItem(23804, 1); } else if (itemId == 23808) { player.getSkills().addXp(Skills.WOODCUTTING, 7500); player.getInventory().deleteItem(23808, 1); } else if (itemId == 23812) { player.getSkills().addXp(Skills.FARMING, 7500); player.getInventory().deleteItem(23812, 1); } else if (itemId == 23816) { player.getSkills().addXp(Skills.SUMMONING, 7500); player.getInventory().deleteItem(23816, 1); } else if (itemId == 23720) { player.getSkills().addXp(Skills.ATTACK, 10000); player.getInventory().deleteItem(23720, 1); } else if (itemId == 23724) { player.getSkills().addXp(Skills.STRENGTH, 10000); player.getInventory().deleteItem(23724, 1); } else if (itemId == 23728) { player.getSkills().addXp(Skills.DEFENCE, 10000); player.getInventory().deleteItem(23728, 1); } else if (itemId == 23732) { player.getSkills().addXp(Skills.RANGE, 10000); player.getInventory().deleteItem(23732, 1); } else if (itemId == 23736) { player.getSkills().addXp(Skills.MAGIC, 10000); player.getInventory().deleteItem(23736, 1); } else if (itemId == 23740) { player.getSkills().addXp(Skills.PRAYER, 10000); player.getInventory().deleteItem(23740, 1); } else if (itemId == 23744) { player.getSkills().addXp(Skills.RUNECRAFTING, 10000); player.getInventory().deleteItem(23744, 1); } else if (itemId == 23748) { player.getSkills().addXp(Skills.CONSTRUCTION, 10000); player.getInventory().deleteItem(23748, 1); } else if (itemId == 23752) { player.getSkills().addXp(Skills.DUNGEONEERING, 10000); player.getInventory().deleteItem(23752, 1); } else if (itemId == 23756) { player.getSkills().addXp(Skills.HITPOINTS, 10000); player.getInventory().deleteItem(23756, 1); } else if (itemId == 23760) { player.getSkills().addXp(Skills.AGILITY, 10000); player.getInventory().deleteItem(23760, 1); } else if (itemId == 23764) { player.getSkills().addXp(Skills.HERBLORE, 10000); player.getInventory().deleteItem(23764, 1); } else if (itemId == 23768) { player.getSkills().addXp(Skills.THIEVING, 10000); player.getInventory().deleteItem(23768, 1); } else if (itemId == 23772) { player.getSkills().addXp(Skills.CRAFTING, 10000); player.getInventory().deleteItem(23772, 1); } else if (itemId == 23777) { player.getSkills().addXp(Skills.FLETCHING, 10000); player.getInventory().deleteItem(23777, 1); } else if (itemId == 23781) { player.getSkills().addXp(Skills.SLAYER, 10000); player.getInventory().deleteItem(23781, 1); } else if (itemId == 23785) { player.getSkills().addXp(Skills.HUNTER, 10000); player.getInventory().deleteItem(23785, 1); } else if (itemId == 23789) { player.getSkills().addXp(Skills.MINING, 10000); player.getInventory().deleteItem(23789, 1); } else if (itemId == 23793) { player.getSkills().addXp(Skills.SMITHING, 10000); player.getInventory().deleteItem(23793, 1); } else if (itemId == 23797) { player.getSkills().addXp(Skills.FISHING, 10000); player.getInventory().deleteItem(23797, 1); } else if (itemId == 23801) { player.getSkills().addXp(Skills.COOKING, 10000); player.getInventory().deleteItem(23801, 1); } else if (itemId == 23805) { player.getSkills().addXp(Skills.FIREMAKING, 10000); player.getInventory().deleteItem(23805, 1); } else if (itemId == 23809) { player.getSkills().addXp(Skills.WOODCUTTING, 10000); player.getInventory().deleteItem(23809, 1); } else if (itemId == 23813) { player.getSkills().addXp(Skills.FARMING, 10000); player.getInventory().deleteItem(23813, 1); } else if (itemId == 23817) { player.getSkills().addXp(Skills.SUMMONING, 10000); player.getInventory().deleteItem(23817, 1); } else if (itemId == 24300) { player.getSkills().addXp(Skills.ATTACK, 2000000); player.getSkills().addXp(Skills.STRENGTH, 2000000); player.getSkills().addXp(Skills.DEFENCE, 200000); player.getSkills().addXp(Skills.RANGE, 200000); player.getSkills().addXp(Skills.MAGIC, 200000); player.getSkills().addXp(Skills.PRAYER, 200000); player.getSkills().addXp(Skills.RUNECRAFTING, 200000); player.getSkills().addXp(Skills.CONSTRUCTION, 200000); player.getSkills().addXp(Skills.DUNGEONEERING, 200000); player.getSkills().addXp(Skills.HITPOINTS, 200000); player.getSkills().addXp(Skills.AGILITY, 200000); player.getSkills().addXp(Skills.HERBLORE, 200000); player.getSkills().addXp(Skills.THIEVING, 200000); player.getSkills().addXp(Skills.CRAFTING, 200000); player.getSkills().addXp(Skills.FLETCHING, 200000); player.getSkills().addXp(Skills.SLAYER, 200000); player.getSkills().addXp(Skills.HUNTER, 200000); player.getSkills().addXp(Skills.MINING, 200000); player.getSkills().addXp(Skills.SMITHING, 200000); player.getSkills().addXp(Skills.FISHING, 200000); player.getSkills().addXp(Skills.COOKING, 200000); player.getSkills().addXp(Skills.FIREMAKING, 200000); player.getSkills().addXp(Skills.WOODCUTTING, 200000); player.getSkills().addXp(Skills.FARMING, 200000); player.getSkills().addXp(Skills.SUMMONING, 200000); player.getInventory().deleteItem(24300, 1); } else if (itemId >= 23653 && itemId <= 23658) FightKiln.useCrystal(player, itemId); else if (itemId == 7681) {// Information Book player.getInterfaceManager().sendInterface(275); for (int i = 0; i < 100; i++) { player.getPackets().sendIComponentText(275, i, ""); }player.getPackets().sendIComponentText(275, 1, Settings.SERVER_NAME+" Quest Information!"); player.getPackets().sendIComponentText(275, 10, "What Are Quests?"); player.getPackets().sendIComponentText(275, 11, "___________"); player.getPackets().sendIComponentText(275, 12, "Quests are Adventures you can go on,"); player.getPackets().sendIComponentText(275, 13, "and when completed you can earn, special"); player.getPackets().sendIComponentText(275, 14, "items or even gold. Some are easy some are"); player.getPackets().sendIComponentText(275, 15, "hard. We want our players to always have fun, if"); player.getPackets().sendIComponentText(275, 16, "you need any help on a quest refer to the quest guide"); player.getPackets().sendIComponentText(275, 17, "for a book that will help you complete the quest available!"); player.getPackets().sendIComponentText(275, 18, "___________"); player.getPackets().sendIComponentText(275, 19, "Quests Available"); player.getPackets().sendIComponentText(275, 20, "___________"); player.getPackets().sendIComponentText(275, 21, "Meet me in the sky"); player.getPackets().sendIComponentText(275, 22, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 23, "Dragon Killer"); player.getPackets().sendIComponentText(275, 24, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 25, "Kill the Robber"); player.getPackets().sendIComponentText(275, 26, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 27, "Get the Meat Pie"); player.getPackets().sendIComponentText(275, 28, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 29, "Demons are here"); player.getPackets().sendIComponentText(275, 30, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 31, "Kalphite Gold"); player.getPackets().sendIComponentText(275, 32, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 33, "StarWars"); player.getPackets().sendIComponentText(275, 34, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 35, "Blood Trader"); player.getPackets().sendIComponentText(275, 36, "-_-_-_-_-_-_-_-"); player.getPackets().sendIComponentText(275, 37, "Dwarven Cake"); } else if (itemId == HunterEquipment.BOX.getId()) // almost done player.getActionManager().setAction(new BoxAction(HunterEquipment.BOX)); else if (itemId == HunterEquipment.BRID_SNARE.getId()) player.getActionManager().setAction( new BoxAction(HunterEquipment.BRID_SNARE)); else if (item.getDefinitions().getName().startsWith("Burnt")) player.getDialogueManager().startDialogue("SimplePlayerMessage", "Ugh, this is inedible."); if (Settings.DEBUG) Logger.log("ItemHandler", "Item Select:" + itemId + ", Slot Id:" + slotId); } /* * returns the other */ public static Item contains(int id1, Item item1, Item item2) { if (item1.getId() == id1) return item2; if (item2.getId() == id1) return item1; return null; } public static boolean contains(int id1, int id2, Item... items) { boolean containsId1 = false; boolean containsId2 = false; for (Item item : items) { if (item.getId() == id1) containsId1 = true; else if (item.getId() == id2) containsId2 = true; } return containsId1 && containsId2; } 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 (itemUsed.getId() == CrystalChest.toothHalf() && usedWith.getId() == CrystalChest.loopHalf() || itemUsed.getId() == CrystalChest.loopHalf() && usedWith.getId() == CrystalChest.toothHalf()){ CrystalChest.makeKey(player); return; } if (!player.getControlerManager().canUseItemOnItem(itemUsed, usedWith)) return; Fletch fletch = Fletching.isFletching(usedWith, itemUsed); if (fletch != null) { player.getDialogueManager().startDialogue("FletchingD", fletch); 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.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() == 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() == 1540 && usedWith.getId() == 11286){ player.getInventory().deleteItem(1540, 1); player.getInventory().deleteItem(11286, 1); player.getInventory().addItem(11283, 1); player.getPackets().sendGameMessage("Congratulations You have made a Dragonfire Shield."); } else if (itemUsed.getId() == 11286 && usedWith.getId() == 1540){ player.getInventory().deleteItem(11286, 1); player.getInventory().deleteItem(1540, 1); player.getInventory().addItem(11283, 1); player.getPackets().sendGameMessage("Congratulations You have made a Dragonfire Shield."); } 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."); } } 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."); } } 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."); } } 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."); } } 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."); } } 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()); } } public static void handleItemOption3(Player player, int slotId, int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getLockDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; player.stopAll(false); if (itemId == 20767 || itemId == 20769 || itemId == 20771) SkillCapeCustomizer.startCustomizing(player, itemId); else if(itemId >= 15084 && itemId <= 15100) player.getDialogueManager().startDialogue("DiceBag", itemId); else if(itemId == 24437 || itemId == 24439 || itemId == 24440 || itemId == 24441) player.getDialogueManager().startDialogue("FlamingSkull", item, slotId); else if (Equipment.getItemSlot(itemId) == Equipment.SLOT_AURA) player.getAuraManager().sendTimeRemaining(itemId); } public static void handleItemOption4(Player player, int slotId, int itemId, Item item) { System.out.println("Option 4"); } public static void handleItemOption5(Player player, int slotId, int itemId, Item item) { System.out.println("Option 5"); } public static void handleItemOption6(Player player, int slotId, int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getLockDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; player.stopAll(false); Pouches pouches = Pouches.forId(itemId); if (pouches != null) Summoning.spawnFamiliar(player, pouches); else if (itemId == 995) { int amount = player.getInventory().getItems().getNumberOf(995); if (player.money + amount > 0) { player.getInventory().deleteItem(995, amount); player.getPackets().sendRunScript(5561, 1, amount); player.money += amount; player.refreshMoneyPouch(); } else { player.getPackets().sendGameMessage("You can't have more then 2147483647 coins in your pouch.") } } if (itemId == 1438) Runecrafting.locate(player, 3127, 3405); else if (itemId == 1440) Runecrafting.locate(player, 3306, 3474); else if (itemId == 1442) Runecrafting.locate(player, 3313, 3255); else if (itemId == 1444) Runecrafting.locate(player, 3185, 3165); else if (itemId == 1446) Runecrafting.locate(player, 3053, 3445); else if (itemId == 1448) Runecrafting.locate(player, 2982, 3514); else if (itemId <= 1712 && itemId >= 1706 || itemId >= 10354 && itemId <= 10362) player.getDialogueManager().startDialogue("Transportation", "Edgeville", new WorldTile(3087, 3496, 0), "Karamja", new WorldTile(2918, 3176, 0), "Draynor Village", new WorldTile(3105, 3251, 0), "Al Kharid", new WorldTile(3293, 3163, 0), itemId); else if (itemId == 1704 || itemId == 10352) player.getPackets() .sendGameMessage( "The amulet has ran out of charges. You need to recharge it if you wish it use it once more."); else if (itemId >= 3853 && itemId <= 3867) player.getDialogueManager().startDialogue("Transportation", "Burthrope Games Room", new WorldTile(2880, 3559, 0), "Barbarian Outpost", new WorldTile(2519, 3571, 0), "Gamers' Grotto", new WorldTile(2970, 9679, 0), "Corporeal Beast", new WorldTile(2886, 4377, 0), itemId);} /* } public static void handleItemOption7(Player player, int slotId, int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getLockDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; if (!player.getControlerManager().canDropItem(item)) return; player.stopAll(false); if (item.getDefinitions().isOverSized()) { player.getPackets().sendGameMessage("The item appears to be oversized."); player.getInventory().deleteItem(item); return; } if (item.getDefinitions().isDestroyItem()) { player.getDialogueManager().startDialogue("DestroyItemOption", slotId, item); return; } if (player.getPetManager().spawnPet(itemId, true)) { return; } player.getInventory().deleteItem(slotId, item); if (player.getCharges().degradeCompletly(item)) return; World.addGroundItem(item, new WorldTile(player), player, false, 180, true); player.getPackets().sendSound(2739, 0, 1); } */ } public static void handleItemOption7(Player player, int slotId, int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getLockDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; if (!player.getControlerManager().canDropItem(item)) return; player.stopAll(false); if (item.getDefinitions().isOverSized()) { player.getPackets().sendGameMessage("The item appears to be oversized."); player.getInventory().deleteItem(item); return; } if (item.getDefinitions().isDestroyItem()) { player.getDialogueManager().startDialogue("DestroyItemOption", slotId, item); return; } if (player.getPetManager().spawnPet(itemId, true)) { return; } player.getInventory().deleteItem(slotId, item); if (player.getCharges().degradeCompletly(item)) return; World.addGroundItem(item, new WorldTile(player), player, false, 180, true); player.getPackets().sendSound(2739, 0, 1); } public static void handleItemOption8(Player player, int slotId, int itemId, Item item) { player.getInventory().sendExamine(slotId); } public static void handleItemOnNPC(final Player player, final NPC npc, final Item item) { if (item == null) { return; } player.setCoordsEvent(new CoordsEvent(npc, new Runnable() { [MENTION=15855]Over[/MENTION]ride public void run() { if (!player.getInventory().containsItem(item.getId(), item.getAmount())) { return; } if (npc instanceof Pet) { player.faceEntity(npc); player.getPetManager().eat(item.getId(), (Pet) npc); return; } } }, npc.getSize())); } }[/code] And here's my MoneyPouch.java: [code]package com.rs.game.player.content; import java.io.Serializable; import java.text.DecimalFormat; import com.rs.game.item.Item; import com.rs.game.player.Bank; import com.rs.game.player.Player; public class MoneyPouch implements Serializable { private static final long serialVersionUID = -3847090682601697992L; private transient Player player; public boolean usingPouch; public int amount; public MoneyPouch(Player player) { this.player = player; } public void switchPouch() { usingPouch = !usingPouch; refresh(true); } private void refresh(boolean swap) { if (swap) player.getPackets().sendRunScript(5557, 1); player.getPackets().sendRunScript(5560, getCoinAmount()); } public void sendDynamicInteraction(int amount, boolean remove) { int newAmount = remove ? amount - player.coinamount : amount + player.coinamount; if (usingPouch || !usingPouch) { Item item = new Item(995, amount - (remove ? 0 : Integer.MAX_VALUE)); if (remove) { if (newAmount < 0) { if (player.getInventory().containsItem(item.getId(), item.getAmount())) { player.getPackets().sendGameMessage("You dont have enough money in your pouch. Your coins will be taken from your inventory instead."); player.getInventory().deleteItem(item); } else player.getPackets().sendGameMessage("You don't have enough coins."); return; } else if (player.coinamount == 0){ player.getPackets().sendGameMessage("Your money-pouch is currently empty."); return; } else if (player.getInventory().getItems().getNumberOf(995) + player.coinamount > 2147483647 || player.getInventory().getItems().getNumberOf(995) + player.coinamount <= 0) { int dif = 2147483647 - player.getInventory().getItems().getNumberOf(995); if (dif > 0) player.getPackets().sendRunScript(5561, new Object[] {0, dif}); player.coinamount -= dif; player.getPackets().sendRunScript(5560, new Object[] {player.coinamount}); if (dif > 0) player.getInventory().addItem(995, dif); if (dif > 0) player.getPackets().sendGameMessage(getFormattedNumber(dif) +" coins have been removed from your money pouch."); return; } else player.getPackets().sendRunScript(5561, new Object[] {0, amount}); player.coinamount -= amount; player.getPackets().sendRunScript(5560, new Object[] {player.coinamount}); player.getInventory().addItem(995, amount); player.getPackets().sendGameMessage(getFormattedNumber(amount) +" coins have been removed from your money pouch."); } else { if (newAmount > 2147483647 || newAmount <= 0) { int dif = 2147483647 - player.coinamount; if (dif > 0) player.getPackets().sendRunScript(5561, new Object[] {1, dif}); player.coinamount += dif; player.getPackets().sendRunScript(5560, new Object[] {player.coinamount}); if (dif > 0) player.getInventory().deleteItem(995, dif); if (dif > 0) player.getPackets().sendGameMessage(getFormattedNumber(dif) +" coins have been added to your money pouch."); return; } else player.getPackets().sendRunScript(5561, new Object[] {1, amount}); player.coinamount += amount; player.getPackets().sendRunScript(5560, new Object[] {player.coinamount}); player.getInventory().deleteItem(995, amount); player.getPackets().sendGameMessage(getFormattedNumber(amount) +" coins have been added to your money pouch."); } setAmount(newAmount, amount, remove); } else { if (remove) player.getInventory().deleteItem(new Item(995, amount)); else player.getInventory().addItem(new Item(995, amount)); } } public String getFormattedNumber(int amount) { return new DecimalFormat("#,###,##0").format(amount).toString(); } public void sendExamine() { player.getPackets().sendGameMessage("Your money pouch current contains " + getFormattedNumber(getCoinAmount()) + " coins."); } private void setAmount(int coinAmount, int addedAmount, boolean remove) { this.setCoinAmount(coinAmount); player.getPackets().sendRunScript(5561 , remove ? 0 : 1, addedAmount); refresh(false); } public int getCoinAmount() { return player.coinamount; } public void setCoinAmount(int coinAmount) { this.player.coinamount = coinAmount; } }[/code] Any help would be appreciated as I cannot figure it out :(
  4. tmink03

    Raising Max Cash

    I raised the values in both client and server but when i got more than 2B cash the client gives me an error when i try to login to that character although a character with less than 2B will log in without any problems. When i login with the bugged account it gives me this error: Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 65410 at ItemDef.forID(ItemDef.java:11) at ItemDef.getSprite(ItemDef.java:5647) at client.drawInterface(client.java:9872) at client.drawTabArea(client.java:2933) at client.drawGameScreen(client.java:9661) at client.processDrawing(client.java:10557) at RSApplet.run(RSApplet.java:111) at client.run(client.java:5932) at java.lang.Thread.run(Unknown Source) Could someone please help me fix this?
  5. Hi, i would like to change the max cash in my matrix server from 2147483647 to like 20b where can i change that amount? Thanks for youre respond.
  6. Homepage: [URL="http://www.rune-blaze.com"]Rune-Blaze - Home[/URL] Forums: Invision Power Board (coming soon) Webclient: [URL="http://rune-blaze.com/webclient.html"]Rune-Blaze - Webclient[/URL] Downloadable Client: [url]https://dl.dropboxusercontent.com/u/...Rune-Blaze.jar[/url] Donate: Auto Donation System (coming soon) Vote: Auto Reward Vote System (coming soon) Highscores: Rune-Blaze Highscores (coming soon) Welcome to Rune-Blaze. We are a community with an aim of restoring the land of awesomeness, the amazing content in our game is sure to entertain any player who longs to re-live the real age of good runescape private servers. We have taken the time and efforts to present flawless and smooth game-play when our official server is launched. Our game will also feature new and unique content that will be found exclusively on Rune-Blaze. Our game engine is also flexible to emulate newer cache revisions which we may be considered based on what the community prefers. Rune-Blaze is a community based server. This means our development team focuses on bringing all of the communities most demanded features to life as soon as possible. Our website and game will revolve around our community base and what makes the community as a whole content and enjoying our game to the fullest. What you see and read about below is exactly what you will experience when you log in to play Rune-Blaze; even the smallest of details have been incorporated into our game to provide the same look and feel from the era(s) that we are trying to emulate. Rune-Blaze is a pure 742 source (not loading 742) which is kinda unique in private servers. We respect jagex and runescape and we love runescape and support it. We focus mainly on the development of the community and economy and make sure our players are getting the best performance in which they can possibly obtain. We provide a friendly, and diverse community. We do not affiliate ourselves with other private servers, and do not compete with others. We listen to the community. The community is the most important part of any game or server and on Rune-Blaze you will find yourself in one of the best RSPS communities. We also need excellent staff, and we work every day to improve Rune-Blaze. Rune-Blaze is an economy server. P.S. Please understand we don't actually plan on creating a complete remake of Runescape we just want to re-create most of the content to supply players with a variety of things to do on their adventure. [COLOR="#0000FF"]Alan - Server Owner And Developer. Open - Server Developer. Open - Website Developer. Open - Graphics Designer.[/COLOR] key [COLOR="#00FF00"]green = complete[/COLOR] [COLOR="#FF8C00"]orange = in progress and started[/COLOR] [COLOR="#FF0000"]red = not started[/COLOR] Spoiler for Skills: [COLOR="#00FF00"]Combat Melee Range Magic Prayer Runecrafting Construction Dungeoneering Agility Herblore Thieving Crafting Fletching Slayer Hunter Mining Smithing Fishing Cooking Firemaking Farming Summoning [/COLOR] Spoiler for Bosses: [COLOR="#00FF00"]Godwars Bosses Corporeal Beast Queen Black Dragon Kalphite Queen Tormented Demons Bork Barrelchest Dagannoth Kings Frost Dragons[/COLOR] Spoiler for Minigames: [COLOR="#00FF00"]Dominion Tower Clan Wars Pest Control Fight Kiln Fight Caves Warrior Guild Barrows[/COLOR] Spoiler for Quests: [COLOR="#00FF00"]Recipe For Diaster[/COLOR] Spoiler for Features: [COLOR="#00FF00"]-Completed cities: Lumbridge, Al Kharid, Draynor, Port Sarim... -friends chat with changing ranks and kicking players -Over 50 accessible monster loctions, dungeons, etc. all completed with objects and npcs. -Money pouch implementation to everything including shops, dialogues, etc. -Unreal graphics. You'll be blown away! -Fullscreen for amazing view of our server. -Amazing content for an enjoyable experience. -Terrific skilling for all those lvl3 skillers -The newest items to show off to your buddies! -Crystal key chest -proper music tab with adding songs to favourites and removing. -Money pouch -Dicing. -Emotes. -Good Economy. -Old and new items look -charm drops from NPC's -All latest items now have bonuses -trimmed Completionist cape requirements -beginner tutorial -Bones on altar -Custom Dung -Perfect switching -Unique home -Great PvP and switching -Donator Zone (Shops included, more features...) -Unique staffzone -Jail like in rs -Spirit tree teleports -Working grand exchange -Loyalty points system -PVM points system -Pk points system -Vote points -All needed items in the shops -Reset skill option -Market custom zone -Lot's more![/COLOR] Spoiler for Media: coming soon... [COLOR="#0000FF"]Jesper Matrix Rune-Server Supporters Google Everyone That Helped And Supported[/COLOR] [COLOR="#0000FF"]More To Come...[/COLOR]
  7. public static int getXPForLevel(int level) { int points = 0; int output = 0; for (int lvl = 1; lvl <= level ; lvl++) { points += Math.floor(lvl + 300.0 * Math.pow(2.0, lvl / 7.0)); if (lvl >= level) { return output; } output = (int) Math.floor(points / 4); } return 0; } i'm pretty sure this is the code to do it but i don't know how to get it to work.
  8. LynoHD

    718 max level

    How do i set max level in combat and skills on an 718 source?
  9. I've searched through google, runelocus, rune-server, and moparscape and I still don't really know what to do. I want to only change one skill (skill 22) to a max level of 120. I don't know of really any other way to re-word my searches. I ask for your help or for a guide you can recommend. I want all other skills to stay 99. I just need skill 22 to go up to 120.
  10. is there a way to change the max hit of weapons? because my claws can hit over 1k and my vesta longsword hit 1457 max with spec thanks
  11. can someone please tell me how to fix these highscores? [IMG]http://i41.tinypic.com/30l1nw7.png[/IMG] the total xp went over 2,147M and is now negative and counting down... what are my options in fixing this?
  12. does anybody know how i could fix my money for example if you have 2b in your inventory and you pick up 300m or you receive 300m from a stake you cash instantly gets reset to 1gp no matter what. so if somebody could either link me or please give me the code to fix i would love you <3
  13. dwager

    max cape emote pi

    how do i make my max cape have a emote even my completionist cape! its say You must be wearing a skillcape to do this emote and my cape aare in the good spotts please help can someone find me a good tutorial for add max cape emote and completionist cape ! thanks for helping[B][/B]
  14. Basically... where do i go to change the Maximum combat level? iDarkSpartan.
  15. Ok so I know with a PI 317 you can change in config.java: [code]public static final int MAX_PROCESS_PACKETS[/code] But in a delta base 317 how do you change the MAX_PROCESS_PACKETS? I looked all over, What is the equivalent? I need to change it so people don't get disconnect when they use my bank all command. [code]case 31194: //banks all items for(int l = 0; l <= 27; l++) { System.out.println(l); c.bankItem(c.playerItems[l], l, c.playerItemsN[l]); } break;[/code]
  16. Anyways, how do I change my max stat to like 150? (Usually 99) I am just wondering if it is possible, but I have seen it before in a few different private servers. Just say the instructions below please :) Thanks!! -Dirt
  17. Administrators have Owner crown in Private Message, Moderators have Administrator crown in Private Message. I changed the Max level to 110, But when my players go past 99 it goes 100/99, 101/99, 102/99, etc. Is there anyway to fix both of these problems? Thanks!
  18. Stxalth

    Max Stat/Level

    The title says it all , "How do I change my server's Max Stat/Level ?" I've been looking for the answer and can't find it :L . I have a PI by the way . Help me please (:
  19. Hello again, Im usin PI still. I changed max Skill Levels to 135, but they drain as if I had used like a strength or attack potion. I'm assuming it's because I need to change what level skills drain down to, but I can't find it in my source. I tried looking in Potions.java and player.java, and did a general search through my whole source looking for "drain". If anyone knows how to make it so the level will maintain 135 and not drain lemme know. Also don't "say google it" because I looked all over for a fix.
  20. pixell

    max arrows

    hey I have been trying to take out the check for max cash in 562 and put it into 700 it works with money but when I kill something with a bow and pick up my arrows it gives me max arrows heres the code [CODE] public Item(int id, int amount, boolean amt0) { this.id = (short) id; this.getDefinitions().getItemDefinitions(id); this.amount = amount; if (this.amount <= 0 && !amt0) { this.amount = 2147000000; } }[/CODE]and from 562 [code] public Item(int id, int amount) { this.id = id; this.itemDefinition = ItemDefinition.forId(id); this.amount = amount; if(this.amount <= 0) { this.amount = 2147000000; } }[/code]
  21. I am 92 Cb, RS Name: Solocid Rules: 1. No armor 2. No corrupt & Dung weapons 3. We stake 6M in items (i.e Full Rune G etc...) because cash staking was ruined by Jagex 4. We go to a world with less people 5. Max Cb I can take is 105 Peace
  22. How do you change how high a certain player hits. Like with a melee weapon for example... A player has a rune scimitar. Their max hit is like 10. How would you change this value, but only for this player?
  23. Hi, can anyone explain to me how I can make my server have a 2 ip max? Where would I put the code Under what? The code:
  24. Dean

    Max - RuneScape

    Anyone ever notice this guy? I just did, lol.. [url]http://screensnapr.com/v/utNrSd.png[/url]
  25. [COLOR="#000000"][SIZE=5]This is not much more than a convert from Sonicforce's RuneEscape Max Cape Emote Release with some add-ins.[/SIZE][/COLOR] [video=youtube;LObubvgmcik]http://www.youtube.com/watch?feature=player_embedded&v=LObubvgmcik[/video] This is his video display of it. Anyway, here it goes. Step 1: Add in your Player class - [CODE] public transient NPC Max; [/CODE] Step 1.5: Find [CODE]turkeydelay = -1;[/CODE] and under that add [CODE]public int Maxdelay = 0;[/CODE] Step 2: Search in the same class - [CODE] turkeydelay > 0 [/CODE] Step 3: Under that add this - [CODE] if (Maxdelay == 30) { Max = new NPC (1224); Max.readResolve(); World.getInstance().getNpcs().add(Max); Max.setLocation(Location.location(getLocation().ge tX(), getLocation().getY()+1, getLocation().getZ())); Max.graphics(1482); animate(1179); turnTo(Max); } if (Maxdelay == 28) { animate(1180); Max.graphics(1486); } if (Maxdelay == 27) { Max.animate(1436); } if (Maxdelay == 26) { animate(1181); Max.graphics(1498); } if (Maxdelay == 25) { animate(1182); Max.animate(1448); } if (Maxdelay == 23) { animate(1250); } if (Maxdelay == 21) { animate(1251); graphics(1499); Max.animate(1454); } if (Maxdelay == 19) { Max.graphics(1315); } if (Maxdelay == 16) { animate(1291); graphics(1505); Max.animate(1440); Max.graphics(1598); } if (Maxdelay == 9) { Max.setHidden(true); Max.setDead(true); } if (Maxdelay == 8) { Max = new NPC (1224); Max.readResolve(); World.getInstance().getNpcs().add(Max); Max.setLocation(Location.location(getLocation().ge tX(), getLocation().getY()+1, getLocation().getZ())); // Max.graphics(2737, 0); } if (Maxdelay == 6) { Max.setHidden(true); Max.setDead(true); Maxdelay = -1; } if (Maxdelay > 0){ Maxdelay--; } [/CODE] Step 5: Add this in your Skillcape class - [CODE] /* * Max Cape */ case 20767: player.Maxdelay = 30; break; [/CODE] Step 6: Save, Compile, and you're done. Credits: 60% - Sonicforce41 for releasing the RuneEscape version 20% - hellman for releasing gfx and emotes 10% - Beuner for converting 10% - iRepo for fixing stuff up and releasing. Hope this helps. Known bugs: The first Graphic; 1482, happens twice. - I'm currently looking into fixing this.
×