Jump to content

Search the Community

Showing results for tags 'add'.

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

Product Groups

  • RuneLocus Pro

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Found 278 results

  1. rizalgar

    Add Objects 830+

    As title says, can't seem to figure it out. I've checked ObjectHandler, Manager, UnpackedObjects and all that. I checked to see if there was a PackedObjects file, but was unable to locate one. If anyone could shoot me in the right direction here, that'd be great. Seems a lot easier to do this in Pre-EoC servers lol
  2. Whenever you right click and try to add friend or add to ignore, it doesnt work? And there is a color code next to report abuse but that works fine? Any ideas on where this code would be add? and why add friend and ignore dont work? and where i can find the color code to fix it? I searched everywhere, and i couldnt find it.
  3. 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?
  4. IF YOU USED THIS PLEASE COMMENT OR SAY THANK YOU ATLEAST =p I will make this plain and simple. As simple as i can =p i wrote this up in 30 minutes post errors or constructive criticism please 1.open client.java 2.search [code]cr1[/code] 3.copy the last line and replace the number with 4 and whatever number changes, change it respectively. 4.next after you have finished searching for that search for[code] modicon[/code] next i will explain a little something before we go to the next step... byte0 = 1 means that when you set the player rights to 1 it will load that crown 5.search "modicon" and replace what looks like:: [code]if(byte0 == 1) { modIcons[0].drawBackground(xPos + 1, yPos - 12); xPos += 14; [/code] make a new line that says:: [code] } else if(byte0 == 4) { "what ever you will name your crown".drawSprite(xPos + 1, yPos - 12); xPos += 14; [/code] for example for donator icon i named my icon donatorIcon so i would put [code] } else if(byte0 == 4) { donatorIcon.drawSprite(xPos + 1, yPos - 12); xPos += 14; [/code] keep searching modicons till you have added "the name of your crown" and replaced drawBackground with drawSprite. now after you are done with that double checked you have replaced all of them correctly, compile and make sure you have no errors, if you do come up with errors redo this until it works. now for a pretty simple part. still in client.java search [code]declare custom sprites[/code]and type:: private sprite "the name of your sprite" mine looks like [code]private sprite donatorIcon;[/code] then search [code]custom sprite unpacking[/code] should be above it. and then type:: [code] donatorIcon = new Sprite("donatorIcon"); [/code] now compile make sure you dont have errors. now what to do next is if you have a sprites folder go into it and add whatever sprite you want for your icon to the folder and make sure the name is:: [code]donatorIcon.PNG[/code] "make sure it is a .PNG file or it WILL NOT LOAD!" also make sure it is the same name as u replaced modicons[3] with. if you dont have a sprite folder thats not in the cache then do this. cache folder>sprites folder>add donatorIcon.PNG save compile run and for whatever you set your rights set them to that setting and talk. should be done =] post any errors
  5. Im very close to finishing my rsps all i need help with is making it public please someone add my skype "deathreats" Paying paypal to help!
  6. Im very close to finishing my rsps all i need help with is making it public please someone add my skype "deathreats" Paying paypal to help!
  7. Can someone please help me add 508 maps to my pi server? The links for the maps are broken for the tutorials i've found so far. Thanks.
  8. Can someone maybe link me to a proper tutorial on how to add 474 maps or at least god wars to a 317 PI server please?
  9. Classes Modified: ActionHandler.java PlayerAssistant.java ClickItem.java Step1: Find all the other cases and put this under any other case located in [B][I][U]ActionHandler.java[/U][/I][/B] [CODE] case 405: if (c.getItems().freeSlots() >= 1) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); } break;[/CODE] Contents Of This Code: Case 405: = Item ID Of Casket if (c.getItems().freeSlots() >= 1) { = Making Sure Players Have 1 Space Free To Open A Casket c.getItems().deleteItem(405, 1); = Deletes The Item From The Inventory So Players Don't Have Unlimited Caskets c.getItems().addItem(c.getPA().randomCasket(), 1); = Basically Tells PlayerAssistant To Generate A Random Item In Which You'll Be Able To Edit Soon. [B][I][U]Next Open PlayerAssistant.java[/U][/I][/B] Now for those who have this it shouldn't be hard at all you should see static ints such as for example: [CODE] public static int Barrows[] = {4708,[/code] And so on. This is where you can add the random items you receive from the casket. So along with the other static int's put the following: [CODE]public static int Casket[] = {4151,14484,11694,11724};[/CODE] 4151 = Whip which is a random drop from the casket now you may change this and make the list longer by doing: 14484,11694, And so on. Once you have the drops you wish to have: Put this public int in: [CODE] public int randomCasket() { return Casket[(int)(Math.random()*Casket.length)]; }[/CODE] This makes sure the item you receive is also random Were Done With PlayerAssistant.java Open [B][I][U]ClickItem.java[/U][/I][/B] Basically here find all the other items like for example: [CODE] if(itemId == 8012) { c.getItems().deleteItem(8012,c.getItems().getItemSlot(8012),1); c.getPA().teleTabTeleport(2546, 3112, 0, "teleTab"); }[/CODE] Under these items put in the following: [CODE] if(itemId == 405) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); c.sendMessage("You Received A Random Item!"); }[/code] 405 = Item ID Which Is The Casket c.getItems().addItem(c.getPA().randomCasket(), 1); = Is The Random Item You Receive From The Casket Why add this in ClickItem? Because without it you can't open the Casket. Hope you guys enjoyed this fun little snippet if you want thanks and rep and w/e <3
  10. This is my first tutorial and I hadn't seen one for a restart command on Runelocus so I decided to help people out! Don't be mean because this is my first tutorial! This is a tutorial on how to add a restart command to your server so you do not have to close out the server and log everybody out. With this command your players will be temporarily disconnected(roughly 3 seconds) and then brought back into the game. Difficulty: 1/10 Knowledge: Copy and paste. First open up commands.java and under this code: [CODE]import server.Config; import server.Connection; import server.Server; import server.model.players.Client; import server.model.players.PacketType; import server.model.players.PlayerHandler; import server.util.Misc;[/CODE] Add this: [CODE]import server.model.players.PlayerSave; import server.model.players.Player; [/CODE] Now still in commands.java add this code under your other player commands: [CODE]if(playerCommand.startsWith("restart") && c.playerName.equalsIgnoreCase("YOURNAMEHERE")) { for(Player p : PlayerHandler.players) { if(p == null) continue; PlayerSave.saveGame((Client)p); } System.exit(0); } [/CODE] Make sure to add your own name where it says "YOURNAMEHERE". Now save and close out of commands.java then COMPILE. Now go to your Run.bat or Runserver.bat file.(what you use to run your server) right click on Run.bat and click edit. Now, where it says something like "java -Xmx1000m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server", it may not be exactly like this, but copy that and save it somewhere you will need it. This is your personal server's run stuff. Now replace everything in your Run.bat or Runserver.bat with this code: [CODE]@echo off title Project Insanity :run CLS YOUR SERVERS RUN STUFF HERE.(copy and paste that "java -Xmx1000m -cp....etc, etc." stuff that you saved earlier into here. goto run pause [/CODE] So your run.bat should look like this now [CODE]@echo off title Project Insanity :run CLS java -Xmx1000m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server goto run pause [/CODE] Post any errors that you get(there shouldn't be any if you do it all correctly).
  11. title pretty much sums it up. Help is very much appreciated.
  12. Hey guys, I'm using Swe prime source and client But i have a few problems with adding some custom items I added the int's on Customitems.java (itemDef). But they are no place on the cache to add the models .Dat files Can anyone help me please. Thanks.
  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. I was wondering how to add clan bank to my 718+ is there a certain way to do it so it gives you the option when you click the banker "Player Bank" "Clan Bank" If anyone could help post on here, pm me, or skype me tim.tim4201 thank you!
  15. I know this a dumb question, I'm new to all this. (I'm using project-exile source). It doesn't use "isSkilling" and i'm looking at snippets for skills such as farming and cooking and they both use the isSkilling, how do I add this or does Project-Exile use a different code? I'm not trying to open the server or anything maybe in the future when I have learned more coding and have really made the source my 'own' I might. Any advice or help would be great :) just trying to learn some coding stuff for RS private servers. ^ I found it SORRY, I feel so stupid :P.
  16. Hey, In this tutorial we're going to be: [LIST] [*]Adding PK Points (so they save) [*]Making it so when a player kills someone they obtain PK Points [*]A few examples on how you can add more point systems to your server. [/LIST] Alright, so first off we're going to make PKP Save on the characters file, so what we're going to want to do is go into our servers folder and edit the PlayerSave.java file (Server.Model.Players). Now we're going to press CTRL + F to search the document for this line: [CODE]} else if (token.equals("magic-book")) {[/CODE] underneath [CODE]} else if (token.equals("magic-book")) { [COLOR="#FF0000"]p.playerMagicBook = Integer.parseInt(token2);[/COLOR][/CODE] We're going to add: [CODE]} else if (token.equals("pk-points")) { p.pkPoints= Integer.parseInt(token2);[/CODE] Your code should now look like: [CODE]} else if (token.equals("magic-book")) { p.playerMagicBook = Integer.parseInt(token2); } else if (token.equals("pk-points")) { p.pkPoints= Integer.parseInt(token2);[/CODE] What we've just added is the loading for PK Points, so PKPoints is our integer that's automatically set to 0 when we create a new account (as you will see on step 3), what this does is makes the server know that PkPoints loads as PK-points. Step 2) in the same file search for [CODE]characterfile.write("teleblock-length = ", 0, 19);[/CODE] the same way we did as before (CTRL+F), you should see: [CODE]characterfile.write("teleblock-length = ", 0, 19); characterfile.write(Integer.toString(tbTime), 0, Integer.toString(tbTime).length()); characterfile.newLine();[/CODE] Underneath [CODE][COLOR="#FF0000"]characterfile.newLine();[/COLOR][/CODE] we're going to add: [CODE]characterfile.write("pk-points = ", 0, 12); characterfile.write(Integer.toString(p.pkPoints), 0, Integer.toString(p.pkPoints).length()); characterfile.newLine();[/CODE] Your code should now look like: [CODE]characterfile.write("teleblock-length = ", 0, 19); characterfile.write(Integer.toString(tbTime), 0, Integer.toString(tbTime).length()); characterfile.newLine(); characterfile.write("pk-points = ", 0, 12); characterfile.write(Integer.toString(p.PkPoints), 0, Integer.toString(p.PkPoints).length()); characterfile.newLine();[/CODE] What we've just added is saving our Pk Points, what [COLOR="#FF0000"]characterfile.newLine();[/COLOR] what this does is moves the save down to the next line, without this our teleblock timer (example was set to 60 for one second) and we had 40 PK Points would look like this 6040 (that's in seconds). [CODE]characterfile.write("pk-points = ", 0, [COLOR="#FF0000"]12[/COLOR]);[/CODE] the 12 is essential if it's anymore or any less it will crash your server as this tells the server which character slot it saves it in, [CODE]pk-points = [/CODE] is 12 characters in lenght (including the - and spaces). Now, we're going to save this by either doing it normally or pressing CTRL + S to save the file (I'm telling you this incase you're unaware, this also improves efficiency). We're going to open Player.java located in the same area as PlayerSave.java. Press CTRL+F and look for [CODE]pcPoints,[/CODE] after the comma add [CODE] pkPoints,[/CODE] our code should now look like this: [CODE]pcPoints, pkPoints,[/CODE], press CTRL+F now we're all done for PK Points (saving and loading) Adding PkP when killing an player, open PlayerAssistant.java and search for: [CODE]o.sendMessage("You have defeated " + c.playerName + "!");[/CODE] Under that code add: [CODE]o.PkPoints++;[/CODE] Our code should now look like: [CODE]o.sendMessage("You have defeated " + c.playerName + "!"); o.PkPoints++;[/CODE] Save and Compile, you've sucessfully added basic PK Points, I will write a tutorial in the future on how to prevent PKP Boosting.
  17. Does anyone knows how to add the raptor? Thanks for youre answer, would be appriciated.
  18. If i try to switch my spellbook to lunars, my server will crash. Do anyone know how i add lunar spellbook or fix this?
  19. I've tried several methods I thought would work, similar to the slayer method and using specific npc cases while giving XP, nothing has worked. Anyone able to help out here?
  20. How do I enter more ranks to it? I currently can't use it as an admin/owner case WARMING_FLAME: if (!player.isExtremeDonator()) { player.getPackets().sendGameMessage("You need to be Extreme donator to use this pet."); return false; }
  21. After i Extracted .Dat files to RAW folder, It gives me this error, Can anyone help please? [IMG]http://i.imgur.com/oXmKcKt.png[/IMG]
  22. [center]Want to know how to add your server/client on Eclipse? [url]http://www.runelocus.com/forums/showthread.php?99805-How-to-JAR-a-RuneScape-Client-%28Using-ECLIPSE%29&p=779200[/url] 1. Open Up Eclipse. Click File > New > Java Project [IMG]http://i62.tinypic.com/svtg6g.png[/IMG] 2. Browse for client/source folder [IMG]http://i57.tinypic.com/hsqgzq.png[/IMG] 3. Click Finish 4. Go to run tab, click on Run [IMG]http://i57.tinypic.com/2lvbz42.png[/IMG] 5. Click onto Java Application [img]http://i55.tinypic.com/117uydk.png[/img] 6. Select the class that will run the server. (Usually it's server) [mg]http://i54.tinypic.com/24q0kyq.png[/img] Press Okay after. Than you are done, your source/client is now added on Eclipse. Eclipse compiles automatically, you edit your wanted file and than save. Your changes are saved & you can rerun the server for the changes to be saved. You can disable auto compiling on the tab, Project > Build Automatically, and you can compile through Project > Build Project or Build All.[/center]
  23. Hello everybody, I am going to teach you how to actually add custom items. These items are not recolors, and are actual NEW items. Before you attempt this, please be sure you have patience, and common sense. Difficulty: 1/10, depending on skill and patience Purpose: To teach you how to add brand new items Assumed Knowledge: Copy & Paste, Basic Java, how to use a model viewer, common sense -.- Classes Modified: class8.java, possibly models folder Step 1 - Getting a model viewer To add custom items to your client, this requires patience, some basic java knowledge, and a model viewer. Question: What is a model viewer and what does it do? Answer: A model viewer is a program that can view 3-Dimensional models built by JAGeX, and enable you to see what they look like and what the ID's are. Without a Model Viewer, you cannot add custom items. Now that you know what a model viewer is and does, download RSMV(RuneScape Model Viewer) by clicking: Here, Here, or Here. How to use RSMV - Easy as 1, 2, 3! 1) Download it, extract it, and click compile. Compile it and close. 2) Hit run, and it will grab models. Just let it run as long as you want. 3) Once you've let it run, open RSMV and then look through the models. Step 2 - Model awareness Now that you have RSMV, know how to get models, know how to look through them, and understand what models are, you are ready to start adding the item to your client. NOTE: Not all models are view-able. Some may say invalid format, that is normal. The first thing you should know is the Model ID. Now, usually, there are 1-3 models per item, depending on what item you are adding. Example - Dragon Chainbody: 3 models: male wearing, female wearing, and drop/inventory model You want to know the ID's of all of these, so it appear correctly in all 3 places. Now is the "tricky" part. If the model is 10000 or lower, you can merely make the class8 grab that model from the cache. If it is greater, it usually requires you to GZip the model. If you know how to GZip, and what it is, skip to step 4. Step 3 - G-Zipping a model Question - What is Gzip, and what does it do? Answer - Gzip is a special program that allows you to zip a .dat file and add it into your client as a format that the client can read. It is basically WinZip, or WinRar, just a different format. Now that you know what Gzip is and what it does, you are ready to download it. Download it by clicking: Here, Here, or Here Now that you've downloaded Gzip, you need to know how to use it. There is one simple way to use it: 1) Extract the downloaded file 2) Open the extracted folder 3) Copy the gzip icon into a new folder named "GZip Models" 4) Paste the file you need to zip into the folder, and drag it onto the icon, and wait until it zips it Okay, now you can go to step 4. Step 4 - Adding the item into your client Now to add the item into your client. Here is an example of an item, and how to add it: Item being added: Princess Crown Models: 6962 - Male/Female wearing, 6944 - drop/inventory model (zoom has to be figured out) class8 for the item: if(i == #####){ //item id class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear"; The rotations/zooms aren't very important unless you want the item to appear correctly in the inventory. But other than that, this is a basic layout for a helmet. Now that you know how to add the models correctly, then you can start adding custom items! Here is class8.java for platebodies, platelegs, and kiteshields: [B]Platebody[/B] if(i == ####){ //item id class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear";class8.anInt174 = 1;//inventory/drop modelclass8.anInt181 = 1180;//dont changeclass8.anInt190 = 452;//dont changeclass8.anInt198 = 0;//dont changeclass8.anInt204 = 0;//dont changeclass8.anInt169 = -1;//dont changeclass8.anInt194 = -1;//dont changeclass8.anInt165 = 1;//male wearingclass8.anInt200 = 1;//female wearingclass8.anInt175 = -1;//dont changeclass8.anInt197 = -1;//dont change class8.aString170 = "Item Name";//item name class8.aByteArray178 = "Item info".getBytes();//examine info } [B]Platelegs[/B] if(i == ####){ //item id class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear";class8.anInt174 = 1;//inventory/drop modelclass8.anInt181 = 1740;//dont changeclass8.anInt190 = 444;//dont changeclass8.anInt198 = 0;//dont changeclass8.anInt204 = 0;//dont changeclass8.anInt169 = 0;//dont changeclass8.anInt194 = -8;//dont changeclass8.anInt165 = 1;//male wearingclass8.anInt200 = 1;//female wearingclass8.anInt175 = -1;//dont changeclass8.anInt197 = -1;//dont change class8.aString170 = "Item Name";//item name class8.aByteArray178 = "Item info".getBytes();//examine info } [B]Kiteshield[/B] if(i == ####){ //item id class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear";class8.anInt174 = 1;//inventory/drop modelclass8.anInt181 = 1560;//dont changeclass8.anInt190 = 344;//dont changeclass8.anInt198 = 1104;//dont changeclass8.anInt204 = 0;//dont changeclass8.anInt169 = -6;//dont changeclass8.anInt194 = -14;//dont changeclass8.anInt165 = 1;//male wearingclass8.anInt200 = 1;//female wearingclass8.anInt175 = -1;//dont changeclass8.anInt197 = -1;//dont change class8.aString170 = "Item Name";//item name class8.aByteArray178 = "Item info".getBytes();//examine info } Enjoy !
  24. How to add Join date ? Example: [IMG]http://puu.sh/92eHv.png[/IMG]