Jump to content

Search the Community

Showing results for tags 'items'.



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

  1. I know how to code dialogues and to open them on npcs. But I wanted to add it so that it checks the player for four items and it choose which dialogue to do. This is what I tried doing: (I'm using PI) [code] case 8542: //head snow imp lower level if ((c.getItems().playerHasItem(20083, 1)) && (c.getItems().playerHasItem(11952, 1)) &&(c.getItems().playerHasItem(11954, 1)) (c.getItems().playerHasItem(11953, 1))) { //second dialouge here for teleport c.getDH().sendDialogues(888, npcType); //santa at base } else { c.getDH().sendDialogues(888, npcType); //santa at base //cock block dialouge } } break; [/code] Am I using too many parentheses or am just too much of a noob? :p Edit: 888 is coded for Santa. I have yet to code the dialogue for the npc 8542 thats why I added 888 for this npc
  2. As the title says I need this lol... I have tried a few times but it only renames all npcs on the server and ive tried via PetManager.java stringing it to commands and how the trollnaming is set but still doesnt wanna go correctly. If anyone has an idea how to go about this id appreciate it! Thanks! ~Baki
  3. [SIZE=4]So I saw someone else released it for 718 so I thought, well might as well release for 562, lol (You may have to change around the methods a bit)[/SIZE] [SIZE=3]What you're adding:[/SIZE] [IMG]http://i.imgur.com/Yblv72G.png[/IMG] [IMG]http://i.imgur.com/xac7U3U.png[/IMG] Create a new class called Spinning and copy + paste this in it [CODE]package org.devilsscape.game.player.skills.crafting; import org.devilsscape.cache.loaders.ItemDefinitions; import org.devilsscape.game.Animation; import org.devilsscape.game.player.Player; import org.devilsscape.game.player.Skills; import org.devilsscape.game.player.skills.Skill; /** * spinning shit, lol * * @author K-Shan/Brainiac * */ public class Spinning extends Skill { /** * emote */ public static final int SPINNING_EMOTE = 5; /** * spin stuff */ public enum Spinnables { WOOL(1737, 1759, 1, 2.5), FLAX(1779, 1777, 10, 15), SINEW(9436, 9438, 10, 15), TREE_ROOTS(6043, 9438, 10, 15), MAGIC_ROOTS(6051, 6038, 19, 30), YAK_HAIR(10814, 954, 30, 25); private int itemId; private int productId; private int levelRequired; private double exp; private Spinnables(int itemId, int productId, int levelRequired, double exp) { this.itemId = itemId; this.productId = productId; this.levelRequired = levelRequired; this.exp = exp; } public int getItemId() { return itemId; } public int getProductId() { return productId; } public int getLevel() { return levelRequired; } public double getExp() { return exp; } } /** * amount of the item being spinned */ private int amount; /** * the current spinning item. */ private Spinnables spin; /** * instance * @param spin * @param amount */ public Spinning(Spinnables spin, int amount) { this.spin = spin; this.amount = amount; } /** * if the player has the required level or not. * @param player * @return */ private boolean hasCraftingLevel(Player player) { if(player.getSkills().getLevel(Skills.CRAFTING) < spin.getLevel()) { player.getActionSender().sendMessage("You need a Crafting level of "+spin.getLevel()+" in order to spin this."); return false; } return true; } @Override public boolean start(Player player) { String itemName = ItemDefinitions.getItemDefinitions(spin.getItemId()).getName(); if(!player.getInventory().contains(spin.getItemId(), 1)) { player.getActionSender().sendMessage("You do not have any "+itemName+" in your inventory."); return false; } if(!hasCraftingLevel(player)) return false; player.getActionSender().sendMessage("You place the "+itemName+" inside of the wheel.."); return true; } @Override public boolean process(Player player) { if(!player.getInventory().contains(spin.getItemId(), 1)) { String itemName = ItemDefinitions.getItemDefinitions(spin.getItemId()).getName(); player.getActionSender().sendMessage("You have ran out of "+itemName+"."); return false; } if(!hasCraftingLevel(player)) return false; if(amount <= 0) return false; return true; } @Override public int processWithDelay(Player player) { String itemName = ItemDefinitions.getItemDefinitions(spin.getItemId()).getName(); String productName = ItemDefinitions.getItemDefinitions(spin.getProductId()).getName(); amount--; player.setNextAnimation(new Animation(SPINNING_EMOTE)); player.getInventory().deleteItem(spin.getItemId(), 1); player.getInventory().addItem(spin.getProductId(), 1); player.getSkills().addXp(Skills.CRAFTING, spin.getExp()); player.getActionSender().sendMessage("You successfully spin the "+itemName+" into a "+productName+"."); if(amount > 0) return 3; return 0; } @Override public void stop(Player player) { setSkillDelay(player, 3); } }[/CODE] In your object handler class or ObjectPacketHandler1 class and place this under handleOption2 (if you're using RuneEscape you shouldn't have a problem) [CODE]case "spinning wheel": if(objectDef.containsOption(1, "Spin")) { player.getActionSender().sendInterface(459); player.getActionSender().sendItemOnInterface(459, 20, 1, 1759); // ball of wool player.getActionSender().sendItemOnInterface(459, 14, 1, 1777); // bow string player.getActionSender().sendItemOnInterface(459, 24, 1, 6038); // Magic string player.getActionSender().sendItemOnInterface(459, 32, 1, 9438); // c bow string player.getActionSender().sendItemOnInterface(459, 28, 1, 9438); // c bow string player.getActionSender().sendItemOnInterface(459, 36, 1, 954); // rope } break;[/CODE] Next, go to your button handler class and under switch (buttonId) { add this new case: [CODE]case 459: player.getActionSender().sendCloseInterface(); switch(buttonId) { case 19: // ball of wool if(packetId == 216) { // make 1 player.getSkillExecutor().setSkill(new Spinning(Spinnables.WOOL, 1)); } else if(packetId == 19) { // make 5 player.getSkillExecutor().setSkill(new Spinning(Spinnables.WOOL, 5)); } else if(packetId == 193) { // make all player.getSkillExecutor().setSkill(new Spinning(Spinnables.WOOL, player.getInventory().numberOf(Spinnables.WOOL.getItemId()))); } break; case 17: // bow string if(packetId == 216) { // make 1 player.getSkillExecutor().setSkill(new Spinning(Spinnables.FLAX, 1)); } else if(packetId == 19) { // make 5 player.getSkillExecutor().setSkill(new Spinning(Spinnables.FLAX, 5)); } else if(packetId == 193) { // make all player.getSkillExecutor().setSkill(new Spinning(Spinnables.FLAX, player.getInventory().numberOf(Spinnables.FLAX.getItemId()))); } break; case 23: // magic string if(packetId == 193) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.MAGIC_ROOTS, player.getInventory().numberOf(Spinnables.MAGIC_ROOTS.getItemId()))); } else if(packetId == 216) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.MAGIC_ROOTS, 1)); } else if(packetId == 19) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.MAGIC_ROOTS, 5)); } break; case 31: // tree roots if(packetId == 193) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.TREE_ROOTS, player.getInventory().numberOf(Spinnables.TREE_ROOTS.getItemId()))); } else if(packetId == 216) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.TREE_ROOTS, 1)); } else if(packetId == 19) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.TREE_ROOTS, 5)); } break; case 27: // sinew if(packetId == 193) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.SINEW, player.getInventory().numberOf(Spinnables.SINEW.getItemId()))); } else if(packetId == 216) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.SINEW, 1)); } else if(packetId == 19) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.SINEW, 5)); } break; case 35: // rope if(packetId == 193) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.YAK_HAIR, player.getInventory().numberOf(Spinnables.YAK_HAIR.getItemId()))); } else if(packetId == 216) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.YAK_HAIR, 1)); } else if(packetId == 19) { player.getSkillExecutor().setSkill(new Spinning(Spinnables.YAK_HAIR, 5)); } break; } break;[/CODE] And don't forget to import: [CODE]import org.devilsscape.game.player.skills.crafting.Spinning; import org.devilsscape.game.player.skills.crafting.Spinning.Spinnables;[/CODE] Happy coding :)
  4. my donator cape we can see its trhough body why? [ATTACH=CONFIG]9045[/ATTACH]
  5. [CODE]i got this after trying to add dkite to my source, this is the end code. if(i == 9543) { itemDef.ItemActions = new String[5]; itemDef.ItemActions[1] = "Wear"; itemDef.originalModelColors = new int[1]; itemDef.modifiedModelColors = new int[1]; itemDef.modelid = 13085; itemDef.modelZoom = 1957; itemDef.modelRotation1 = 498; itemDef.modelRotation2 = 484; itemDef.anInt204 = 0; itemDef.modelOffsetY = -1; itemDef.modelOffsetX = 4; itemDef.anInt165 = 13085; itemDef.anInt200 = 13085; itemDef.anInt175 = -1; itemDef.anInt197 = -1; itemDef.name = "Dragon Shield"; itemDef.description = "Dragon Kiteshield.".getBytes(); }[/CODE] Changed all the class8 to itemDef and it gave me a 77 errors after compiling. This is what i changed; [CODE] if(i == *****) { class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear"; class8.anIntArray156 = new int[1]; class8.anIntArray160 = new int[1]; class8.anIntArray156[0] = 933; class8.anIntArray160[0] = 926; class8.anInt174 = 5251; class8.anInt181 = 1957; class8.anInt190 = 498; class8.anInt198 = 484; class8.anInt204 = 0; class8.anInt169 = -1; class8.anInt194 = 4; class8.anInt165 = 5251; class8.anInt200 = 5251; class8.anInt175 = -1; class8.anInt197 = -1; class8.aString170 = "Dragon Shield"; class8.aByteArray178 = "Jakes version of the Dragon Shield.".getBytes(); }[/CODE] mind telling me where i messed up?
  6. Ruler

    Rs custom items

    Well first of all the title may be a bit miss-leading sorry for that, But Currently i've searched for about 2-3 hours now, I can't seem to find GZIP download. Also I need a decent Rs map editor for a 317 if anyone could help thanks.
  7. I can buy the items in the donor shop for donator points but when i sell the item back to the shop it gives me gps.How can i fix this? HELP! THX! :D
  8. I NEED HELP CHANGING FEW ITEMS ( THE LOOK FOR THE ITEMS ) MAKE THEM LOOK LIKE 317 ( THE ITEMS REVISION 617 ) i'm paying up to 100$ for who ever helps and teaching me how to do it REVISION 317 PI :D:D:D:D:D can Skype : Mohammed.khalaila3
  9. This is my problem, I buy a korasi for 200m or whichever item from the donator shop with coins. I can then run to pvp shop and sell for pvp tokens 200m of them. I need to make it so you can only sell items which you can buy. Does anyone know how? Thanks <3
  10. Hi guys i got some questions. 1. How to make it, that every time you receive a log or a ore that you receive some skilling points? And how to make it that you can buy things with them in shops, like a helmet that gives 50% more xp in 1 skill ^^?
  11. Haii everyone, I am trying to make some items untradeable. Let's use a mystery box for example. I followed a tutorial by someone and it said in "Itemconstants.java" under the "switch (item.getId()) {" put "case (item id): underneathe it and it will make the item untradeable. [CODE] public static boolean isTradeable(Item item) { if (item.getDefinitions().isLended() || ItemConstants.getItemDefaultCharges(item.getId()) != -1) return false; switch (item.getId()) { case 6199: //Mystery Box default: return true; } } }[/CODE] When I went ingame, I could still trade the mystery box. Does anyone know how to actually make an item untradeable? I will need to make chaotics untradeable aswel. All help is greatly appreciated! Emily x
  12. 317 [PI] INSIDIA X V2 I TESTED ON THIS WORKS 100% [Code]if (playerCommand.startsWith("item")) { if (c.inWild()) { c.sendMessage("you can't spawn items in the wilderness!"); return; } try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); // add restricted items here. int restrictedItems[] = {1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1053, 1054, 1055, 1056, 1057, 1058, 1050, 1051, 14484, 11694, 11695, 11696, 11697, 11698, 11699, 11700, 11701, 13450, 13451, 13452, 13453, 11702, 11703, 11704, 11705, 11706, 11707, 11708, 11709, 13740, 13741, 13748, 13749, 13734, 13735, 13736, 13737, 13738, 13739, 13742, 13743, 13744, 13745, 13887, 13888, 13889, 13893, 13894, 13895, 13899, 13900, 13901, 13905, 13906, 13907, 13911, 13912, 13913, 13917, 13918, 13919, 13923, 13924, 13925, 13929, 13930, 13931, 13870, 13871, 13872, 13873, 13874, 13875, 13876, 13877, 13878, 13879, 13880, 13881, 13882, 13883, 13944, 13945, 13946, 13947, 13948, 13949, 13950, 13951, 13952, 13953, 13954, 13955,13956, 13957, 13884, 13885, 13886, 13890, 13891, 13892, 13896, 13897, 13898, 13902, 13903, 13904, 13908, 13909, 13910, 13914, 13915, 13916, 13920, 13921, 13922, 13926, 13927, 13928, 13858, 13859, 13860, 13861, 13862, 13863, 13864, 13865, 13866, 13867, 13868, 13869, 13932, 13933, 13934, 13935, 13936, 13937, 13938, 13939, 13940, 13941, 13942, 13942, 13943, 2570, 2571, 14642, 14645, 15433, 15435, 15474, 14641, 15432, 15434, 11728, 11729, 13460, 15328, 15329, 15330, 15331, 15332, 15333, 15334, 15335, 15773, 15774, 15818, 15888, 15889, 15890, 15891, 15924, 15935, 15946, 16001, 16023, 16034, 16045, 16090, 16126, 16137, 16152, 16184, 16206, 16217, 16258, 16259, 16260, 16261, 16272, 16293, 16294, 16315, 16316, 16359, 16360, 16381, 16382, 16403, 16404, 16425, 16426, 16667, 16668, 16689, 16690, 16711, 16712, 16733, 16734, 16837, 16838, 16839, 16840, 16841, 16842, 16843, 16844, 16909, 16910, 16955, 16956, 17039, 17040, 17143, 17144, 17145, 17146, 17147, 17148, 17149, 17150, 17259, 17260, 17361, 17362, 20822, 20823, 20824, 20825, 20826, 20833, 13362, 13358, 13360, 13355, 13354, 13352, 13350, 13348, 13346, 18786, 19780, 19784, 773, 11724, 11725, 11726, 11727, 18349, 18350, 18351, 18352, 18353, 18354, 18355, 18356, 18357, 18359, 18360, 18333, 18334, 18335, 19669, 18361, 18362, 18363, 18364, 989, 990, 14486, 13538, 13539, 13540, 13531, 13532, 13533, 13534, 13535, 13536, 13537, 2422, 14484, 773}; for (int i : restrictedItems) { if (i == newItemID) { if (c.playerRights < 3) { c.sendMessage("You cannot spawn this item"); return; } } } if ((newItemID <= 30000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("You can't spawn this item!"); } } else { c.sendMessage("Wrong usage: (Ex:(::item_ID_Amount)(::item 995 1))"); } } catch(Exception e) { } } [/CODE]
  13. i don't know how to add custom items to a pi server can someone help me
  14. Hello, I don't know how to add new items on a 718 rsps so i need some help... Can someone help me? I would like to have those information for adding items like drygores, tetsu, ... (Models and ints, anything more i need to do?): -What do i need for it? -What need i to do? I hope there wil be someone that want to help me! Regards, Noxarian
  15. hello, i need to add some more items to this rsps but i wanna add more items to it ad i don't seem to be succeeding with it if there is anyone that it better then me and know what the are doing can you help me please i'll give you something in return like something on the server when it's up or what ever i have skype so if you wanna help me over that just ask for my skype name Thanks in advance :D P.S my server will be VPS hosted i have the vps set up now just really need to add more items before i put it public
  16. on my server i cant drop items. i can only destroy them, it doesnt matter what item it is i can only destroy thats it. I dont if it does that because of a dupe glitch or something but if someone helps me it would be appreciated. [ATTACH=CONFIG]8852[/ATTACH]
  17. Again, I cannot spawn items, and someone gave me the script for an item spawning command, suggesting that I do not have the command. Here it is: if (playerCommand.startsWith("item") && c.playerRights >= 2) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::item 995 200 for example 200 gp"); } } catch(Exception e) { } } What do I do with this? Is there a configuration file I should put this in? Where?
  18. on my runelocus 317 private server, I cannot spawn items for the life of me. I do ::item [ID] but nothing happens! Can someone please come on my server or something to help me figure this out?
  19. so i added 634 items and then when i spawned torva full helm [quote]RS2 user client - release #317 NPC.DAT : 1489108188 Called method225 NPC.IDX : 1489126980 Called method225 Error: T1 - 123,0 - 36,36 Exception in thread "Thread-4" java.lang.ArrayIndexOutOfBoundsException: 20135 at ItemDef.forID(ItemDef.java:172) at ItemDef.getSprite(ItemDef.java:365) at client.drawInterface(client.java:8357) at client.drawTabArea(client.java:1893) at client.drawGameScreen(client.java:8152) at client.processDrawing(client.java:8900) at RSApplet.run(RSApplet.java:108) at client.run(client.java:4689) at java.lang.Thread.run(Unknown Source) [/quote]
  20. Using Rune-Evo 742 source here, and I'm wondering how I delete items from a shop and how to change their prices. Any help appreciated be noob friendly.
  21. i added some custom stuff from the client i got and they all go too weapon slot i added the id too item.java but yet they still go too the weapon slot is there any other way to fix this?
  22. hello :) i want to add 667 items (only items) I added 667 readvalues and i get this error btw where i can find 667 model header and also which datas I need to add and how i add thems in my cache? [quote]SpotAnim.java:27: error: cannot find symbol cache[j].readValues(stream); ^ symbol: method readValues(Stream) location: class SpotAnim EntityDef.java:675: error: cannot find symbol anIntArray94 = new int[j]; ^ symbol: variable anIntArray94 location: class EntityDef EntityDef.java:677: error: cannot find symbol anIntArray94[j1] = stream.readUnsignedWo rd(); ^ symbol: variable anIntArray94 location: class EntityDef EntityDef.java:690: error: cannot find symbol anInt77 = stream.readUnsignedWord(); ^ symbol: variable anInt77 location: class EntityDef EntityDef.java:693: error: cannot find symbol anInt67 = stream.readUnsignedWord(); ^ symbol: variable anInt67 location: class EntityDef EntityDef.java:697: error: cannot find symbol anInt67 = stream.readUnsignedWord(); ^ symbol: variable anInt67 location: class EntityDef EntityDef.java:713: error: cannot find symbol anIntArray76 = new int[k]; ^ symbol: variable anIntArray76 location: class EntityDef EntityDef.java:714: error: cannot find symbol anIntArray70 = new int[k]; ^ symbol: variable anIntArray70 location: class EntityDef EntityDef.java:717: error: cannot find symbol anIntArray76[k1] = stream.readUnsignedWo rd(); ^ symbol: variable anIntArray76 location: class EntityDef EntityDef.java:718: error: cannot find symbol anIntArray70[k1] = stream.readUnsignedWo rd(); ^ symbol: variable anIntArray70 location: class EntityDef ItemDef.java:516: error: cannot find symbol anInt165 = stream.readUnsignedWord(); ^ symbol: variable anInt165 location: class ItemDef ItemDef.java:524: error: cannot find symbol anInt200 = stream.readUnsignedWord(); ^ symbol: variable anInt200 location: class ItemDef ItemDef.java:612: error: cannot find symbol lendID = stream.readUnsignedWord(); ^ symbol: variable lendID location: class ItemDef ItemDef.java:615: error: cannot find symbol lendTemplateID = stream.readUnsignedWord(); ^ symbol: variable lendTemplateID location: class ItemDef Note: client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 14 errors[/quote]
  23. Wajdi

    [PI] Spawn items.

    I want to spawn some items in the game, how I can? what should I add ... etc.. tried ::item 955 ammount and some other items and none of them work, why? help ples?
  24. hello i am started as first whit an eco server but did decide to go on to make a pk server now is there a little problem you can say i need to make items unspawnble. i fellowd some guides but than i get erros or it just dont work somehow :confused: now i am gonna try it here. okay what i tryd? i did try this, [CODE]static final String[] UNSPAWNABLE = {14484, 11694};[/CODE] than i get a error that says "illigal start of expression" dont know why. also i did try to added it in commands like. [CODE]if (playerCommand.startsWith("item")) { try { int noSpawn[] = {14484,11694}; String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { for (int u : noSpawn) { if (newItemID != u) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("You cannot spawn that item!"); } } } else { c.sendMessage("That item ID does not exist."); } } else { c.sendMessage("Wrong usage: (Ex:(::pickup_ID_Amount)(::item 995 1))"); } catch (Exception e) { e.printStackTrace(); } } [/CODE] this is the version i dont get erros but i still can spawn all items i did added also i have another question. how can i make it so admins can spawn all items even that are in that list. and that players need tokens/coins to spawn items? i am hope someone can help me whit this points. Note: i dont contact whit skype or tv since i am need to put it in myself and dont trust people on tv (did before and that guy whas watching .... on my computer lmfao) so if you can help by just saying what i need to replace or need to added more or chance shall be very helpfull i give "thanks" (button) for helping me.
  25. So i am running Currently a server with 50+ Users online and nothing edited yet... And my question is how do i make things unspawnable I am using a matrix source.
×