Jump to content

Search the Community

Showing results for tags 'method'.



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

  1. Hey, Well I have been working on this a couple of days now (though I could have got it completed in under a day, just y'know work, work more work @ real life...) I was going to work on making it full on SQL, but had decided to make it only store certain information with on the database, for if I did decide to store all on the database, it could cause strain on the database itself handling the requests. So we still use the character.TXT files for majority of the stuff. Any case, here is the results. 1. First off be sure you have the [URL="http://up.ht/1mmfHA9"]mysql JAR file[/URL], it is needed (stating the obvious), and an actual MySQL database server. 2. Be sure to include mysql.jar both in compiler and server runner BAT files (I won't go into detail about this, if you know what your doing then you should already understand. I won't do all the leg work ;) ) 3. Find [B]PlayerSave.java[/B] and remove it from the directory (We won't be needing it). 4. Download [URL="http://up.ht/1mmkrWs"]PlayerLoaderSQL.java[/URL], save file under server/util/sql (Create new folders if needed) 5. Next we need to remove the old variables for the old PlayerSave.java which is located within these files; Server.java Client.java PlayerHandler.java PlayerSaving.java RS2LoginProtocolDecoder.java ShutDownHook.java 6. Find on each of the files listed above [code] import server.model.players.PlayerSave; [/code] And replace with [code] import server.util.sql.PlayerLoaderSQL; [/code] 7. Find on all except RS2LoginProtocolDecoder.java: [code] PlayerSave.saveGame(c);[/code] And replace with [code] PlayerLoaderSQL.save_Player(c);[/code] 8. Now open RS2LoginProtocolDecoder.java Find: [code] load = PlayerSave.loadGame(cl, cl.playerName, cl.playerPass);[/code] And replace with [code] PlayerLoaderSQL.getConnection(); load = PlayerLoaderSQL.load_Player(cl, name, pass); PlayerLoaderSQL.destroyConnection(); [/code] 9. Download [URL="http://up.ht/1p4fNYJ"]this SQL file[/URL] and execute it on the database you have chosen. 10. Compile & Run 11. Login server offline notify (Optional) Underneath [B]PlayerLoaderSQL.load_Player(cl,name,pass)[/B] you will find something similar to this (or should find); [code] if (returnCode == 2) { switch (load) { case 3: returnCode = 3; cl.saveFile = false; break; default: for (int i = 0; i < cl.playerEquipment.length; i++) { if(cl.playerEquipment[i] == 0) { cl.playerEquipment[i] = -1; cl.playerEquipmentN[i] = 0; } } if (!PlayerHandler.newPlayerClient(cl)) { returnCode = 7; cl.saveFile = false; } else cl.saveFile = true; break; } } [/code] Underneath [B]case 3: [/B]add [code] case 8: returnCode = 8; cl.saveFile = false; break; [/code] This should return an error stating the login server is offline. [B]What's the benefit towards this?[/B] It will stop those who decide to spam log in on your server (at least to my knowledge correct me if I am wrong besides from sql injection), it will give you and your users more freedom on your website should they choose to register or not and being able to do more than with what most basic donation features are (donate, contact admin to receive donation in-game etc). [B]What's the down side towards this?[/B] Should your SQL database go down for what ever reason, no one won't be able to login, though there is a simple patch to this which I won't go into. Also, if your database isn't that secure enough (IE weak password to database) then you could be suseptible to those that could easily manipulate the database. [B]Required files in total;[/B] [URL="http://up.ht/1p4fNYJ"]SQL File [/URL][URL="http://up.ht/1mmkrWs"]PlayerLoaderSQL.java [/URL][URL="http://up.ht/1mmfHA9"]mysql JAR file[/URL][URL="http://up.ht/1p4fNYJ"] [/URL] Let me know if I missed anything :L half asleep been up for nearly 24 hours :x P.S. Hope I posted in the right area :L
  2. For some reason I've been working on this for quite some time and can't seem to solve them. I've been working on adding a "Vote4Cash" system for my 667/718 server. It yields these errors every time - [CODE]starting... src\com\rs\game\player\content\Commands.java:3374: error: cannot find symbol VoteReward reward = Launcher.voteChecker .getReward(DisplayName.replaceAll(" ", "_")); ^ symbol: method replaceAll(String,String) location: class DisplayName src\com\rs\game\player\content\Commands.java:3374: error: cannot find symbol VoteReward reward = Launcher.voteChecker .getReward(DisplayName.replaceAll(" ", "_")); ^ symbol: variable voteChecker location: class Launcher Note: src\com\rs\game\player\Inventory.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors Press any key to continue . . .[/CODE] I realize what they mean, but can't fix them. Does anyone have the replaceAll method, and know where I need to put it? Also I'm not entirely sure about the the voteChecker symbol, it is declared in the Launcher class so I don't see the problem.
  3. The title is a bit misleading or not in depth I guess, but I have to create a method that works like this.. String runescape = "runescape"; runescape.deleteAll("scape"); System.out.println(runescape); and it would be rune so far I have this [CODE] public class deleteall { public static String original = "original"; public static void deleteAll(String remove) { remove = original.replaceAll(remove, ""); } } [/CODE] this is probably very obvious, but I'm sick, at school and I had a test today.. I can't think straight @ all.
  4. I got IP banned on a rsps and i can't bypass it. I changed my IP by resetting my router. I tried using a VPN. I even used a different network connection. I even changed my mac address. I noticed that i'm not blocked on my virtual machine. I cleared the cache.
  5. Hey guys, I am using the Eriewin II source, and this happens to be a bug that released with it. I have tracked down one post on another forum that talked of this issue, but failed to produce a fix or explain the method of solving the issue. Somehow the entire itemonitem handler is completely broke, nothing works in it. No changes to it matter, so it has to be pulling from some other bug elsewhere. Sadly I have yet to find this bug and am seeking you guys to help me out possibly, if you think you can I will be greatly appreciative. Below is my itemonitem handler with the contains method which is needed to be used by it. Any ideas or suggestions are all welcomed! [CODE] 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 hash1 = stream.readInt(); int hash2 = stream.readInt(); int interfaceId = hash1 >> 16; int interfaceId2 = hash2 >> 16; int comp1 = hash1 & 0xFFFF; int fromSlot = stream.readShort(); int itemUsedId = stream.readShortLE128(); if (interfaceId == 430 && interfaceId2 == 679) { Item item = player.getInventory().getItem(toSlot); if (item == null) return; switch(comp1) { case 33: Lunars.handlePlankMake(player, item); break; case 50: Lunars.handleRestorePotionShare(player, item); break; case 72: Lunars.handleLeatherMake(player, item); break; case 49: Lunars.handleBoostPotionShare(player, item); break; default: if (player.getRights() == 2) { player.getPackets().sendGameMessage("Unhandled lunar spell: component1: "+comp1+" slotId: "+toSlot); } break; } return; } if ((interfaceId2 == 747 || interfaceId2 == 662) && interfaceId == Inventory.INVENTORY_INTERFACE) { if (player.getFamiliar() != null) { player.getFamiliar().setSpecial(true); if (player.getFamiliar().getSpecialAttack() == SpecialAttack.ITEM) { if (player.getFamiliar().hasSpecialOn()) player.getFamiliar().submitSpecial(toSlot); } } return; } if (interfaceId == Inventory.INVENTORY_INTERFACE && interfaceId == interfaceId2 && !player.getInterfaceManager().containsInventoryInter()) { if (toSlot >= 28 || fromSlot >= 28) { return; } Item usedWith = player.getInventory().getItem(toSlot); Item itemUsed = player.getInventory().getItem(fromSlot); if (itemUsed == null || usedWith == null || itemUsed.getId() != itemUsedId || usedWith.getId() != itemUsedWithId) { return; } player.stopAll(); if (!player.getControlerManager().canUseItemOnItem(itemUsed, usedWith)) { return; } Fletch fletch = Fletching.isFletching(usedWith, itemUsed); if (fletch != null) { player.getDialogueManager().startDialogue("FletchingD", fletch); return; } if ((itemUsed.getId() == 985 && usedWith.getId() == 987)|| (itemUsed.getId() == 987 && usedWith.getId() == 985)){ if (player.getInventory().containsItem(985, 1) && player.getInventory().containsItem(987, 1)) { player.getInventory().deleteItem(985, 1); player.getInventory().deleteItem(987, 1); player.getInventory().addItem(989, 1); player.getPackets().sendGameMessage("You succesfully make a crytal key."); } else { player.getPackets().sendGameMessage("You need both parts to make this key."); } return; } int leatherIndex = LeatherCraftingD.getIndex(itemUsedId) == -1 ? LeatherCraftingD.getIndex(usedWith.getId()) : LeatherCraftingD.getIndex(itemUsedId); if (leatherIndex != -1 && ((itemUsedId == 1733 || usedWith.getId() == 1733) || LeatherCraftingD.isExtraItem(usedWith.getId()) || LeatherCraftingD.isExtraItem(itemUsedId))) { player.getDialogueManager().startDialogue("LeatherCraftingD", leatherIndex); return; } if (itemUsed.getId() == 187 || itemUsed.getId() == 5937 || itemUsed.getId() == 5940 || usedWith.getId() == 187 || usedWith.getId() == 5937 || usedWith.getId() == 5940) WeaponPoison.handleItemInteract(player, itemUsed, usedWith); if ((itemUsed.getId() >= 1617 && itemUsed.getId() <= 1624) && usedWith.getId() == 18338) { if (player.gembagspace < 100) { if (itemUsed.getId() == 1617) { player.diamonds++; player.getInventory().deleteItem(1617, 1); } else if (itemUsed.getId() == 1619) { player.rubies++; player.getInventory().deleteItem(1619, 1); } else if (itemUsed.getId() == 1621) { player.emeralds++; player.getInventory().deleteItem(1621, 1); } else if (itemUsed.getId() == 1623) { player.sapphires++; player.getInventory().deleteItem(1623, 1); } player.gembagspace++; } else { player.getPackets().sendGameMessage("Your gem bag is too full to carry anymore uncut gems."); } } if (itemUsed.getId() == 453 && usedWith.getId() == 18339) { if (player.coal < 27) { player.getInventory().deleteItem(453, 1); player.coal++; player.getPackets().sendGameMessage("You add a piece of coal to your coal bag."); } else { player.getPackets().sendGameMessage("Your coal bag is too full to carry anymore coal."); } } if ((itemUsed.getId() == 1785 && usedWith.getId() == 18330) || (itemUsed.getId() == 18330 && usedWith.getId() == 1785)) { player.getInventory().deleteItem(18330, 1); player.getInventory().deleteItem(851, 1); player.getInventory().addItem(18331, 1); player.getPackets().sendGameMessage("You attach the two pieces together to create a maple sheildbow (sighted)."); } if ((itemUsed.getId() == 851 && usedWith.getId() == 23193) || (itemUsed.getId() == 23193 && usedWith.getId() == 851)) { if (player.getSkills().getLevel(Skills.CRAFTING) >= 89) { player.getInventory().deleteItem(23193, 1); player.getInventory().addItem(23191, 1); player.getSkills().addXp(Skills.CRAFTING, 40); player.setNextAnimation(new Animation(884)); player.getPackets().sendGameMessage("You succesfully create an empty potion flask."); } else { player.getPackets().sendGameMessage("You need a crafting level of atleast 89 to create a potion flask."); } } /** * Flask Making */ // Attack (4) if (usedWith.getId() == 121 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(121, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(121, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23201, 1); } } // Attack (3) if (usedWith.getId() == 121 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(121, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(121, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23201, 1); } } // Attack (2) if (usedWith.getId() == 123 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(123, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(123, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23203, 1); } } // Attack (1) if (usedWith.getId() == 125 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(125, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(125, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23205, 1); } } // Super Attack (1) into Super Attack Flask (5) if (usedWith.getId() == 149 || usedWith.getId() == 23257) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23257, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23257, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (1) into Super Attack Flask (4) if (usedWith.getId() == 149 || usedWith.getId() == 23259) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23259, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23259, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23257, 1); } } // Super Attack (1) into Super Attack Flask (3) if (usedWith.getId() == 149 || usedWith.getId() == 23261) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23261, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23261, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23259, 1); } } // Super Attack (1) into Super Attack Flask (2) if (usedWith.getId() == 149 || usedWith.getId() == 23263) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23263, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23263, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23261, 1); } } // Super Attack (1) into Super Attack Flask (1) if (usedWith.getId() == 149 || usedWith.getId() == 23265) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23265, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23265, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23263, 1); } } // Super Attack (2) into Super Attack Flask (5) if (usedWith.getId() == 147 || usedWith.getId() == 23257) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23257, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23257, 1); player.getInventory().addItem(149, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (2) into Super Attack Flask (4) if (usedWith.getId() == 147 || usedWith.getId() == 23259) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23259, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23259, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (2) into Super Attack Flask (3) if (usedWith.getId() == 147 || usedWith.getId() == 23261) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23261, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23261, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23257, 1); } } // Super Attack (2) into Super Attack Flask (2) if (usedWith.getId() == 147 || usedWith.getId() == 23263) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23263, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23263, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23259, 1); } } // Super Attack (2) into Super Attack Flask (1) if (usedWith.getId() == 147 || usedWith.getId() == 23265) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23265, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23265, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23261, 1); } } // Super Attack (3) into Super Attack Flask (5) if (usedWith.getId() == 145 || usedWith.getId() == 23257) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23257, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23257, 1); player.getInventory().addItem(147, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (3) into Super Attack Flask (4) if (usedWith.getId() == 145 || usedWith.getId() == 23259) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23259, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23259, 1); player.getInventory().addItem(149, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (3) into Super Attack Flask (3) if (usedWith.getId() == 145 || usedWith.getId() == 23261) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23261, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23261, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (3) into Super Attack Flask (2) if (usedWith.getId() == 145 || usedWith.getId() == 23263) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23263, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23263, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23257, 1); } } // Super Attack (3) into Super Attack Flask (1) if (usedWith.getId() == 145 || usedWith.getId() == 23265) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23265, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23265, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23259, 1); } } // Super Attack (4) into Super Attack Flask (5) if (usedWith.getId() == 2436 || usedWith.getId() == 23257) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23257, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23257, 1); player.getInventory().addItem(145, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (4) into Super Attack Flask (4) if (usedWith.getId() == 2436 || usedWith.getId() == 23259) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23259, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23259, 1); player.getInventory().addItem(147, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (4) into Super Attack Flask (3) if (usedWith.getId() == 2436 || usedWith.getId() == 23261) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23261, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23261, 1); player.getInventory().addItem(149, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (4) into Super Attack Flask (2) if (usedWith.getId() == 2436 || usedWith.getId() == 23263) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23263, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23263, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23255, 1); } } // Super Attack (4) into Super Attack Flask (1) if (usedWith.getId() == 2436 || usedWith.getId() == 23265) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23265, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23265, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23257, 1); } } // Super Attack (4) into Empty Flask if (usedWith.getId() == 2436 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(2436, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(2436, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23259, 1); } } // Super Attack (3) into Empty Flask if (usedWith.getId() == 145 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(145, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(145, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23261, 1); } } // Super Attack (2) into Empty Flask if (usedWith.getId() == 147 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(147, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(147, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23263, 1); } } // Super Attack (1) into Empty Flask if (usedWith.getId() == 149 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(149, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(149, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23265, 1); } } // Super Strength (1) into Super Strength Flask (5) if (usedWith.getId() == 161 || usedWith.getId() == 23281) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23281, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23281, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (1) into Super Strength Flask (4) if (usedWith.getId() == 161 || usedWith.getId() == 23283) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23283, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23283, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23281, 1); } } // Super Strength (1) into Super Strength Flask (3) if (usedWith.getId() == 161 || usedWith.getId() == 23285) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23285, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23285, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23283, 1); } } // Super Strength (1) into Super Strength Flask (2) if (usedWith.getId() == 161 || usedWith.getId() == 23287) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23287, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23287, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23285, 1); } } // Super Strength (1) into Super Strength Flask (1) if (usedWith.getId() == 161 || usedWith.getId() == 23289) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23289, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23289, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23287, 1); } } // Super Strength (2) into Super Strength Flask (5) if (usedWith.getId() == 159 || usedWith.getId() == 23281) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23281, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23281, 1); player.getInventory().addItem(161, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (2) into Super Strength Flask (4) if (usedWith.getId() == 159 || usedWith.getId() == 23283) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23283, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23283, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (2) into Super Strength Flask (3) if (usedWith.getId() == 159 || usedWith.getId() == 23285) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23285, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23285, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23281, 1); } } // Super Strength (2) into Super Strength Flask (2) if (usedWith.getId() == 159 || usedWith.getId() == 23287) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23287, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23287, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23283, 1); } } // Super Strength (2) into Super Strength Flask (1) if (usedWith.getId() == 159 || usedWith.getId() == 23289) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23289, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23289, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23285, 1); } } // Super Strength (3) into Super Strength Flask (5) if (usedWith.getId() == 157 || usedWith.getId() == 23281) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23281, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23281, 1); player.getInventory().addItem(159, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (3) into Super Strength Flask (4) if (usedWith.getId() == 157 || usedWith.getId() == 23283) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23283, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23283, 1); player.getInventory().addItem(161, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (3) into Super Strength Flask (3) if (usedWith.getId() == 157 || usedWith.getId() == 23285) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23285, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23285, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (3) into Super Strength Flask (2) if (usedWith.getId() == 157 || usedWith.getId() == 23287) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23287, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23287, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23281, 1); } } // Super Strength (3) into Super Strength Flask (1) if (usedWith.getId() == 157 || usedWith.getId() == 23289) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23289, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23289, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23283, 1); } } // Super Strength (4) into Super Strength Flask (5) if (usedWith.getId() == 2440 || usedWith.getId() == 23281) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23281, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23281, 1); player.getInventory().addItem(157, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (4) into Super Strength Flask (4) if (usedWith.getId() == 2440 || usedWith.getId() == 23283) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23283, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23283, 1); player.getInventory().addItem(159, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (4) into Super Strength Flask (3) if (usedWith.getId() == 2440 || usedWith.getId() == 23285) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23285, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23285, 1); player.getInventory().addItem(161, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (4) into Super Strength Flask (2) if (usedWith.getId() == 2440 || usedWith.getId() == 23287) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23287, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23287, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23279, 1); } } // Super Strength (4) into Super Strength Flask (1) if (usedWith.getId() == 2440 || usedWith.getId() == 23289) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23289, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23289, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23281, 1); } } // Super Strength (4) into Empty Flask if (usedWith.getId() == 2440 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(2440, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(2440, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23283, 1); } } // Super Strength (3) into Empty Flask if (usedWith.getId() == 157 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(157, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(157, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23285, 1); } } // Super Strength (2) into Empty Flask if (usedWith.getId() == 159 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(159, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(159, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23287, 1); } } // Super Strength (1) into Empty Flask if (usedWith.getId() == 161 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(161, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(161, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23289, 1); } } // Super Defence (1) into Super Defence Flask (5) if (usedWith.getId() == 167 || usedWith.getId() == 23293) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23293, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23293, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (1) into Super Defence Flask (4) if (usedWith.getId() == 167 || usedWith.getId() == 23295) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23295, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23295, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23293, 1); } } // Super Defence (1) into Super Defence Flask (3) if (usedWith.getId() == 167 || usedWith.getId() == 23297) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23297, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23297, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23295, 1); } } // Super Defence (1) into Super Defence Flask (2) if (usedWith.getId() == 167 || usedWith.getId() == 23299) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23299, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23299, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23297, 1); } } // Super Defence (1) into Super Defence Flask (1) if (usedWith.getId() == 167 || usedWith.getId() == 23301) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23301, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23301, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23299, 1); } } // Super Defence (2) into Super Defence Flask (5) if (usedWith.getId() == 165 || usedWith.getId() == 23293) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23293, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23293, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (2) into Super Defence Flask (4) if (usedWith.getId() == 165 || usedWith.getId() == 23295) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23295, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23295, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (2) into Super Defence Flask (3) if (usedWith.getId() == 165 || usedWith.getId() == 23297) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23297, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23297, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23293, 1); } } // Super Defence (2) into Super Defence Flask (2) if (usedWith.getId() == 165 || usedWith.getId() == 23299) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23299, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23299, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23295, 1); } } // Super Defence (2) into Super Defence Flask (1) if (usedWith.getId() == 165 || usedWith.getId() == 23301) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23301, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23301, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23297, 1); } } // Super Defence (3) into Super Defence Flask (5) if (usedWith.getId() == 163 || usedWith.getId() == 23293) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23293, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23293, 1); player.getInventory().addItem(165, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (3) into Super Defence Flask (4) if (usedWith.getId() == 163 || usedWith.getId() == 23295) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23295, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23295, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (3) into Super Defence Flask (3) if (usedWith.getId() == 163 || usedWith.getId() == 23297) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23297, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23297, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (3) into Super Defence Flask (2) if (usedWith.getId() == 163 || usedWith.getId() == 23299) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23299, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23299, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23293, 1); } } // Super Defence (3) into Super Defence Flask (1) if (usedWith.getId() == 163 || usedWith.getId() == 23301) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23301, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23301, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23295, 1); } } // Super Defence (4) into Super Defence Flask (5) if (usedWith.getId() == 2442 || usedWith.getId() == 23293) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23293, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23293, 1); player.getInventory().addItem(163, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (4) into Super Defence Flask (4) if (usedWith.getId() == 2442 || usedWith.getId() == 23295) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23295, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23295, 1); player.getInventory().addItem(165, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (4) into Super Defence Flask (3) if (usedWith.getId() == 2442 || usedWith.getId() == 23297) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23297, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23297, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (4) into Super Defence Flask (2) if (usedWith.getId() == 2442 || usedWith.getId() == 23299) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23299, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23299, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23291, 1); } } // Super Defence (4) into Super Defence Flask (1) if (usedWith.getId() == 2442 || usedWith.getId() == 23301) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23301, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23301, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23293, 1); } } // Super Defence (4) if (usedWith.getId() == 2442 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(2442, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(2442, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23295, 1); } } // Super Defence (3) if (usedWith.getId() == 163 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(163, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(163, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23297, 1); } } // Super Defence (2) if (usedWith.getId() == 165 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(165, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(165, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23299, 1); } } // Super Defence (1) if (usedWith.getId() == 167 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(167, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(167, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23301, 1); } } /** * Overloads */ // Overload (1) into Overload Flask (5) if (usedWith.getId() == 15335 || usedWith.getId() == 23532) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(26751, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23532, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (1) into Overload Flask (4) if (usedWith.getId() == 15335 || usedWith.getId() == 23533) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(23533, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23533, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23532, 1); // id for (5) } } // Overload (1) into Overload Flask (3) if (usedWith.getId() == 15335 || usedWith.getId() == 23534) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(23534, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23534, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23533, 1); // id for (4) } } // Overload (1) into Overload Flask (2) if (usedWith.getId() == 15335 || usedWith.getId() == 23535) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(23535, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23535, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23534, 1); // id for (3) } } // Overload (1) into Overload Flask (1) if (usedWith.getId() == 15335 || usedWith.getId() == 23536) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(23536, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23536, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23535, 1); // id for (2) } } // Overload (2) into Overload Flask (5) if (usedWith.getId() == 15334 || usedWith.getId() == 23532) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23532, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23532, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (2) into Overload Flask (4) if (usedWith.getId() == 15334 || usedWith.getId() == 23533) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23533, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23533, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (2) into Overload Flask (3) if (usedWith.getId() == 15334 || usedWith.getId() == 23534) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23534, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23534, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23532, 1); // id for (5) } } // Overload (2) into Overload Flask (2) if (usedWith.getId() == 15334 || usedWith.getId() == 23535) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23535, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23535, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23533, 1); // id for (4) } } // Overload (2) into Overload Flask (1) if (usedWith.getId() == 15334 || usedWith.getId() == 23536) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23536, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23536, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23534, 1); // id for (3) } } // Overload (3) into Overload Flask (5) if (usedWith.getId() == 15333 || usedWith.getId() == 23532) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23532, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23532, 1); player.getInventory().addItem(15333, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (3) into Overload Flask (4) if (usedWith.getId() == 15333 || usedWith.getId() == 23533) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23533, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23533, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (3) into Overload Flask (3) if (usedWith.getId() == 15333 || usedWith.getId() == 23534) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23534, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23534, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (3) into Overload Flask (2) if (usedWith.getId() == 15333 || usedWith.getId() == 23535) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23535, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23535, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23532, 1); // id for (5) } } // Overload (3) into Overload Flask (1) if (usedWith.getId() == 15333 || usedWith.getId() == 23536) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23536, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23536, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23533, 1); // id for (4) } } // Overload (4) into Overload Flask (5) if (usedWith.getId() == 15332 || usedWith.getId() == 23532) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23532, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23532, 1); player.getInventory().addItem(163, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (4) into Overload Flask (4) if (usedWith.getId() == 15332 || usedWith.getId() == 23533) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23533, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23533, 1); player.getInventory().addItem(165, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (4) into Overload Flask (3) if (usedWith.getId() == 15332 || usedWith.getId() == 23534) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23534, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23534, 1); player.getInventory().addItem(167, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (4) into Overload Flask (2) if (usedWith.getId() == 15332 || usedWith.getId() == 23535) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23535, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23535, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23531, 1); // id for (6) } } // Overload (4) into Overload Flask (1) if (usedWith.getId() == 15332 || usedWith.getId() == 23536) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23536, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23536, 1); player.getInventory().addItem(229, 1); player.getInventory().addItem(23532, 1); // id for (5) } } // Overload (1) if (usedWith.getId() == 15335 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(15335, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(15335, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23536, 1); } } // Overload (2) if (usedWith.getId() == 15334 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(15334, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(15334, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23535, 1); } } // Overload (3) if (usedWith.getId() == 15333 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(15333, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(15333, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23534, 1); } } // Overload (4) if (usedWith.getId() == 15332 || usedWith.getId() == 23191) { if (player.getInventory().containsItem(15332, 1) && player.getInventory().containsItem(23191, 1)) { player.getInventory().deleteItem(15332, 1); player.getInventory().deleteItem(23191, 1); player.getInventory().addItem(23533, 1); } } //Dragon Sq shield if (itemUsed.getId() == 2368 || usedWith.getId() == 2366) { if (player.getInventory().containsItem(2366, 1) && player.getInventory().containsItem(2368, 1)) { player.getInventory().deleteItem(2366, 1); player.getInventory().deleteItem(2368, 1); player.getInventory().addItem(1187, 1); player.getPackets().sendGameMessage("You create a Dragon sq shield."); } } if (itemUsed.getId() == 2366 || usedWith.getId() == 2368) { if (player.getInventory().containsItem(2366, 1) && player.getInventory().containsItem(2368, 1)) { player.getInventory().deleteItem(2366, 1); player.getInventory().deleteItem(2368, 1); player.getInventory().addItem(1187, 1); player.getPackets().sendGameMessage("You create a Dragon sq shield."); } } //doogle sardine if (itemUsed.getId() == 327 || usedWith.getId() == 1573) { if (player.getInventory().containsItem(1573, 1) && player.getInventory().containsItem(327, 1)) { player.getInventory().deleteItem(1573, 1); player.getInventory().deleteItem(327, 1); player.getInventory().addItem(1552, 1); player.getPackets().sendGameMessage("You wrap the sardine in the doogle leaf."); } } if (itemUsed.getId() == 1573 || usedWith.getId() == 327) { if (player.getInventory().containsItem(1573, 1) && player.getInventory().containsItem(327, 1)) { player.getInventory().deleteItem(1573, 1); player.getInventory().deleteItem(327, 1); player.getInventory().addItem(1552, 1); player.getPackets().sendGameMessage("You wrap the sardine in the doogle leaf."); } } // //Dragonfire shield if (itemUsed.getId() == 11286 || usedWith.getId() == 1540) { if (player.getInventory().containsItem(11286, 1) && player.getInventory().containsItem(1540, 1)) { player.getInventory().deleteItem(11286, 1); player.getInventory().deleteItem(1540, 1); player.getInventory().addItem(11283, 1); player.getPackets().sendGameMessage("You create a Dragonfire Shield!"); } } if (itemUsed.getId() == 1540 || usedWith.getId() == 11286) { if (player.getInventory().containsItem(11286, 1) && player.getInventory().containsItem(1540, 1)) { player.getInventory().deleteItem(11286, 1); player.getInventory().deleteItem(1540, 1); player.getInventory().addItem(11283, 1); player.getPackets().sendGameMessage("You create a Dragonfire Shield!"); } } //Fire Arrows if (itemUsed.getId() == 1485 || usedWith.getId() == 882) { if (player.getInventory().containsItem(1485, 1) && player.getInventory().containsItem(882, 1)) { player.getInventory().deleteItem(1485, 1); player.getInventory().deleteItem(882, 1); player.getInventory().addItem(942, 1); player.getPackets().sendGameMessage("You create a bronze fire arrow."); } } if (itemUsed.getId() == 882 || usedWith.getId() == 1485) { if (player.getInventory().containsItem(1485, 1) && player.getInventory().containsItem(882, 1)) { player.getInventory().deleteItem(1485, 1); player.getInventory().deleteItem(882, 1); player.getInventory().addItem(942, 1); player.getPackets().sendGameMessage("You create a bronze fire arrow."); } } //Roe if (itemUsed.getId() == 946 || usedWith.getId() == 11328) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11328, 1)) { player.getInventory().deleteItem(11328, 1); player.getInventory().addItem(11324, 1); } } if (itemUsed.getId() == 11328 || usedWith.getId() == 946) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11328, 1)) { player.getInventory().deleteItem(11328, 1); player.getInventory().addItem(11324, 1); } } if (itemUsed.getId() == 946 || usedWith.getId() == 11330) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11330, 1)) { player.getInventory().deleteItem(11330, 1); player.getInventory().addItem(11324, 1); } } if (itemUsed.getId() == 11330 || usedWith.getId() == 946) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11330, 1)) { player.getInventory().deleteItem(11330, 1); player.getInventory().addItem(11324, 1); } } if (contains(272, 273, itemUsed, usedWith) || (contains(273, 272, itemUsed, usedWith))) { player.getInventory().deleteItem(272, 1); player.getInventory().deleteItem(273, 1); player.getInventory().addItem(274, 1); } if (itemUsed.getId() == 946 || usedWith.getId() == 11332) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11332, 1)) { player.getInventory().deleteItem(11332, 1); player.getInventory().addItem(11324, 1); } } if (itemUsed.getId() == 11332 || usedWith.getId() == 946) { if (player.getInventory().containsItem(946, 1) && player.getInventory().containsItem(11332, 1)) { player.getInventory().deleteItem(11332, 1); player.getInventory().addItem(11324, 1); } } //SS Godswords if (itemUsed.getId() == 11690 || usedWith.getId() == 13746) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(13746, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(13746, 1); player.getInventory().addItem(29961, 1); player.getPackets().sendGameMessage("You attach the sigil to the blade and create an Arcane godsword."); } } if (itemUsed.getId() == 11690 || usedWith.getId() == 13748) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(13748, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(13748, 1); player.getInventory().addItem(29960, 1); player.getPackets().sendGameMessage("You attach the sigil to the blade and create a Divine godsword."); } } if (itemUsed.getId() == 11690 || usedWith.getId() == 13750) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(13750, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(13750, 1); player.getInventory().addItem(29959, 1); player.getPackets().sendGameMessage("You attach the sigil to the blade and create an Elysian godsword."); } } if (itemUsed.getId() == 11690 || usedWith.getId() == 13752) { if (player.getInventory().containsItem(11690, 1) && player.getInventory().containsItem(13752, 1)) { player.getInventory().deleteItem(11690, 1); player.getInventory().deleteItem(13752, 1); player.getInventory().addItem(29958, 1); player.getPackets().sendGameMessage("You attach the sigil to the blade and create a Spectral godsword."); } } //Godswords 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."); } } //Polypore staff if (itemUsed.getId() == 22498 || usedWith.getId() == 22448 || usedWith.getId() == 554) { if (player.getInventory().containsItem(22498, 1) && player.getInventory().containsItem(22448, 3000) && player.getInventory().containsItem(554, 15000) && (player.getSkills().getLevel(Skills.FARMING) > 79)) { player.getInventory().deleteItem(22498, 1); player.getInventory().deleteItem(22448, 3000); player.getInventory().deleteItem(554, 15000); player.getInventory().addItem(22494, 1); player.getPackets().sendGameMessage("You craft a Polypore Staff."); } else { player.getDialogueManager().startDialogue("SimpleMessage","You must have 80 farming, 15k fire runes, 3k polypore spore and 1 polypore stick to make this."); return; } } if (itemUsed.getId() == 22448|| usedWith.getId() == 22498 || usedWith.getId() == 554) { if (player.getInventory().containsItem(22498, 1) && player.getInventory().containsItem(22448, 3000) && player.getInventory().containsItem(554, 15000) && (player.getSkills().getLevel(Skills.FARMING) > 79)) { player.getInventory().deleteItem(22498, 1); player.getInventory().deleteItem(22448, 3000); player.getInventory().deleteItem(554, 15000); player.getInventory().addItem(22494, 1); player.getPackets().sendGameMessage("You craft a Polypore Staff."); } else { player.getDialogueManager().startDialogue("SimpleMessage","You must have 80 farming, 15k fire runes, 3k polypore spore and 1 polypore stick to make this."); return; } } //Ganodermic robes if (itemUsed.getId() == 22451 && usedWith.getId() == 22452) {//Visor player.getDialogueManager().startDialogue("PolyVisor"); } if (itemUsed.getId() == 22451 && usedWith.getId() == 22454) {//Leggings player.getDialogueManager().startDialogue("PolyLeggings"); } if (itemUsed.getId() == 22451 && usedWith.getId() == 22456) {//poncho player.getDialogueManager().startDialogue("PolyPoncho"); } //Grifolic Robes if (itemUsed.getId() == 22450 && usedWith.getId() == 22452) {//Visor player.getDialogueManager().startDialogue("PolyVisor"); } if (itemUsed.getId() == 22450 && usedWith.getId() == 22454) {//Leggings player.getDialogueManager().startDialogue("PolyLeggings"); } if (itemUsed.getId() == 22450 && usedWith.getId() == 22456) {//poncho player.getDialogueManager().startDialogue("PolyPoncho"); } //Fungal Robes if (itemUsed.getId() == 22449 && usedWith.getId() == 22452) {//Visor player.getDialogueManager().startDialogue("PolyVisor"); } if (itemUsed.getId() == 22449 && usedWith.getId() == 22454) {//Leggings player.getDialogueManager().startDialogue("PolyLeggings"); } if (itemUsed.getId() == 22449 && usedWith.getId() == 22456) {//poncho player.getDialogueManager().startDialogue("PolyPoncho"); } 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 ; //player.getPackets().sendGameMessage( // "Nothing interesting happens."); if (Settings.DEBUG) Logger.log("ItemHandler", "Used:" + itemUsed.getId() + ", With:" + usedWith.getId()); } }[/CODE] Additional info: All other parts of the InventoryOptionsHandler works perfectly fine, which just adds to my confusion. I have tracked down code in WorldPackets and ItemDefinitions in order to try and find the issue but have failed to do so. If you need ANYTHING from me please post here and I will get it for you ASAP!
  6. So lets say i have this [CODE]public int bossId() { return 5001; }[/CODE] and it only return as 1 boss. if i want to add multiple ones can i write it like this? [CODE]public int[] bossId = { 9463, 9465, 9467, 2783, 9172, 1615, 1591, 1592, 10775, 5361, 7801, 4705, 4673, 6215, 55, 1582, 1610, 4698, 49, 3068, 6221, 2591, 4229, 1637, 1681, 4680, 3073, 8349, 50 }; [/CODE]
  7. Gircat

    Log Out Method

    Well, it's 4AM so I'm tires as hell. But I want to know where the "log out method" for dementhium 637 is. -.- Nooby as helll I know, but help would be appreciated.
  8. I was wondering if anyone had a method just like addwalkstep but instead gets the player's x and y and the object so when its clicked on walks a certain amount of steps. This would be very helpful to me at least get me started on it don't have to spoon feed me. Sincerely, Google rapes bing
  9. Can someone give me their applydead() method? Because mine is bad... :( thanks!
  10. Hi, I'm trying to add the full 4 hit d claws to my server and I finally found a tut that will allow me to do it, but I'm missing a method. DX So, I need to add the method "specialAtk" and I have no idea what it's supposed to be, and this tutorial doesn't explain the missing method, can anyone help me? Please? A link to the tutorial below. [url]http://www.rune-server.org/runescape-development/rs2-server/tutorials/133005-delta-best-dragon-claws-code-client-server.html[/url]
  11. 1mil RSGP, not SSGP. Send a PM if you want to buy/negotiate.
  12. I'm looking for someone to write me a delete objects method to use on my 676 server. I am offering $6.50 CAD to anyone who can do this for me. If you are interested, add me on skype: willpeidl Please send an invitation message that will inform me that you are interested. I will not except default message invitations from people I don't know.
  13. iF anyone can fine a WORKING dupe on this server. Slash-Scape.com I will rewards them with 50$ Paypal. Don't ruin the economy or anything, just see if the dupe works, then tell me. THANKS. (I dont know what revision it is.)
  14. Ok so i love these little things in a server so im going to release this at least lol... This goes into InventoryOptionsHandler.java Search for : handleItemOption6 Paste this below somwhere: [CODE] if (itemId == 4023) { // No monkey player.getAppearence().transformIntoNPC(-1); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4023, 1); return; } if (itemId == 4024) { // Ninja monkey player.getAppearence().transformIntoNPC(1480); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4024, 1); return; } if (itemId == 4025) { // Ninja monkey player.getAppearence().transformIntoNPC(1481); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4025, 1); return; } if (itemId == 4026) { // Gorilla player.getAppearence().transformIntoNPC(1482); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4026, 1); return; } if (itemId == 4027) { // Bearded Gorilla player.getAppearence().transformIntoNPC(1483); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4027, 1); return; } if (itemId == 4028) { // Ancient gorilla player.getAppearence().transformIntoNPC(1484); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4028, 1); return; } if (itemId == 4029) { // Small zombie monkey player.getAppearence().transformIntoNPC(1485); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4029, 1); return; } if (itemId == 4030) { // Large zombie monkey player.getAppearence().transformIntoNPC(1486); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4030, 1); return; } if (itemId == 4031) { // Monkey player.getAppearence().transformIntoNPC(1487); player.setNextGraphics(new Graphics(1910)); player.getInventory().deleteItem(4031, 1); return; } [/CODE] What i did was make it so ud turn into an npc and with item 4023 turns you back to normal upon dropping. Have fun! (works with 667+)
  15. I'm trying to use the launchURL method for something server sided. However, the method is client sided. Therefore, I was told I must create and send a packet in order to use the launchURL method. How would I do this? Client<Client.java [code] public void launchURL(String url) { String osName = System.getProperty("os.name"); try { if (osName.startsWith("Mac OS")) { Class fileMgr = Class.forName("com.apple.eio.FileManager"); Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] {String.class}); openURL.invoke(null, new Object[] {url}); } else if (osName.startsWith("Windows")) Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url); else { String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape", "safari" }; String browser = null; for (int count = 0; count < browsers.length && browser == null; count++) if (Runtime.getRuntime().exec(new String[] {"which", browsers[count]}).waitFor() == 0) browser = browsers[count]; if (browser == null) { throw new Exception("Could not find web browser"); } else Runtime.getRuntime().exec(new String[] {browser, url}); } } catch (Exception e) { pushMessage("Failed to open URL.", 0, ""); } } [/code]
  16. Title states it, just trying to figure out the issue with my ge search method so if i know what this is i cna maybe work it out faster.
  17. Hey guys, My server (delta) doesn't have the forcedChat method added and I kinda need it. Could someone [U]please[/U] post the forcedChat method?
  18. Okay well basically i have every single part of the ge working except the searching part. I cant quite get the correct run script or something to allow searching in the interface. So rite now it just pops up with the buy interface and i can only setthe item with a command i made. So anyone have any ideas on how to get it allow typing and searching in it? Here is a pic of it when i dont have the sendrunscript in [img]http://puu.sh/EUmu.jpeg[/img] Here is a pic of it when i have the sendrunscript in [img]http://puu.sh/EUoh.jpeg[/img] And then here is my GE search method, after much ado of working on getting it to even pull up the searching interface. [code] public void setGeSearch(Object[] o) { sendConfig1(1109, -1); sendConfig1(1112, 0); sendConfig1(1113, 0); sendInterface(true, 752, 9, 389); sendRunScript(570, o); //sendInterface3(6, 752, 0, 389); } [/code]
  19. Well currently ive been making a ge and i have it all working really good without saving the data and having otherpeople sell and buy, just because on a private server kinda pointless to have that since half the stuff wont be sold in ge and so on. [ATTACH=CONFIG]5768[/ATTACH] Thats what i have so far, works really well. im just having to use a command to set the item config and such. I was wondering if anyone had a search method, kinda simple, but the three i wrote just keep bugging or not letting me search.
  20. I need suggestions on designing a experiment for Biology / Living Environment. All help appreciated and thanks in advanced. For this experiment I am required to: State a problem Write a hypothesis Give Variables ---Independent Variable: Factors being manipulated ---Dependent Variable: Factors which respond ---Constants: Factors that do not change Standards of comparison Materials and Procedure (diagrams, etc.) Observation and Results Quantitative Results ---Recording data in a table ---Displaying data using graphs Analysis of results Errors Conclusion ------------------------------------------------------------ I can guarantee that most of your won't read what I wrote above or reply with a stupid post saying "google it" or something. I know I can use it, but I can't really find that much so I appreciate very bit of information I receive. Thank you :)
  21. Willing to pay, will discuss pricing on skype,[U] need the method used to pack NPCs[/U]. Add me on skype: zroflak Specify that you're helping with the npc method when u add me
  22. I don't know the methods to add and remove weapons from players so that they disapear and add in there equipment slots? Can someone please tell me them :)
  23. killers10333

    What method?

    I want to let a player enter a custom amount of coins, then the coins get removed and some random numbers are generated and if its higher then blah its x2 money and stuff but what method do i use to let the player enter an amount? btw this is for a PI edit: i tried this [CODE]else if (c.dialogueAction == 187) { String coinAmount = c.getInStream().readString(); int coinAmount2 = Integer.parseInt(coinAmount); if (c.getItems().playerHasItem(995, coinAmount2)) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), coinAmount2); }[/CODE] but i get this error [CODE][2/24/12 4:22 PM]: Admin - actionbutton: 9157 [2/24/12 4:22 PM]: java.lang.ArrayIndexOutOfBoundsException: 2 [2/24/12 4:22 PM]: at server.util.Stream.readString(Stream.java:311) [2/24/12 4:22 PM]: at server.model.players.packets.ClickingButtons.processP acket(ClickingButtons.java:990) [2/24/12 4:22 PM]: at server.model.players.PacketHandler.processPacket(Pack etHandler.java:138) [2/24/12 4:22 PM]: at server.model.players.Client.processQueuedPackets(Clie nt.java:1381) [2/24/12 4:22 PM]: at server.model.players.PlayerHandler.process(PlayerHand ler.java:136) [2/24/12 4:22 PM]: at server.Server.main(Server.java:164) [2/24/12 4:22 PM]: Saved game for Admin. [/CODE] someone help lol?
  24. well my revision is PI 317 and im trying to make multicombat area.. i went into player.java and change the coords but it didnt work in game?... can someone explain to me the method?
×