Jump to content

Search the Community

Showing results for tags 'good'.



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

  1. Any good pking servers for download please post links / names below thanks!
  2. old computer got to old crashed was only able to back up .class files of my server written completely from scratch, i had backups of it but those were lost too is it even possible to decompile back to the 100% original code
  3. Alright, so one thing i take pride in is how organized my commands are, and how extremely efficient they are. If you commands aren't written efficiently, you will sometimes notice a long response time. So I'm writing this tut for those that are tired of their commands being super slow and want to learn a few things. If this even helps atleast 1 person in the slightest bit, i will be very happy :) What not to do: [code] if (player.getRights() == 0) { if (cmd[0].equals("command1")) { // Do Stuff } else if (cmd[0].equals("command2")) { // Do Stuff } } else if (player.getRights() == 1) { if (cmd[0].equals("command1")) { // Do Stuff } else if (cmd[0].equals("command2")) { // Do Stuff } } [/code] If you do commands this way, you will have one gigantic file, which is not good at all. The longer a class file is, the longer it takes to parse and execute, and it's overall harder to find what you need. So what we're going to do now, is write commands using an Object Oriented([B]that right?[/B]) style, which is what Java really is. So what we need do first is start out with a basic class file which will handle which command goes where, but only if certain requirements are met. [code] package com.rs.game.player.content.custom.commands; import com.rs.game.player.Player; public final class Commands { /** * @param command * the command typed * @param console * if the command came from the console * @param clientCommand * if the command was sent from the client */ public static boolean processCommands(Player player, String command, boolean console, boolean clientCommand) { /** * stops processing if the command is empty */ if (command.length() == 0) return false; /** * Splits the command into parts, using space as the seperator */ String[] cmd = command.toLowerCase().split(" "); /** * stops processing if there are no parts * (in otherwords, a blank command) */ if (cmd.length == 0) return false; /** * Will begin parsing Admin commands, * ONLY if their rights are 2 */ if (player.getRights() == 2) if (Administrator.processCommand(player, cmd, console, clientCommand)) return true; /** * Will begin parsing Moderator commands, * ONLY if their rights are 1 */ if (player.getRights() == 1) if (Moderator.processCommand(player, cmd, console, clientCommand)) return true; /** * if none of the above are met, * then the commands for regular player are parsed instead. */ return Regular.processCommand(player, cmd, console, clientCommand); } } [/code] So that would be your entire Commands.java, nothing else. It's easy to read, and I've provided some tips to help you figure it out. Now i understand you don't have Administrator.java or Moderator.java, so I'll be providing you with one of those, with some basic information to help get started. Alright, so let's begin with making the class and a method according to what we specified above, the method was called processCommand above, so that's what we'll call it. [code] package com.rs.game.player.content.custom.commands.impl; public class Moderator { /** * @param cmd * the command, split into parts * @param console * if the command came from the console * @param clientCommand * if the command came from the client * @return * false if the end of the file is reached */ public static boolean processCommand(Player player, String[] cmd, boolean console, boolean clientCommand) { } } [/code] So now that we have a basic class with the method thats used in commands.java. As it is now, you can start writing commands, but first i would like to point out something....If you want to stop commands that are coming from the client you will need to add this just inside the method: [code] if (clientCommand) return true; [/code] so if clientCommand comes up true, then then its telling commands.java that this method returned true, thus stopping the process. Nothing will happen as long as you don't have custom commands that are sent from your client, here's an example. Let's say if i type "$*asda" into chat, the client sends a command to the server called "kill" that instantly kills everyone. You would need this command specified in the Moderator.java above like so: [code] if (clientCommand) { if (cmd[0].equals("kill") { // do stuff return true; } return true; } [/code] so technically not having this isnt really important, but if you have custom commands in your client that are sent to the server, that's how you make them work in the server. Moving on.... Here's the method with an example command already placed in it: [code] public static boolean processCommand(Player player, String[] cmd, boolean console, boolean clientCommand) { if (clientCommand) return true; if (cmd[0].equals("testcommand")) { // we do return true here so that way it stops parsing if the command typed // matches the name in quotes above. return true; } // if the command typed isn't found, we tell Commands.java that this method // has returned a false value, therfore continuing on the next statement return false; } [/code] To add more commands, you would just simply copy and paste the command just underneath the existing one. Make sure you have return true; so parsing will stop at the end of the if statements. Parameters Now here comes something a bit more interesting. For this part of the tutorial, i will be using the testcommand i showed above: [code] if (cmd[0].equals("testcommand")) { // doing stuff here return true; } [/code] First, let me explain what cmd[0] means. In commands.java the full line after you type :: is split into parts, a space being the seperator. [code]String[] cmd = command.toLowerCase().split(" ");[/code] so let say we typed ::testcommand hello there people part 0, which is the command itself, then part 1 is hello, part 2 is there, and part 3 is people. [code] cmd[0] = testcommand (the command itself) cmd[1] = hello cmd[2] = there cmd[3] = people [/code] so now we have the parts. For this example, we're going to make it print a line to the console each part of the command. [code] if (cmd[0].equals("testcommand")) { System.out.println(""+cmd[0] + " "+cmd[1] + " "+cmd[2] + " "+cmd[3] + ""); return true; } [/code] As it stands now, each part of the command is being processed as a STRING. If you need one of the parts to be an integer or a boolean, or whatever, here's how: [code] if (cmd[0].equals("testcommand")) { int integerTest = Integer.parseInt(cmd[2]); // part 2 of the command wil be processed as an integer boolean booleanTest = Boolean.parseBoolean(cmd[3]); // part 3 of the command wil be processed as an boolean System.out.println("String value (cmd[1]) is "+cmd[1]+""); System.out.println("Integer value (cmd[2]) is "+integerTest+""); System.out.println("Boolean value (cmd[3]) is "+booleanTest+""); return true; } [/code] Syntax of the command would be: ::testcommand derp 1000 false Output: [quote] String value (cmd[1]) is derp Integer value (cmd[2]) is 1000 Boolean value (cmd[3] is false [/quote] Note: If the command is shorter than the number of parts specified (which there are 4 parts) you will notice the server will throw an array out of bounds exception. To prevent this issue, we can check to see if the cmd length matches the number of parts: [code] if (cmd.length < 4) { System.out.println("Incorrect command length. Length: "+cmd.length+" (4 parts needed)"); return true; } [/code] Also, if you type commands out of order, and put an integer or boolean where a string is needed, the server will also throw a format exception as well. We can avoid all of that we can do a try/catch statement, which does exactly what it says. It will try to do what it says, and if it cant, it catches the errors and handles them how you want. For this, we'll use a simple println [code] if (cmd[0].equals("testcommand")) { try { // change the 4 according to how many parts there's going to be. // if (cmd.length < 4) { System.out.println("Incorrect command length. Length: "+cmd.length+" (4 parts needed)"); return true; } int integerTest = Integer.parseInt(cmd[2]); // part 2 of the command wil be processed as an integer boolean booleanTest = Boolean.parseBoolean(cmd[3]); // part 3 of the command wil be processed as an boolean System.out.println("String value (cmd[1]) is "+cmd[1]+""); System.out.println("Integer value (cmd[2]) is "+integerTest+""); System.out.println("Boolean value (cmd[3]) is "+booleanTest+""); } catch (Exception e) { System.out.println("Incorrect usage (::testcommand string 1000 true)"); } return true; } [/code] Reason why i say 4 above is that there's 4 parts to the command: cmd[0], cmd[1], cmd[2], and cmd[3]. Here's an example that can be used with your server: [code] if (cmd[0].equals("addexp")) { // first part (cmd[0]) try { // exactly what it says if (cmd.length < 3) { System.out.println("Incorrect command length. Length: "+cmd.length+" (3 parts needed)"); return true; } int skill = Integer.parseInt(cmd[1]); // second part (cmd[1]) double exp = Double.parseDouble(cmd[2]); // third part (cmd[2]) if (skill < 0 || skill > 24) { player.sendMessage("Skill level is either too high or too low."); return true; // since the command was found, we return true; // also keeps the rest of this command from parsing } if (exp < 0) { player.sendMessage("Skill level is either too high or too low."); return true; // since the command was found, we return true; // also keeps the rest of this command from parsing } // takes 200m, subtracts the current exp from it, and sets // the exp to the difference, so it doesnt go over. // It's not necessary, but wanted to show it anyway if ((player.getSkills().getXp(skill) + exp) > 200000000) { exp = 200000000 - player.getSkills().getXp(skill); } // if the command wasn't stopped, the below will execute player.getSkills().addXp(skill, exp); player.sendMessage("You've added "+exp+" exp to skill id "+skill+"!"); } catch (Exception e) { // here we catch the error by sending a message to the player // letting them know how to type the command, and print the error player.sendMessage("Incorrect usage (::setlevel 0 1000)"); e.printStackTrace(); } // since the command was found, we return true; return true; } [/code] I've added some notes into the command so you can see exactly what's going on. Thanks for reading! ~Fox
  4. Need help with RSPS will pay good money. Please contact my Skype so we can talk about it! Skype: Carmelo.Anthony.OSBot
  5. I need good server names!! Any ideas?
  6. Hey, i'm looking for a website sided developer to work with IPB forum board software and creating us a homepage, hiscores and such. You must have aswell a knowledge of SQL and you will need to be dedicated for Enso. Also in SQL parts I can of course do the Java part. You can contact me, by using Skype: NexonLTD If you don't know Enso, you can view it's project thread here: [url]http://www.runelocus.com/forums/showthread.php?91988-Enso-2011-Emulation-With-High-Quality-Content[/url] King Regards, Fuzen Seth
  7. Looking for a good FREE webhost to start up my RSPS again. I used webs once, had a webclient on there, but I want something that I can combine forums/webclient with. Not seperate. Any ideas? Not ready to start paying for webhost.
  8. [img]http://oi44.tinypic.com/20r7ehh.jpg[/img]
  9. Anyone knows a good server that is 317 and its files are like this? [ATTACH=CONFIG]8389[/ATTACH] not like recent servers the source files are split in src, deps, data etc ..
  10. hey im after a good Developer for my server, and possibly a co-owner. please add me on skype- archangelsxo for more information. If just wanting to be Developer you wil be paid for your time+ effort if wanting to stay you wil receive some Donations also. As co-owner/developer you wil recieve majority Donations. thankyou
  11. I am in need of a good Developer for my 718 Server. it is currently online and running smoothly. i am preferably after a Developer to stay with server and join be apart of staff, you will also get split from Donations. If not wanting to just us that is fine you wil be paid for your time+ effort. add me on skype - archangelsxo thankyou.
  12. I've been searching for a while and was wondering if anyone knows of any good spawn servers, and bye spawn i mean you can spawn pretty much everything like torva, bandos, vesta, and other good items. Not necessarily rares but mostly pking gear. If anyone knows of a server like that where you can just spawn the items and pk no bs please let me know. Thanks, Ace
  13. anyone good coder on here if so add reece.edwards1012
  14. If you know of how to fix skillcape emotes, please help me with it, this is my last problem, and I'll finsh, I'll repp++ and thank you if you're going to help me Thanks.
  15. Hey guys, if anyone needs a moderator in a server i would love to be. THANK YOU GUYS.
  16. welp, arrav has gone, i suspect one of the top ones to go next.. gf all private servers in the end tbh.
  17. I Am looking for an advanced coder with alot of free time to be the dev for a rsps if your good you could become the permemant dev for the server. This is what i need doing 718 source downloaded and setup You to host the Rsps if possible if not i will host on my cpu I would like A spawn server were you can spawn bandos etc and goliaths but overpowered items like claws ags need to be voted for (vote for op weapons) also goliaths need to be voted for and any armour after bandos bandos is not to be voted for or dh. Then donors can have primal vesta chaotic weapons etc so spawning needs to work. Pk needs to be good and the home is edge with all 3 altars and someone to change your stats like mandrith in bank or a command to change stats and skilling isnt on my mind atm once the pking and spawning is done the home area needs to be done. Then i need a webclient and maybe a downloadable client made for the server that will be put on a forum. This is the idea for my server and if anyone could do this once the server takes off they would recieve a percentage of the profit from the server. Also the website needs a donate button etc if all this was done perfectly you would recieve a higher percentage of profits and if your a good dev i will keep you as a permament dev i will host the server once everything is done it just needs handing over to me to host and as i said you will be greatly rewarded thanks you need alot of free time 4-6+hours aday thanks guys and say below if your interested as i think this is a good idea for a server only problem is i have no java coding experience and if needed i would hire a second dev to help you out and relive the strain thanks! btw the percentage would range from 30-50+ percent depending on the job you do and most medium sized servers earn from 4k-6k a month you do the maths a good investment ;d and once its set up not alot of maintaining to do so something thats will take a long time but once done not much maintaining to do and you get a big cut of the profit
  18. I Am looking for an advanced coder with alot of free time to be the dev for a rsps if your good you could become the permemant dev for the server. This is what i need doing 718 source downloaded and setup You to host the Rsps if possible if not i will host on my cpu I would like A spawn server were you can spawn bandos etc and goliaths but overpowered items like claws ags need to be voted for (vote for op weapons) also goliaths need to be voted for and any armour after bandos bandos is not to be voted for or dh. Then donors can have primal vesta chaotic weapons etc so spawning needs to work. Pk needs to be good and the home is edge with all 3 altars and someone to change your stats like mandrith in bank or a command to change stats and skilling isnt on my mind atm once the pking and spawning is done the home area needs to be done. Then i need a webclient and maybe a downloadable client made for the server that will be put on a forum. This is the idea for my server and if anyone could do this once the server takes off they would recieve a percentage of the profit from the server. Also the website needs a donate button etc if all this was done perfectly you would recieve a higher percentage of profits and if your a good dev i will keep you as a permament dev i will host the server once everything is done it just needs handing over to me to host and as i said you will be greatly rewarded thanks you need alot of free time 4-6+hours aday thanks guys and say below if your interested as i think this is a good idea for a server only problem is i have no java coding experience and if needed i would hire a second dev to help you out and relive the strain thanks!
  19. Recently I have brought my old server back to life and the problem with that is I have no developer/coder anymore. I'm just looking for anyone who can fix almost any minor problem and things like that in the coding. You will receive an in-game Developer rank and items of your choice, also if you really can get the job done quick and know what your doing without any problems you will be paid in cash. Please add me on Skype if you with you help me out (Skype name: tonytehbawz) Also if you are one of those kids that says they are going to "hax0r th1s s3rv3r" or want to "hax you with my ddossezz" please don't even bother with this.
  20. CURIOSITY KILLED THE CAT [IMG]http://cdn.cinemagr.am/cine_1/54618549.gif[/IMG]
  21. [url]Www.vpsland.com[/url] Im going to get a windows 32 bit server, with 0.5GHZ processor, 512MB of ram, 10Gb of storage, and 125GB bandwith, would this be a good start to release my BETA RSPS? Since its beta i dont plan on having many players online, maybe 10. PLEASE leave feedback
  22. [img]http://screensnapr.com/e/1o7f2q.png[/img] Yeah, sucks that we lost, but god damn, was this a good game.
  23. Need a good working source 719+
×