Jump to content

Search the Community

Showing results for tags 'money'.



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

  1. Hi! i wonder if anyone knows how i can make myself able to buy stuff from stores using the money pouch? :D i also wonder if someone knows how i can move the teleport panel from the notes, to the quest tab? :D
  2. Hey all, Not sure if this has been asked before, if it has I must have missed it. But if anyone could point me in the direction of how I would go about checking how many coins there are in total on the server, counting coins in player banks, inventories and money pouches for all players? I have a few ideas of how to do it, but my ideas may be quite convoluted. Any help would be hugely appreciated! :) Thanks.
  3. Hello everyone, I have started playing rs again, and when I checked my bank, I had like 3m on rs3 and 5m on os. These are my stats: RS3 : [url]http://prntscr.com/7b3bst[/url] OS : [url]http://prntscr.com/7b3dmm[/url] How do i make money with these stats on both accounts? [B]I am member btw![/B]
  4. Alright, well I started working on my client today and everything was going smooth added coin pouch came with no errors so I was getting ready to move on to the next thing however I decided to log on and check what it looks like and if it needs any modifications but when I logged in I didn't have a coin pouch, or so I thought apparently everything is added but the sprite isn't visible in the client+ it doesn't open up the interface to see what would be in the money pouch anyone know what I could of possibly done wrong that the sprite isn't showing up nor does it open up the interface? [url]http://prntscr.com/1dqyvx[/url] <--- Proof the coin pouch is there
  5. Skype: Arrowzflame101 Or tell me why should I hire you in forums.
  6. Don't worry about nothing I have money to pay people. I just want someone like "Jack" use to run Deadlypkers. That's the best server of all time. If someone can do that I will pay you. Format that you need use so I can tell if I should invite you. Name: Why I should choice you to be my coder? Skype: Have you ever made a RSPS? You ever been a admin or mod before in the past? Do you know java and C++? Can you create a game that people likes if so explain? Are you willing to put time in it? I have the money but do you have the skills I'm looking for? Can you fix bugs easy? Can you create a system that will run great with out getting hacked? Can you make a nice website that will be easy to understand?
  7. [CENTER][COLOR="#FF0000"]IF YOU DID THIS BEFORE 9/28/2013 REDO IT FOR HOVERBUTTON SUPPORT![/COLOR][/CENTER] This was the first interface, I have ever made from scratch. It needs some work, I'm still trying to find out how to drawClickedButtons but I think it's pretty nice for my first one. What You're Adding: [CENTER][video=youtube;Od6DAUCcuEw]http://www.youtube.com/watch?v=Od6DAUCcuEw&feature=youtube_gdata_player[/video][/CENTER] Download these Sprites [COLOR="#FF0000"][REUPLOADED 8/18/14][/COLOR] [URL=https://www.dropbox.com/s/4axot7u9apad0pe/MoneyVault.zip]MoneyVault.zip - 141 KB[/URL] Okay now for the tutorial: First, In RSInterface.java add this Interface [CODE] public static void moneyTab(TextDrawingArea[] TDA) { RSInterface intmoneyTab = addTab(8000); intmoneyTab.children = new int[11]; intmoneyTab.childX = new int[11]; intmoneyTab.childY = new int[11]; intmoneyTab.children[0] = 8001; intmoneyTab.childX[0] = 0; intmoneyTab.childY[0] = 0; //Main sprite addSprite(8001, 0, "Interfaces/MoneyVault/sidebar"); intmoneyTab.children[1] = 8002; intmoneyTab.childX[1] = 87; intmoneyTab.childY[1] = 75; addText(8002, "1", TDA, 0, 16750623, true, true); intmoneyTab.children[2] = 8003; intmoneyTab.childX[2] = 130; intmoneyTab.childY[2] = 92; addHoverButton(8003, "Interfaces/MoneyVault/deposit", 0, 32, 32, "Deposit to Vault", 1803, 8004, 1); intmoneyTab.children[3] = 8004; intmoneyTab.childX[3] = 130; intmoneyTab.childY[3] = 92; addHoveredButton(8004, "Interfaces/MoneyVault/deposit", 1, 32, 32, 8005); intmoneyTab.children[4] = 8006; intmoneyTab.childX[4] = 17; intmoneyTab.childY[4] = 204; addHoverButton(8006, "Interfaces/MoneyVault/taxBag", 0, 32, 32, "Purchase a Tax Bag", -1, 8007, 1); //TODO: Change the tooltip text intmoneyTab.children[5] = 8007; intmoneyTab.childX[5] = 17; intmoneyTab.childY[5] = 204; addHoveredButton(8007, "Interfaces/MoneyVault/taxBag", 1, 32, 32, 8008); //TODO: Change the tooltip text intmoneyTab.children[6] = 8009; intmoneyTab.childX[6] = 130; intmoneyTab.childY[6] = 204; addHoverButton(8009, "Interfaces/MoneyVault/yellBubble", 0, 32, 32, "Purchase Yell Tickets", -1, 8010, 1); intmoneyTab.children[7] = 8010; intmoneyTab.childX[7] = 130; intmoneyTab.childY[7] = 204; addHoveredButton(8010, "Interfaces/MoneyVault/yellBubble", 1, 32, 32, 8011); intmoneyTab.children[8] = 8012; intmoneyTab.childX[8] = 20; intmoneyTab.childY[8] = 94; addHoverButton(8012, "Interfaces/MoneyVault/withDraw", 0, 32, 32, "Withdraw from Vault", 1804, 8013, 1); intmoneyTab.children[9] = 8013; intmoneyTab.childX[9] = 20; intmoneyTab.childY[9] = 94; addHoveredButton(8013, "Interfaces/MoneyVault/withDraw", 1, 32, 32, 8014); intmoneyTab.children[10] = 8016; intmoneyTab.childX[10] = 87; intmoneyTab.childY[10] = 135; addText(8016, "Balance", TDA, 0, 16750623, true, true); } [/CODE] Also in RSInterface, add under "aClass44 = archive;" [CODE] moneyTab(textDrawingAreas); [/CODE] Now open Client.java and Search for [CODE]if(friendsListAction == 2 && friendsCount > 0) {[/CODE] under that If statement add these [CODE] if(interfaceButtonAction == 502 && promptInput.length() > 0) { inputString = "::deposit "+promptInput; System.out.println(inputString); sendPacket(103); } if(interfaceButtonAction == 503 && promptInput.length() > 0) { inputString = "::withdraw "+promptInput; System.out.println(inputString); sendPacket(103); } [/CODE] Now still in Client.java search for [CODE]private boolean promptUserForInput([/CODE] in that with the rest of these add these: [CODE] if(j == 1803) { inputTaken = true; messagePromptRaised = true; amountOrNameInput = ""; inputDialogState = 0; interfaceButtonAction = 502; aString1121 = "Enter Amount to Deposit"; } if(j == 1804) { inputTaken = true; messagePromptRaised = true; amountOrNameInput = ""; inputDialogState = 0; interfaceButtonAction = 503; aString1121 = "Enter Amount to Withdraw"; } [/CODE] IF NEEDED: Declare this Int and Method [CODE] static int interfaceButtonAction = 0; void sendPacket(int packet) { if (packet == 103) { stream.createFrame(103); stream.writeWordBigEndian(inputString.length() - 1); stream.writeString(inputString.substring(2)); inputString = ""; promptInput = ""; interfaceButtonAction = 0; } } [/CODE] Thanks for viewing my post, I will be posting the Server - Sided part of this as soon as possible. Edit: [COLOR="#00FF00"]Server Sided:[/COLOR] [URL="http://www.runelocus.com/forums/showthread.php?101633-Money-Vault-Server-Sided&p=789467#post789467"]http://www.runelocus.com/forums/showthread.php?101633-Money-Vault-Server-Sided&p=789467#post789467[/URL] PLEASE MOVE TO CLIENT SECTION SORRY!
  8. Now I know this was created before so before we begin credits to [URL="http://www.************.org/members/eclipse/"]Eclipse[/URL] [URL="http://www.************.org/runescape-development/rs2-server/snippets/498316-server-sided-money-vault-like-ss.html"]His Version[/URL] for the base I used. What You're Adding: [CENTER][video=youtube;Od6DAUCcuEw]http://www.youtube.com/watch?v=Od6DAUCcuEw&feature=youtube_gdata_player[/video][/CENTER] Okay so begin by creating a class called "MoneyVault" and replace everything in there with this: [CODE] package Kefalonia.content; import core.util.Misc; import Kefalonia.game.players.Client; public class MoneyVault { /** * [MENTION=75098]Para[/MENTION]m c - Client that's withdrawing the money * [MENTION=75098]Para[/MENTION]m amount - amount being withdrawn */ public static void withdraw(Client c, int amount) { String amt = Integer.toString(amount); if (amt.toLowerCase().contains("k")) { amt.replace("k", ""); amount = (Integer.parseInt(amt) * 1000); } if (amt.toLowerCase().contains("m")) { amt.replace("m", ""); amount = (Integer.parseInt(amt) * 1000000); } if (amt.toLowerCase().contains("b")) { amt.replace("b", ""); amount = (Integer.parseInt(amt) * 1000000000); } if (c.moneyVault >= amount) { if ((c.getItems().getItemAmount(995) + amount) > 2147000000) { c.sendMessage("Please bank your money, withdrawing over max cash would make the difference disappear.", "C00000", "000000"); return; } if (amount >= 0) { c.sendMessage("Transaction Successful, You withdrew " + Misc.insertCommasToNumber(amt) + " coins out of your Money Vault!", "01C86F", "000000"); c.moneyVault -= amount; c.getItems().addItem(995, amount); sendBalance(c); c.getPA().sendFrame126("@[email protected] -"+Misc.insertCommasToNumber(Integer.toString(amount)), 8002); } else { c.sendMessage("You can't take out a negative amount!", "C00000", "000000"); } } else { c.sendMessage("You don't have that much!", "C00000", "000000"); } } /** * [MENTION=75098]Para[/MENTION]m c - client that's storing the coins * [MENTION=75098]Para[/MENTION]m amount - amount that's being stored in vault */ public static void deposit(Client c, int amount) { boolean addMoney = false; String amt = Integer.toString(amount); if (amt.toLowerCase().contains("k")) { amt.replace("k", ""); amount = (Integer.parseInt(amt) * 1000); } if (amt.toLowerCase().contains("m")) { amt.replace("m", ""); amount = (Integer.parseInt(amt) * 1000000); } if (amt.toLowerCase().contains("b")) { amt.replace("b", ""); amount = (Integer.parseInt(amt) * 1000000000); } if (c.getItems().playerHasItem(995, amount)) { if (c.moneyVault >= 2147000000 || (c.moneyVault + amount >= 2147000001)) { c.sendMessage("You bank cannot hold that much. The max it holds is 2,147,000 GP.", "C00000", "000000"); return; } if (amount >= 0) { c.sendMessage("Transaction Successful, You have deposited " + Misc.insertCommasToNumber(amt) + " coins to your Money Vault!", "01C86F", "000000"); c.getItems().deleteItem(995, amount); addMoney = true; } else { c.sendMessage("You can't store negative amounts!", "C00000", "000000"); } if (addMoney) { c.moneyVault += amount; sendBalance(c); c.getPA().sendFrame126("@[email protected] +"+Misc.insertCommasToNumber(Integer.toString(amount)), 8002); } } else { c.sendMessage("You don't have that much!", "C00000", "000000"); } } public static void sendBalance(Client c) { String balance = Long.toString(c.moneyVault); String extention = ""; int thousands = c.moneyVault / 1000; int millions = c.moneyVault / 1000000; int billions = c.moneyVault / 1000000000; if (c != null) { if (c.moneyVault > 0 && c.moneyVault <= 998) { extention = "GP"; /* * Displaying in the thousands */ } else if (c.moneyVault > 999 && c.moneyVault <= 999999) { extention = Integer.toString(thousands) + "K"; /* * Displaying in the millions */ } else if (c.moneyVault > 999999 && c.moneyVault <= 999999999) { extention = Integer.toString(millions) + "M"; /* * Displaying in the billions */ } else if (c.moneyVault > 999999999) { extention = Integer.toString(billions) + "B"; } c.getPA().sendFrame126("Last Transaction", 8002); c.getPA().sendFrame126(Misc.insertCommasToNumber(balance) + " (" + extention + ")", 8009); } } } [/CODE] [COLOR="#FF0000"]PLEASE REMEMBER, YOU MUST CHANGE THE IMPORTS AND PACKAGE![/COLOR] Next open Client.java and search for [CODE]public void initialize()[/CODE] somewhere in there place; Once again [COLOR="#FF0000"]REMEMBER YOUR IMPORT![/COLOR] [CODE]MoneyVault.sendBalance(this);[/CODE] Still in Client.java add (Credits to [URL="http://www.************.org/members/jason/"]Jason[/URL] for the sendMessage(String s, String color) method) [CODE] public void sendMessage(String s, String color) { if (getOutStream() != null) { s = "<col="+color+">" + s + "</col>"; outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } public void sendMessage(String s, String color, String shadow) { if (getOutStream() != null) { s = "<col="+color+"><shad="+shadow+"> " + s + "</shad></col>"; outStream.createFrameVarSize(253); outStream.writeString(s); outStream.endFrameVarSize(); } } [/CODE] Now your done with Client.java, Open PlayerSave.java Add this: [CODE]} else if (token.equals("storedMoney")) { p.moneyVault = Integer.parseInt(token2);[/CODE] and this: [CODE]characterfile.write("storedMoney = ", 0, 14); characterfile.write(Integer.toString(p.moneyVault), 0, Integer .toString(p.moneyVault).length()); characterfile.newLine();[/CODE] Your all done, if I missed something or you have an error post it, I'll help ASAP! [COLOR="#00FF00"]Client Sided:[/COLOR] [URL="http://www.runelocus.com/forums/showthread.php?101632-Money-Vault-(First-Interface-I-ve-Ever-Made)l"]http://www.runelocus.com/forums/showthread.php?101632-Money-Vault-(First-Interface-I-ve-Ever-Made)[/URL]
  9. devinb

    Money Pouch

    Hi, My money pouch seems to have a bit of an issue not sure why it does this or the cause but, I can put money into it but when I try to take money out it stays in there and I just disconnect.. need help with this please. Okay sorry I didn't realize I could take the money out in a different way... its only when I do 100m ill lag but if I did 100,000000 it takes it out.
  10. Beastly14

    Money Pouch

    Does anyone know how to make it so when you buy something it automatically comes out of the pouch.
  11. 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 :(
  12. Hey, So I've been working on a new side project and it's a blog that shows you how to make money. I'm going to try to write one article a day until I have 50 or so articles then going to move to 3 articles a week. Defiantly check it out as it's a great place to start learning how to earn online. [url]http://elitemarketingclub.com/[/url] If you have any feedback or suggestions about stuff that I should write about let me know, I'd love to hear from you.
  13. [CENTER][COLOR="#800080"][SIZE=7]Omni-Matic[/SIZE][/COLOR][/CENTER] [img]http://i.imgur.com/DhZ6Pap.png[/img] [COLOR="#800080"][SIZE=6][CENTER]The departure for the money train is calling, and we're handing out tickets! Omni-Matic is an ongoing project/business, dealing in the harvestation of the new profound OMC(OmniCoin Cryptocurrency).[/CENTER][/SIZE][/COLOR] For those of you who don't know what a CryptoCurrency is: [SPOILER=ABOUT CRYPTOCURRENCY] Cryptocurrency is a kind of digital currency that uses cryptography for security and anti-counterfeiting measures. Public and private keys are often used to transfer cryptocurrency between individuals. As a counter-culture movement that is often connected to cypherpunks, cryptocurrency is essentially a fiat currency. This means users must reach a consensus about cryptocurrency's value and use it as an exchange medium. However, because it is not tied to a particular country, its value is not controlled by a central bank. In the case of of Bitcoin, which is the leading functioning example of cryptocurrency, value is determined by market supply and demand, meaning that it behaves much like precious metals, like silver and gold.[/SPOILER] [LEFT][I][COLOR="#FF0000"] What does this mean to you? Well you could be mining such currency, generating a disposable income for whatever you may desire, save up for that new graphics card, donate to your favourite RSPS'? We charge no fee to get you up and running, we also will pay you weekly for the amount you have mined, not skimming you at all. Some features of the site: [COLOR="#00FF00"]LiveChat system(ACTIVE)[/COLOR] [COLOR="#FFA500"]My Wallet(Soon to be ACTIVE)[/COLOR] [COLOR="#FF8C00"][COLOR="#FF8C00"]Ticket System(ACTIVE BUT FORM IS BEING SCRIPTED)[/COLOR] Web-Miner(Soon to be ACTIVE)[/COLOR] [COLOR="#00FF00"]Desktop Miner, with the option of GPU(Graphics Power Usage) or CPU(Computer Power Usage) mining.(ACTIVE) [/COLOR] MUCH MORE TO BE ADDED TO THIS LIST! Our sales department watch the market of the OMC for the slightest fluctuation, so we can sell the coin for the highest price possible. We pay our miners/workers on a weekly basis, we also supply them with a graph of their progress in mining through the week. We currently have 28 dedicated miners, after only three days of recruitment; the more miners the stronger our KH/s rate is and the more OmniCoin harvested for OUR benefit. We understand right now, mining OMC may not seem too beneficial, but it is a well known currency with major potential, imagine going back in time and buying into BitCoin or even the Euro, while it was still cheap? We're offering you that oppurtunity with no fee or investment to yourself, you invest with the uptime of your Windows/Linux/Macintosh device(s). By now you're begging for the link to this oppurtunity of a life time right? Well here's my first gift to you: [B][url=http://omni-matic.com]www.omni-matic.com[/url][/B] Have a quick read through if you like, and speak to one of the support staff on the LiveChat to get you set up. Or if you can't catch anyone on the LiveChat which is unlikely, add me on [B]Skype: Maxieg4[/B][/COLOR][/I][/LEFT] [COLOR="#800080"]Thank you for your time and patience, Max Administrator of Omni-Matic[/COLOR]
  14. scapinscape

    667 money pouch

    how do i add Money pouch to a 667 rsps?
  15. I am looking a coder for my rsps to fix few teleport and commands+remove donator items i tryed dont worked i am a new programmer and help make vote system u make donator system u got all donator cash from server i dont need +owner.Write me at runelocus forum or add skype:VermiHunter (Deák Dominik) If you are interested. For Hungary: Ha van magyar akor jöjjön sok magyar lesz ezen a szerveren ha sikerül.
  16. Hey guys, I haven't seen this anywhere out anywhere so I thought I would release it for you guys. This didn't take me long to make at all and was relatively simple. I would like to point out that my [COLOR="#008000"]Money Pouch[/COLOR] method [COLOR="#FF0000"]may be different[/COLOR] from [COLOR="#FF0000"]yours[/COLOR], so change anything around if needed. I am posting the codes with the appropriate class file as I assume you would know where to put it. [COLOR="#FF0000"]Player.java[/COLOR] [CODE] public int moneyPouchTrade; public boolean addedFromPouch;[/CODE] [COLOR="#FF0000"]Trade.java[/COLOR] [CODE] public void addMoneyPouch(int value) { Item item = player.getInventory().getItem(0); Item[] itemsBefore = items.getItemsCopy(); item = new Item(995, value); items.add(item); refreshItems(itemsBefore); cancelAccepted(); player.addedFromPouch = true; }[/CODE] [COLOR="#FF0000"]WorldPacketsDecoder.java[/COLOR] [CODE]Integer add_To_Trade = (Integer) player.getTemporaryAttributtes().remove("add_Money_Pouch_To_Trade"); if (add_To_Trade == null) return; if (value <= 0) return; if (player.getTemporaryAttributtes().remove("add_money_pouch_trade") != null) { /* * Below contains adding coins to trade. */ if (value > player.getPouch().getMoney()) { player.out("You do not have enough coins in your money pouch."); return; } else if (value <= player.getPouch().getMoney()) { player.getPouch().removeMoney(value); player.getPackets().sendRunScript(5561, 0, value); player.getPouch().refreshPouch(true); player.moneyPouchTrade = value; player.getTrade().addMoneyPouch(value); } }[/CODE] [COLOR="#FF0000"]ButtonHandler.java[/COLOR] [CODE]} else if (componentId == 53) { player.getTemporaryAttributtes().put("add_Money_Pouch_To_Trade", 995); player.getTemporaryAttributtes().put("add_money_pouch_trade", Boolean.TRUE); player.getPackets().sendRunScript(108, new Object[] { " Your money pouch contains " + player.getPouch().getMoney() + " coins." + " How much would you like to offer?"}); }[/CODE] If you have any further comments, questions, or concerns, don't hesitate to ask me! Thank you and enjoy, ~Derek
  17. O.K. I pretty much fucked up my life, but I can fix it. What's the best way to make money? I have a $1500 fine (drug charge), I owe the college I am attending $2500 from student loans since I was expelled from my school on my senior year and didn't get a scholarship, and I have car payments that I am paying from borrowing money off people, and I owe like $1200 of borrowed cash... I have a year to pay all this money off, but I cannot find a job. I currently have a job that pays $7.25/hour, but c'mon.. That'll take forever to pay off the debt I am in. Plus, let's not forget.. I have a daughter, and I am only 19. As I stated, my life is fucked unless I can find a way to make hella cash. Any suggestions?
  18. Hi, I'm new to coding. I have a few issues with my server. 1; my client won't change the ip to be a public ip so others can access my server 2; my admin doesn't have commands That's all I can think of right now.. Help please !
  19. Hi. Okay, so I'm new to coding. I downloaded The starter package for source/client but I can't read any files.. Feel free to download anything, do what you need. I just re-installed windows 7 so this desktop is strictly server oriented. Could someone help me? Thanks a ton, Inbox for team viewer information Pur3.
  20. this guide: [url]http://www.rune - server.org/runescape-development/rs2-client/tutorials/364738-new-runescape-money-orb.html[/url] remove spacces Has had its Sprite Url taken down so i cannot download the sprite, does anyone have it? thanks!
  21. lord boss

    quest give money

    how i can edit my lost city rewards in lost realm like i want when u done the quest its give 5 crystal key and 50m?
  22. What are some good ways to make some cash, Ive heard of silk stealing as well as willow log cutting or flax picking but what else?
  23. Need help with RSPS will pay good money. Please contact my Skype so we can talk about it! Skype: Carmelo.Anthony.OSBot
  24. Well there is a dupe I just found out about the money pouch. Idk if this has been released so here it is. Heres what you do to dupe: 1. Take all your money out of the money pouch (except for 1 coin) 2. Bank all your money 3. Withdraw from money pouch "-2147000000" 4. You will have max cash in the money pouch Here is the fix: In the withdraw command add this: [CODE] if(amount <= 0) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c3 = (Client) Server.playerHandler.players[j]; c3.sendMessage("<shad=65535>" + c.playerName + " tried to dupe and failed! If no staff is on report this!"); } } return; }[/CODE] That also makes it yell to the server that someone tried duping.
×