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


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Found 284 results

  1. Hey im trying to add a korasi or anything else into my server what file do i put the models in ? and could some one elxplain wut all these things mean when you add in a item [CODE]case 15295: itemDef.actions = new String[5]; itemDef.actions[1] = "Wear"; itemDef.name = "(Already know what this is )"; //Name itemDef.description = " (i already know what this is)".getBytes(); //Description itemDef.originalModelColors = new int[1]; itemDef.modifiedModelColors = new int[1]; itemDef.originalModelColors[0] = 0; itemDef.modifiedModelColors[0] =; itemDef.modelID = ;//2529 itemDef.modelZoom = ; itemDef.modelRotation1 = ; itemDef.modelRotation2 = ; itemDef.modelOffset2 = ; itemDef.modelOffset1 = ; itemDef.maleEquip1 = ;//509 itemDef.femaleEquip1 = ;//509 break;[/CODE] Some one please help thanks :0
  2. candyman1

    edit items

    hello, can someone plzz help me, i got a 718 server and cant get my models out of my cache to edit them with Metasequoia. someoen please help me, send me a pm or add me on skype. nielsvanrijn2. thanks alot!!
  3. Okay so basically i'm have the issue were when i buy a large amount of items from a shop like lets say for example 5k runes or even 1k, It doesn't show up in the inventory and lags and when you exit the shop it all slowly adds up in your inventory and you are unable to move until it finishes. This is the same for selling. Hopefully that's enough to explain for yous to know what I'm talking about. If anyone knows how to fix it please help [IMG]http://i1280.photobucket.com/albums/a481/KadeHamood/ezgif.com-gif-maker_zpsbvrmtvk6.gif[/IMG]
  4. no longer need help
  5. Hi, i followed this guide to add new items into my rsps. [video=youtube;ruE-r1_KZCU]https://www.youtube.com/watch?v=ruE-r1_KZCU[/video] I followed it and my client crashes every time. Anyone knows how to fix this? Thanks for answers. I get this error: [QUOTE] javax.imageio.IIOException: Can't get input stream from URL! at javax.imageio.ImageIO.read(Unknown Source) at Loader.openFrame(Loader.java:127) at Loader.doFrame(Loader.java:63) at Loader.main(Loader.java:47) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: [url]http://puu.sh/81m7o.png[/url] at sun.net.[url]www.protocol.http.HttpURLConnection.getInputStream (Unknown[/url] So urce) at java.net.URL.openStream(Unknown Source) ... 4 more Error: jn.a() fb.d() lk.a() client.er() | Class225.method2094:57 Class125.method 1401:279 Class275.method2573:59 client.method2806:3711 client.method2773:641 Cla ss291.method2764:641 Class291.method2759:457 Class291.run:384 java.lang.Thread.r un | java.lang.RuntimeException | null 0,0,0,0 0,0,0, 2 0 2 765,503 1 2 1 1 0 0 248 12 -1 hAJWGrsaETglRjuwxMwnlA/d5W6EgYWx java.io.FileNotFoundException: [url][/url] =Oracle+Corporation&v2=1.7.0_51&e=jn.a%28%29+fb.d%28%29+lk.a%28%29+client.er%28% 29+%7C+Class225.method2094%3A57+Class125.method140 1%3A279+Class275.method2573%3A 59+client.method2806%3A3711+client.method2773%3A64 1+Class291.method2764%3A641+Cl ass291.method2759%3A457+Class291.run%3A384+java.la ng.Thread.run+%7C+java.lang.Ru ntimeException+%7C+null++0%2C0%2C0%2C0+0%2C0%2C0%2 C+2+0+2+765%2C503+1+2+1+1+0+0+ 248+12+-1+hAJWGrsaETglRjuwxMwnlA%2Fd5W6EgYWx at sun.net.[url]www.protocol.http.HttpURLConnection.getInputStream (Unknown[/url] So urce) at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:171) at client.method2773(client.java:645) at Class291.method2764(Class291.java:641) at Class291.method2759(Class291.java:457) at Class291.run(Class291.java:384) at java.lang.Thread.run(Unknown Source) Error: nk.a() wr.fe() pk.fk() pj.fw() client.ae() mc.m() mc.e() | Class322.metho d3931:46 Class365_Sub1_Sub5_Sub2.method4533:488 Class371.method4584:201 Class370 .method4578:92 client.method2773:650 Class291.method2764:641 Class291.method2759 :457 Class291.run:384 java.lang.Thread.run | java.lang.NullPointerException | 0 ,0,0,0 0,0,0, 2 0 2 765,503 1 2 1 1 0 0 248 12 -1 hAJWGrsaETglRjuwxMwnlA/d5W6EgY Wx java.io.FileNotFoundException: [url][/url] =Oracle+Corporation&v2=1.7.0_51&e=nk.a%28%29+wr.fe%28%29+pk.fk%28%29+pj.fw%28%29 +client.ae%28%29+mc.m%28%29+mc.e%28%29+%7C+Class32 2.method3931%3A46+Class365_Sub 1_Sub5_Sub2.method4533%3A488+Class371.method4584%3 A201+Class370.method4578%3A92+ client.method2773%3A650+Class291.method2764%3A641+ Class291.method2759%3A457+Clas s291.run%3A384+java.lang.Thread.run+%7C+java.lang. NullPointerException+%7C++0%2C 0%2C0%2C0+0%2C0%2C0%2C+2+0+2+765%2C503+1+2+1+1+0+0 +248+12+-1+hAJWGrsaETglRjuwxMw nlA%2Fd5W6EgYWx at sun.net.[url]www.protocol.http.HttpURLConnection.getInputStream (Unknown[/url] So urce) at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:171) at Class291.run(Class291.java:388) at java.lang.Thread.run(Unknown Source) error_game_crash [/QUOTE]
  6. I honestly have no Idea how to add custom items. Right now, they just kinda float there if i'm moving. Anyone have any idea how to help me?
  7. Does anyone know how to fix the item from showing up as something it isn't? case 7142: itemDef.name = "@[email protected] tentacle"; itemDef.description = "A weapon from the abyss, embedded in a slimy tentacle.".getBytes(); itemDef.modelID = 4185; itemDef.modelZoom = 913; itemDef.modelRotationY = 304; itemDef.modelRotationX = 148; itemDef.modelOffset1 = 0; itemDef.modelOffset2 = 3; itemDef.itemActions[1] = "Wield"; itemDef.anInt165 = 4186; itemDef.anInt200 = 4186; itemDef.itemActions[1] = "Wield"; itemDef.itemActions[3] = "Check"; itemDef.itemActions[4] = "Dissolve"; break; [ATTACH=CONFIG]10952[/ATTACH]
  8. hnco04

    custome items ? HELP

    im trying to add custom items which is a GUN :D? but i wanted it to hit range? and not use any bolts or arrows.. can anyone HELP ?
  9. [317 PkZipScape] Welcome and thank you for reading Some features of PkZipscape * [VPS] HOSTED NO LAG * Fully working Forums * Vesta and other PVP Armour * Korasi's sword * Dragon Claws * Chaotics * Vesta's longsword * Spirit Shields * Good Donating system -- RSGP and other methods * Drygores, Staff of dead, Tentacle whip, Toxic blowpipe, Serpentine Helmet * Lots of RS07 items * Drop Party At 10 Players! * Forum Link for Download ---> : [url]http://pkzipscape.createaforum.com/index.php[/url] [img]http://i.imgur.com/oeLWv8Y.png[/img] [img]http://i.imgur.com/jtX3gG0.png[/img] [img]http://i.imgur.com/hl6B5GR.png[/img] [img]http://i.imgur.com/paGfrxq.png[/img] [img]http://i.imgur.com/wRHQJpH.png[/img] [img]http://i.imgur.com/yHnYiQd.png[/img] [img]http://i.imgur.com/Dp9ZJyW.png[/img] [img]http://i.imgur.com/645fXUU.png[/img] [img]http://i.imgur.com/hXu0nrT.png[/img] [img]http://i.imgur.com/1WURdsT.png[/img] [img]http://i.imgur.com/A21VHM8.png[/img] [img]http://i.imgur.com/5s7L4sA.png[/img] [img]http://i.imgur.com/dqgjE9Z.png[/img] [img]http://i.imgur.com/vsHZNAd.png[/img] Everyone is Welcome so please join! It will be a very awesome Experience! COMING SOON} [PkZip718] [img]http://i.imgur.com/dBGeNln.png[/img] [img]http://i.imgur.com/H2DVuMi.png[/img] [img]http://i.imgur.com/Ri0p8XH.png[/img] [img]http://i.imgur.com/J1xp2ap.png[/img] [img]http://i.imgur.com/7WbJM1J.png[/img] [img]http://i.imgur.com/PMcEpbS.png[/img] [img]http://i.imgur.com/D7nrddc.png[/img]
  10. WHALE, when I click view items on death, I disconnect; the button is not attached to anything stupid that dcs you, so I'm wondering is items on death a packet and or an interface? This is what shows up in the CMD: [CODE] 0 java.lang.ArrayIndexOutOfBoundsException: 0 at ik.a(ik.java:2689) at ik.a(ik.java:5825) at PacketsDecoder.a(PacketsDecoder.java:558) at bl.a(bl.java:18) at vfa.a(vfa.java:31) at client.g(client.java:1235) at client.a(client.java:246) at GameApplet.c(GameApplet.java:159) at GameApplet.run(GameApplet.java:413) at java.lang.Thread.run(Unknown Source) [/CODE]
  11. wae55

    637 Spawning items?

    Hey guys, I wanted to know how to give myself items on my rsps. Yes I'm a noob lol but please help. thanks
  12. Hyperon

    Ground items nulled

    I am using Hyperion/Rs2-Server 474. I have been racking my brain for about a week now and after ripping the register(GroundItem) and createGroundItem(GroundItem) methods apart I have come to the conclusion I have no idea. The problem only occurs when I change regions (ground items are region loaded for each player). I drop an item or spawn global item drops and one item appears fine. [img]http://puu.sh/durTs/a2d3ab8ed7.png[/img] I then leave the region. [img]http://puu.sh/durQ1/8435b70398.png[/img] And return to the item dropped, and there are two, but I can only pick one item up. The other is nulled. [img]http://puu.sh/durUF/fc0aab7212.png[/img] When I drop an item, this is what creates the GroundItem. I used different ways to create an item and they all have the same problem: [code] World.getWorld().createGroundItem(new GroundItem(player.getName(), item, player.getLocation()), player); World.getWorld().createGroundItem(new GroundItem("", new Item(8004, 1), Location.create(2526, 2913, 0)), null); GroundItem newItem = new GroundItem(null, new Item(4151, 1), Location.create(3233, 3233, 0)); register(newItem, null); GroundItem newItem = new GroundItem(player.getName(), new Item(4151, 1), Location.create(3233, 3233, 0)); register(newItem, player); [/code] My createGroundItem method: [code] public void createGroundItem(final GroundItem item, final Player player) { Tile tile = item.getRegion().getTile(item.getLocation()); if(item.getItem().getDefinition().isStackable()) { if(tile.getGroundItems().size() > 0) { for(GroundItem g : tile.getGroundItems()) { if(item.isOwnedBy(player.getName()) && g.getItem().getId() == item.getItem().getId()) { long existingItemCount = (long) g.getItem().getCount(); long newItemCount = (long) item.getItem().getCount(); long total = existingItemCount + newItemCount; long remainder = 0; if(total > Integer.MAX_VALUE) { total = existingItemCount + (Integer.MAX_VALUE - existingItemCount); remainder = (existingItemCount + newItemCount) - Integer.MAX_VALUE; } g.setItem(new Item(g.getItem().getId(), (int) total)); if(remainder > 0) { if(player != null) { player.getInventory().add(new Item(g.getItem().getId(), (int) remainder)); } } if(g.isGlobal()) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { p.getActionSender().removeGroundItem(g); p.getActionSender().sendGroundItem(g); logger.info("We are here if g.isGlobal()"); } } } else { player.getActionSender().removeGroundItem(g); player.getActionSender().sendGroundItem(g); logger.info("We are here if !g.isGlobal()"); } return; } } } } register(item, player); } [/code] and my register(GroundItem, Player) method: [code] /** * Registers a new ground item. * [MENTION=75098]Para[/MENTION]m item The item to register. * [MENTION=75098]Para[/MENTION]m player The controller. */ public void register(final GroundItem item, final Player player) { item.getRegion().getGroundItems().add(item); item.getRegion().getTile(item.getLocation()).getGroundItems().add(item); if(player != null) { player.getActionSender().sendGroundItem(item); submit(new Tickable(100) { public void execute() { if(item.isRegistered()) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { if(!p.getName().equalsIgnoreCase(player.getName())) { p.getActionSender().sendGroundItem(item); logger.info("We are here if player != null"); } } } item.setGlobal(true); } this.stop(); } }); } else if(player == null || item.getControllerName().length() < 1) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { if(player == null || !p.getName().equalsIgnoreCase(player.getName())) { p.getActionSender().sendGroundItem(item); logger.info("We are here if player == null"); } } } item.setGlobal(true); } submit(new Tickable(200) { public void execute() { if(item.isRegistered()) { unregister(item); } this.stop(); } }); } [/code] As you can see in the register and createGroundItem methods I entered some debugging information to print, and it is telling me that when it registers, Player player is returning null. [img]http://puu.sh/dutyo/725134560e.png[/img] Any ideas? If you need any more information let me know. I really need a second pair of eyes on this.
  13. i can not for the life of me figure out adding items nor npcs, if you can help (im sure we can negotiate) then please contact me SKYPE: Tanxx_pure [COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR] And yes i have looked at some guides
  14. What you are adding: [video=youtube;S_47ndj4pB4]http://www.youtube.com/watch?v=S_47ndj4pB4[/video] Difficult: 1/10 - 2/10 Knowledge: Copy+Paste and add a class Base: PI before we start i will point out this is all server-sided lets go, first add Ornamenting.java to src-server-model-items [URL="http://dl.dropbox.com/u/35016454/Ornamenting.zip"]Download here[/URL] or copy this code and paste [CODE]package server.model.items; import server.model.players.Client; /** * * @author antiworth * */ public class Ornamenting { private static Client c; public Ornamenting(Client c) { this.c = c; } public static void ornamenting(int itemUsed, int useWith) { int[][] ornamenting = { {19346, 11335, 19336}, {19350, 14479, 19337}, {19348, 4087, 19338}, {19348, 4585, 19339}, {19352, 1187, 19340}, {19354, 11335, 19341}, {19358, 14479, 19342}, {19356, 4087, 19343}, {19356, 4585, 19344}, {19360, 1187, 19345}, {19333, 6585, 19335} }; for (int i = 0; i < ornamenting.length; i++) { if (itemUsed == ((int) ornamenting[i][0]) && useWith == ((int) ornamenting[i][1]) || itemUsed == ((int) ornamenting[i][1]) && useWith == ((int) ornamenting[i][0])) { c.getItems().deleteItem(itemUsed, 1); c.getItems().deleteItem(useWith, 1); c.sendMessage("You attach the "+ c.getItems().getItemName(((int) ornamenting[i][0]))+" To the"+ c.getItems().getItemName(((int) ornamenting[i][1]))+"."); c.sendMessage("You recieve a "+c.getItems().getItemName(((int) ornamenting[i][2]))+"."); c.getItems().addItem(((int) ornamenting[i][2]),1); } } } public static void splitting(int itemId) { int[][] splitting = { {19346, 11335, 19336}, {19350, 14479, 19337}, {19348, 4087, 19338}, {19348, 4585, 19339}, {19352, 1187, 19340}, {19354, 11335, 19341}, {19358, 14479, 19342}, {19356, 4087, 19343}, {19356, 4585, 19344}, {19360, 1187, 19345}, {19333, 6585, 19335} }; for (int i = 0; i < splitting.length; i++) { if(itemId == ((int) splitting[i][2])) { if (c.getItems().freeSlots() >= 1) { c.getItems().deleteItem(itemId, 1); c.sendMessage("You split the "+ c.getItems().getItemName(((int) splitting[i][0]))+" from the "+ c.getItems().getItemName(((int) splitting[i][2]))+"."); c.sendMessage("You recieve a "+c.getItems().getItemName(((int) splitting[i][1]))+" and a "+ c.getItems().getItemName(((int) splitting[i][0]))+"."); c.getItems().addItem(((int) splitting[i][0]), 1); c.getItems().addItem(((int) splitting[i][1]), 1); } else { c.sendMessage("You Need At Least 1 Free Inventory Space Before Doing This."); } } } } } [/CODE] save and close Ornamenting.java now open up client.java and add this import with all the others: [CODE]import server.model.items.Ornamenting;[/CODE] now add this [CODE]private Ornamenting Ornamenting = new Ornamenting(this);[/CODE] under [CODE]public class Client extends Player {[/CODE] now find [CODE] public Food getFood() { return food; }[/CODE] under that add[CODE] public Ornamenting getOrnaments() { return Ornamenting; }[/CODE] save and close client.java open up useItem.java under [CODE]public static void ItemonItem(Client c, int itemUsed, int useWith) {[/CODE] add [CODE]c.getOrnaments().ornamenting(itemUsed, useWith);[/CODE] save and close useItem.java now open itemClick2.java under [CODE] public void processPacket(Client c, int packetType, int packetSize) { int itemId = c.getInStream().readSignedWordA(); if (!c.getItems().playerHasItem(itemId,1)) return;[/CODE] add [CODE]c.getOrnaments().splitting(itemId);[/CODE] finished save+compile, run server and try it out please comment or atleast say thanks credits: 10% sanity, erasedpkz for source to code on 90% me for coding the whole class and the other stuff this was all written by me, i will only post this on runelocus. if u see this on other forums its not me feel free to post any errors itemId list: [QUOTE]19335 Amulet of fury (or) 19336 Dragon full helm (or) 19337 Dragon platebody (or) 19338 Dragon platelegs (or) 19339 Dragon plateskirt (or) 19340 Dragon square shield (or) 19341 Dragon full helm (sp) 19342 Dragon platebody (sp) 19343 Dragon platelegs (sp) 19344 Dragon plateskirt (sp) 19345 Dragon sq shield (sp)[/QUOTE]
  15. Hello Im a new coder and just started a server 742. Players always loose items on death! I need help to stop this, I have tried alot of web pages and advise but still a major problem. Money pouch is bugged as well. Thanks to all who put good advise on this post.
  16. i was wondering how to make tickets so that players can click them to claim donor points, status or vote points, does anybody know how to accomplish such a feat?
  17. letifer

    Matrix items issue

    how do i change the items so the owner can wear anything. right now it still says i hav to vote to wear stuff and be a donator. anybody have a clue how to change that? what steps need to be done? thanks guys!
  18. [CENTER][B][SIZE=5]Hello there![/SIZE][/B] Recently, I began working on a 667 server ( Zombie Survival ) , a plan I have had, is to make items spawn in set coordinates every minute or so. So I would have 3 different items, a set of coordinates and a time cycle. I've been studying how 317's workfor most of the summer holiday, and I'm almost finished releasing it. So I have decided to move up to a harder revision. Is there anyone who can literally 'spoonfeed' me on how to do this? Thanks alot, I guess an ingame rank could be rewarded to the person :) Thanks[/CENTER]
  19. Note: Dont respond if you are going to complain, saves us headache. Feel free to post this anywhere. Go to: PlayerAssistant.java under: [CODE]public class PlayerAssistant{[/CODE] add: [CODE]public void YourBank(){ for (int i = 0; i < itemsToAdd.length; i++) { c.getItems().addItemToBank(itemsToAdd[i], 2147000000); } }[/CODE] Now declare this int: [CODE]int[] itemsToAdd = {405,15924,15773,15774,15772,15771,15818,995,773,406,13510,13512,13514,13516,13518,13520,13522,13524,13526,13528,13530,13532,13534,13536,13538,9470,9005,8901,11021,11018,11016,1672,11020,6726,6727,10566,9946,9944,9945,10939,10940,10945,9944,2631,10692,13810,11789,11790,8908,9948,9949,10646,9470,1,1037,1038,1039,1040,1041,1042,6543,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,11718,11719,11720,13458,11725,11727,13458,11727,11721,11722,11723,998,11724,11725,11726,11727,10330,10331,10332,10333,10334,6524,10335,10336,10337,10338,10339,10340,10341,10342,10343,10344,10345,10346,10347,10348,10349,10350,10351,10352,10353,8839,8840,8841,8842,8843,11663,11664,11665,999,13889,13902,15000,15001,15018,15019,15020,15220,13736,13738,13740,13742,13744,9789,9790,9813,9814,10662,2422,13500,13502,13504,13506,10654,11676,10611,10734,11675,11674,11278,15037,15038,15039,15040,2661,10637,10556,13899,13902,9096,9084,9091,9092,9093,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,10609,11367,11368,11369,11370,11371,11372,11373,11374,11375,11376,11377,11378,11379,11380,11381,11382,11383,11384,11385,11386,11387,11388,11389,11390,11391,11392,11393,11394,11395,11396,11397,11398,11399,11400,11401,11402,11403,11404,11405,11406,11407,11408,11409,11410,11411,11412,11413,11414,11415,11416,11417,11418,11419,11420,10556,10637,10778,2662,10043,10041,10042,10044,10045,10046,10047,10048,10049,10050,10051,10052,10053,10054,10055,10056,10057,10058,10059,10060,10061,10062,10063,10064,10065,10066,10067,10068,9921,9922,9923,9924,9925,13540,13542,13544,13546,13548,13550,13552,13554,13556,13558,13560,13562, 14484,14485,14486,13738,13740,13742,13744,18786,19780,19784,15486,15487,13746, 13747,13748,1349,13750,13751,13752,13753,18333,18334,18335,18349,18350,18351, 18352,18353,18354,18355,18356,18357,18358,18359,18360,1635, 13884,13885,13886,13901,1890,13891,13892,13896,13897,13898,13902,13903,13904, 13908,13909,13910,13914,4278,13915,13916,13920,13921,13922,13926,13927,13928, 13887,13886,13888,13889,13893,13894,13895,13899,13900,13901,13905,13906,13907, 13911,13912,13898,13913,13917,13918,13919,13923,13924,13925,13929,13930,13931, 13858,13859,13860,13861,13862,13863,13864,13865,13866,13867,13868,15272,15271,15273,15275,15270,15276,15277, 13869,13932,13933,13934,13935,13936,13937,13938,13939,13940,13941,13942,13943, 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, 11283,11284,11285,6570,15888,15889,15890,15935,16001,15891,16023,16034,16045,16090,16126,16137,16152,16184,16206,16217,16258,16259,16272,16293,16294,16315,16316,16359, 16360,16381,16382,16401,16403,16404,16425,16426,16260,16261,16648,16649,16650,16651,16652,16653, 16654,16655,16656,16657,16658,16659,16660,16661,16662,16663,16664,16665,16666,16667, 16668,16669,16670,16671,16672,16673,16674,16675,16676,16677,16678,16679,16680,16681,16682,16683,16684,16685,16686,16687,16688,16689,16690,16691,16692,16693,16694,16695 ,16696,16697,16698,16699,16700,16701,16702, 16703,16704,16705,16706,16707,16708,16709,16710,16711,16712,16713,16714,16715,16716,16717,16718,16719,16720,16721,16722,16723,16724,16725,16726,16727,16728,16729,16730 ,16731,16732,16733,16734, 13362,13360,13358,13355,13354,13352,13350,13348,13346,13344,13342,13340,13370,13336, 13450,13451,13452,13453,13461,20072,15018,15019,15020,15220,8839,8840,8841,8842,11663,11664,11665,13895, 4904,4905,4906,4907,4910,4911,4912,4913, 4916,4917,4918,4919,4922,4923,4924,4925,4880,4881,4882,4883, 4886,4887,4888,4889,4892,4893,4894,4895,4898,4899,4900,4901, 4928,4929,4930,4931, 4934,4935,4936,4937,4940,4941,4942,4943,4946,4947,4948,4949,13907, 4976,4977,4978,4979,4982,4983,4984,4985,4988,4989,4990,4991,4994,4995,4996,4997, 4745,4746,4747,4748,4749,4750,4751,4752,4952,4953,4954,4955,4958,4959,4960,4961,4964,4965,4966,4967,13922,13931, 4970,4971,4972,4973, 19590,19591,11814,11815,11816,11817,11818,11819,11820,11821,19594,19595,19598,19599,19578,19579,19576,19577, 19574,19575,19572,19573,15332,15333,15334,15335, 4860,4861,4866,4867,4872,4873,4878,4879,4932,4933,4938,4939,4944,4945,19111,20073,20074,20075,69,4950,4951, 4908,4909,4914,4915,4920,4921,4926,4927,4956,4957,4962,4963,4968,4969,4974,4975, 4980,4981,4986,4987,4992,4993,4998,4999,4884,4885,4890,4891,4896,4897,4902,4903,13374,13376,13378,13337,13338,13339,13336,1391,17835,17836,17837,17838,17839,17840,1784 1,17842,17843,17844,17845,17846,17847,17848,17849,17850,13858, 799,13859,13860,13861,13862,13863,13864,13865,13866,13867,13868,13869,13870,13871,13872,13873,13874,13875,13876, 16837,16838,16839,16840,16841,16842,16843,16844,13877,13878,13886,13889,13892,13894, 13895,13898,13901,13904,13907,13910,13913,13914,13915,13916,13919,13922,13923,13924,13925,13926,13927,13928,13929,13930,13931,13932,13933,13934, 13935,13936,13937,13939,13940,13941,13942,13943,13944,13945,13946,13947,13948,13949,13950,13951,13952,13953,13954,13955,13956,13957,13958,13959, 13960,13961,13962,13964,13965,13966,13967,13968,6542,13969,13970,13971,13972,13973,13974,13975,13976,13977,13978,13979,13980,13981,13982,13983,13984,13985,13986,13987, 13988,13989,13990,15300,15301,15302,15303,15304,15305,15306,15307,15308,15309,15310, 15311,15312,16901,16902,16903,16904,16905,16906,16907,16908,16909, 16910,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,16945, 16946,16947,16948,16949,16950,16951,16952,16953,16954,16955,16956,16957, 17029,17030,17031,17032,17033,17034,17035,17036,17037,17038,17039,17040, 17127,17128,17129,17130,17131,17132,17133,17134,17135,17136,17137,17138,17139,17140,17141,17142,17143,17144,17145,17146,17147,17148, 17149,17150,16958,16959,16960,17247,17248,17249,17250,17251,17252,17253,17254,17255,17349,17350,17351,17352,17353,17354,17355,17356,17357,17358,17359,17360,17361,17362 ,17256,17257,17258,17259,17260,15335};[/CODE] You're done with PlayerAssistant.java, close it and open up Commands.java Under any command add: [CODE]if (playerCommand.equals("ownerbank") && c.playerRights == 3) { c.getPA().YourBank(); c.sendMessage("Add a message here"); }[/CODE] save, compile & done. Dont complain the array is to long, if you dont want it: leave it. - King Rauddys.
  20. Hi there, I got a problem wich i cannot resolve. Its about when a player dies he does not drop anything on his death. I know that its when owner or admin dies in PvP then they do not drop anything but regular players do. So how do i get it done, so players drop their items on any death. I know its defined in player.java. And i need to define sendItemsOnDeath Method to it. But i have no idea where or how. Could someone explain me how and why its done like that? much appreciated tnx.
  21. [CODE]package server.model.players; import java.util.ArrayList; /** * * @author Fuzen Seth * [MENTION=49618]info[/MENTION] represents a connected new player. * [MENTION=3199]Sin[/MENTION]ce 10.8.2014 */ public class PlayerTutorial { /** * PlayerTutorial instance. */ private static PlayerTutorial instance = new PlayerTutorial(); public enum StartItem { IRON_SCIMITAR(1323, 1), COINS(995, 50000), RUNE_SCIMITAR(1333,1), STR_POT(2441, 50), ATT_POT(2437,50), PRAY_POT(2435, 50), CMB_BRACELET(11118, 1), CLIMBING_BOOTS(3105, 1), IRON_KNIFE(863, 230); private int id; private int amount; private StartItem(int id, int amount) { this.id = id; this.amount = amount; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getAmount() { return amount; } public void setAmount(int amount) { this.amount = amount; } } /** * Adds starting items to player's inventory. */ public void addStarter(Client client) { for (StartItem startItems : StartItem.values()) client.getItems().addItem(startItems.getId(), startItems.getAmount()); client.sendMessage("You have received starting supplies to Argon, goodluck with your adventure."); client.setStarted(true); //how its done in pi? } /** * Gets the PlayerTutorial. * [MENTION=184045]return[/MENTION] */ public static PlayerTutorial getInstance() { return instance; } } [/CODE] This could of be done in a array of course, but as you notice I have removed loads of stuff in this file. Theres basically the item giving only. The file PlayerTutorial is used for advanced player starting (I mean tutorial). Anyways, enjoy the contribrution. Edit: How to send the actual starter to new player? [code] PlayerTutorial.getInstance().addStarter(c);[/code]
  22. I am not a java developer by any means. Web developing is all me, however, my developer is on break so I am adding new items into shop/new shops. I followed this tutorial: [url]https://www.moparscape.org/smf/index.php?topic=549994.0[/url] Entered this into shops.cfg: [CODE]shop = 1 Armor_Shop 1 1 1158 250 1120 250 1106 250 1070 250 1084 205[/CODE] This inside ActionHandler under any case: [CODE]case 2538: c.getShops().openShop(1); break;[/CODE] [CODE]And, this is the error I am getting.. I do not know why. Loaded 5113 npc drops for 331 npcs in 111ms. Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at server.world.ShopHandler.loadShops(ShopHandler.java:145) at server.world.ShopHandler.<init>(ShopHandler.java:45) at server.Server.<clinit>(Server.java:76)[/CODE] 1st error shows this once I click it: [CODE]ShopSModifier[ShopID] = Integer.parseInt(token3[2]);[/CODE] (Never added this) [IMG]http://i.gyazo.com/8a9cc24a586692a196afd3dfe7fc5adb.png[/IMG] Second: [CODE]loadShops("shops.cfg");[/CODE] [IMG]http://i.gyazo.com/be5c82fb2a8afc7c043ba1478187c4d0.png[/IMG] Third: [CODE]public static ShopHandler shopHandler = new ShopHandler();[/CODE] [IMG]http://i.gyazo.com/b4e36fbbdc3126dfdba6a7029f1aa538.png[/IMG] I have not touched ANY of these files, and, before this, the server was online with no errors. What the fuck did I do wrong... :(
  23. Seen as no-one has released this, Just the shitty version of stopping ranks trading all together; Version: 1.0 Knowledge needed: none Revision: 317 project Insanity Files edited: TradeAndDuel.java What your adding: Your stopping a certain player rank from trading certain items go to tradeandduel.java and find [CODE]public boolean tradeable(int itemId) {[/CODE] under it you should see [CODE]for (int i : Config.ITEM_TRADEABLE) { if(i == itemID) { c.sendMessage("You can't trade this item."); return false; } } [/CODE] under that add [CODE]for (int i : Config.DONOR_ITEMS) { if (i == (itemID) && c.isDonator >= (1)) { c.sendMessage("You can't trade this item."); return false; } }[/CODE] now open up config.java and add this anywhere with the rest of the ints [CODE]public static final int[] DONOR_ITEMS = {####,#####,#####,######,#####,}; [/CODE] "#####" is your item id if you want to change the rank its for change "c.isdonator" to "c.playerRights" and ">=" to "=="
  24. Hi. I'm making a 317 PI pking server. I've added customs such as the spirit shields and chaotics. They're visible to me. The inventory & wearing models are all fine. But to my friend, who's coding with me, they're invisible. He is using the same client as me, so he has itemdef.java with the customs added into it. He also has the same cache as me with the imported models. So, here's the two perspectives. What I see on my screen: [url]http://prntscr.com/1dmnin[/url] What he see's on his screen at the same time: [url]http://prntscr.com/1dmnk6[/url] Keep in mind that the recoloured items show up on his screen, but not the custom added models, such as spirit shields and chaotics. And also remember that he has the most up-to-date client (with the models in it), and the cache (with the models in it). I have no idea why he can't see these items. Could anyone help me? Thank you! All help is appreciated! ;)