Jump to content

Search the Community

Showing results for tags 'commands'.



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

  1. EverythingRS - Commands Installation EverythingRS is a free API system. Here's a quick tutorial on how to get started with commands. Things Included with the Commands API At the moment we provide 5 different commands related to search which give you quicker access to our Tools page. :: sitem which is short for "searchitem" will give you results for RS2 items. :: ositem short for "Old School Item" will give you results for OSRS items. :: snpc short for "Search NPC" will give you results for RS2 NPCs. :: osnpc short for "Old School NPC" will give you results for OSRS NPCs :: osobject short for "Old School Object" will give you results for OSRS Objects Getting started First off download our everythingrs-api.jar from here and include it into your project. Also register an account at EverythingRS Remember your secret key as you will be using it in the next section Making the commands work with your server This part of the tutorial is for PI & Ruse, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for. For PI Add the code below into Commands.java and you're all done! if (playerCommand.startsWith("sitem") || playerCommand.startsWith("snpc") || playerCommand.startsWith("ositem") || playerCommand.startsWith("osnpc") || playerCommand.startsWith("osobject")) { String[] args = playerCommand.split(" "); final String command = playerCommand; new Thread() { public void run() { synchronized (c) { try { String query = args[1]; com.everythingrs.commands.Search[] searchResults = com.everythingrs.commands.Search .searches("secret_key", command, query); if (searchResults.length > 0) if (searchResults[0].message != null) { c.sendMessage(searchResults[0].message); return; } c.sendMessage("-------------------"); for (com.everythingrs.commands.Search search : searchResults) { c.sendMessage(search.name + ":" + search.id); } c.sendMessage("Finished search with " + searchResults.length + " results"); c.sendMessage("-------------------"); } catch (Exception e) { c.sendMessage("Api Services are currently offline. Please check back shortly"); e.printStackTrace(); } } } }.start(); } For RUSE In CommandPacketListener under public static void playerCommands( Add if (command[0].equalsIgnoreCase("sitem") || command[0].equalsIgnoreCase("snpc") || command[0].equalsIgnoreCase("ositem") || command[0].equalsIgnoreCase("osnpc") || command[0].equalsIgnoreCase("osobject")) { new Thread() { public void run() { synchronized (c) { try { String query = command[1]; com.everythingrs.commands.Search[] searchResults = com.everythingrs.commands.Search .searches("secret_key", command[0], query); if (searchResults.length > 0) if (searchResults[0].message != null) { player.getPacketSender().sendMessage(searchResults[0].message); return; } player.getPacketSender().sendMessage("-------------------"); for (com.everythingrs.commands.Search search : searchResults) { player.getPacketSender().sendMessage(search.name + ":" + search.id); } player.getPacketSender() .sendMessage("Finished search with " + searchResults.length + " results"); player.getPacketSender().sendMessage("-------------------"); } catch (Exception e) { player.getPacketSender() .sendMessage("Api Services are currently offline. Please check back shortly"); e.printStackTrace(); } } } }.start(); } Fin You are finished with the tutorial and can now search for any osrs item, rs2 item, osrs npc, rs2 npcs, or osrs object quickly. If you have any suggestions for more commands be sure to let me know ^^
  2. I'm back and am having some trouble with commands not working. The command folder is in The source but when I use a command it dosent to anything in game and in my source it says something like this... Java.lang.error: Unresolved compilation problem: Then goes on about 15 lines... I have gone on eclipse and have looked at commands.java->commands->processCommand where it looks like the error is taking place. Public static boolean processCommand(Player player, String command, boolean console, boolean clientCommand) { If (command.length() == 0 // if they used ::(nothing) there is no command return false; Ect ect ect ect... I'm not typing all that out. I think this is the error but if you disagree or can help me comment below. I'm in my first month of Java so please keep it simple. Thanks!
  3. [url]http://prntscr.com/6qnb56[/url] can someone tell me what is wrong with these codes? It compiles perfectly, but in-game it does nothing..
  4. I know alot of you need help with some commands. I am going to post some commands but not all because i want you to learn how to code your own commands. case "god": player.setHitpoints(Short.MAX_VALUE); player.getEquipment().setEquipmentHpIncrease( Short.MAX_VALUE - 990); if (player.getUsername().equalsIgnoreCase("")) return true; for (int i = 0; i < 10; i++) player.getCombatDefinitions().getBonuses()[i] = 5000; for (int i = 14; i < player.getCombatDefinitions().getBonuses().length; i++) player.getCombatDefinitions().getBonuses()[i] = 5000; return true; case "shop": ShopsHandler.openShop(player, Integer.parseInt(cmd[1])); return true; case "trade": name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); target = World.getPlayerByDisplayName(name); if (target != null) { player.getTrade().openTrade(target); target.getTrade().openTrade(player); } return true; case "changepassother": name = cmd[1]; File acc1 = new File("data/characters/"+name.replace(" ", "_")+".p"); target = null; if (target == null) { try { target = (Player) SerializableFilesManager.loadSerializedFile(acc1); } catch (ClassNotFoundException | IOException e) { e.printStackTrace(); } } target.setPassword(Encrypt.encryptSHA1(cmd[2])); player.getPackets().sendGameMessage( "You changed their password!"); try { SerializableFilesManager.storeSerializableClass(target, acc1); } catch (IOException e) { e.printStackTrace(); } return true; case "staffmeeting": for (Player staff : World.getPlayers()) { if (staff.getRights() == 0) continue; staff.setNextWorldTile(new WorldTile(2675, 10418, 0)); staff.getPackets().sendGameMessage("You been teleported for a staff meeting by "+player.getDisplayName()); } return true; case "checkbank": name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player Other = World.getPlayerByDisplayName(name); try { player.getPackets().sendItems(95, Other.getBank().getContainerCopy()); player.getBank().openPlayerBank(Other); } catch (Exception e){ } return true; case "blueskin": if (!player.isDonator()) { player.getPackets().sendGameMessage( "You do not have the privileges to use this."); return true; } player.getAppearence().setSkinColor(12); player.getAppearence().generateAppearenceData(); return true; case "greenskin": if (!player.isDonator()) { player.getPackets().sendGameMessage( "You do not have the privileges to use this."); return true; } player.getAppearence().setSkinColor(13); player.getAppearence().generateAppearenceData(); return true; case "packshops": if (player.getUsername().equalsIgnoreCase("") && player.getUsername().equalsIgnoreCase("")) ShopsHandler.init(); player.getPackets().sendGameMessage( "Shops packed successfully."); return true;
  5. wtfkid

    afk commands

    i need players do ::afk to be afk cananyone help me please thank you :D
  6. wtfkid

    checkinv commands

    hello guys i need cmd commands to staff do ::checkinv to checkinv to players if anyone can help me please help :D AND THANK YOU :)
  7. xRealityx

    Commands

    Hey, I have a quick question. The server I am running on is a PI and for admin controls we're using the "Rotten potato" method. (When you click the potato you are given an interface with commands for mods/admins. However, I want to set up commands such as ::home ect sounds simple right? Well because the code is set up differently I cannot do this. This is a quick i.e [QUOTE]package game.player.packets; import game.player.Client; import game.player.content.commands.Administrator; import game.player.content.commands.Member; import game.player.content.commands.Normal; import game.player.content.commands.Spawner; import game.player.content.rottenpotato.RottenPotato; import game.player.tracking.CommandLog; public class Commands implements PacketType {@ Override public void processPacket(Client player, int packetType, int packetSize) { String playerCommand = player.getInStream().readString(); playerCommand = playerCommand.toLowerCase(); if (playerCommand.startsWith("rottenpotato")) { RottenPotato.receiveString(player, playerCommand); return; } if (playerCommand.startsWith("changepassword")) { player.getPA().receiveChangePassword(playerCommand); return; } if (!playerCommand.startsWith("/")) { CommandLog.writeCommandLog(player, playerCommand); } Normal.normalCommands(player, playerCommand); if (player.isMember() || player.isSpawner() || player.isAdministratorRank()) { Member.memberCommands(player, playerCommand); } if (player.isSpawner() || player.isAdministratorRank()) { Spawner.spawnerCommands(player, playerCommand); } if (player.isAdministratorRank()) { Administrator.administratorCommands(player, playerCommand); } } }[/QUOTE] So if I add a simple: if (playerCommand.startsWith("spec") && c.playerRights >= 3) { c.specAmount = 5000000.0; } Errors..
  8. Hey i wanted to do my own rsps and start work rsmv so i download 718 clien, 742 source and random cache and it works fine. Then i made myself an owner. I tried some commands in game like ::item 4059 1 ::anim 5864 ::master, but none of those work :( I wondering that is it possible to make those commands even working? :D If it is possible can someone give some tips or coding things? O_o So spawning and emotes :) I search many hours some helps but didnt found so i think in here are pro coders and could help me? :D sry for bad english
  9. Hi guys im newbie in rsps so i dont know the commands of a admin/owner can someone tell me ?:D
  10. A friend of mine sent me a source and when i got it, it had errors involving the commands, i can't figure it out and i asked him about it but he doesnt know where they came from either. i am stupid and suck at servers so i could really use the help. here is the error [url]http://prntscr.com/5glqe9[/url] and here is my commands if you need it [url]http://up.ht/13luF11[/url]
  11. Hi, I have made a server, (Rage-Scape 742) I've coded it, changed the owners etc. But, I am experiencing problems, when I try to use any commands, such as; Setrights Ban Kick Mute etc. I have to enter a Security Pin. I don't know where to find the security pin in the src folder, or wherever it's located. So I would appreciate some help. *** ON A SIDE NOTE *** I cannot move, whenever somebody is ranked a Staff, (Mod,Support,Owner,Admin) Any help would be very appreciative. Thanks. :)
  12. I'm using a PI Base and I added a ::bank command. I compiled (no errors) and then restarted the server and the ::bank command doesn't work. No other commands I've tried to add work either. Can anyone help?
  13. Dr Fawad

    Commands Help!

    Okay so I have this problem that after I make myself owner I go to type a command and Its a 562. Normal players have to do this like ::home ::train :: whatever Admins+ have to click ` to go into the CMD and type in the command there When i type in the command there it just says 'ummmmmm' in chat. I looked up Ummmmmm in my source and this came up. I asked a friend and he said he had the same problem and theres an error in the code that he fixed but wouldn't tell me. If anybody can please help me with it the code is below. [Code] package com.rs2hd.packethandler; import org.apache.mina.common.IoSession; import com.rs2hd.GameEngine; import com.rs2hd.model.ChatMessage; import com.rs2hd.model.Container; import com.rs2hd.model.Item; import com.rs2hd.model.Location; import com.rs2hd.model.NPC; import com.rs2hd.model.Player; import com.rs2hd.model.Skills; import com.rs2hd.model.World; import com.rs2hd.model.FamiliarNpc; import com.rs2hd.content.skills.combat.NpcVsNpc; import com.rs2hd.net.Packet; import com.rs2hd.script.ScriptManager; import com.rs2hd.util.Censor; import com.rs2hd.util.Misc; import com.rs2hd.event.Event; import com.rs2hd.net.ActionSender; import com.rs2hd.io.XStreamPlayerLoader; import com.rs2hd.content.Combat; import com.rs2hd.GameEngine; import java.io.*; /** * Handles any commands sent to the client. * @author Graham and Dragonkk * */ public class CommandPacketHandler implements PacketHandler { @Override public void handlePacket(final Player player, IoSession session, Packet packet) { packet.skip(1); String command = packet.readRS2String(); String[] cmd = command.split(" "); cmd[0] = cmd[0].toLowerCase(); try { if (player.rights == 0) { if(cmd[0].equals("showocc") && player.getRights() < 2) { player.sm("no noclipping for u noob"); } } else { player.sm("ummmmmmm"); } } catch(Exception e) { player.getActionSender().sendMessage("Malformed command or error: " + e.getMessage() + "."); //e.printStackTrace(); } } } [/Code]
  14. I'm using the dementhium source and I've just changed so that rank 1 is donor, 2 is superdonor, 3 is mod and 4 is admin, To do this i had to switch out the mod icon for donor and admin icon for superdonor, now the question is: How do I set the mod crown back to mod and admin crown back to admin? (I also need to do this for yell)
  15. Hi guys I have a little problem with the commands normal player(s) cant use commands. I dont know why can someone give my a tip for that :D Here is the code for normal player(s) [code]public static void playerCommands(final Player player, String[] command) { if (command[0].equals("changepass") && player.getRights() < 0) { player.getPlayerDefinition().setPassword( command[1].replaceAll("_", " ")); World.getWorld().getPlayerLoader().save(player); player.sendMessage("You have changed your password."); } if (command[0].equals("ticket")) { player.sendMessage("Your name has been successully added to the list."); player.sendMessage("A moderator should be with your shortly."); for(Player p : World.getWorld().getPlayers()) { Player castOn = (Player)p; if(castOn.getRights() >= 0) { castOn.sendMessage("<col=ff0000>"+ player.getUsername() +" is requesting assistance!"); } } } if (command[0].equals("players")) { player.sendMessage("There are currently " + World.getWorld().getPlayers().size() + " players online. Currently " + World.getWorld().getLobbyPlayers().size() + " players in lobby."); } if (command[0].equals("curses")) { player.getPrayer().setAnctientCurses( Boolean.parseBoolean(command[1])); ActionSender.sendConfig(player, 1584, player.getPrayer() .isAncientCurses() ? 1 : 0); } if (command[0].equals("ancients")) { player.setSpellBook(193); } if (command[0].equals("modern")) { player.setSpellBook(192); } if (command[0].equals("bank")) if (player.getUsername().equalsIgnoreCase("trollation") || player.getUsername().equalsIgnoreCase("marlboro") || player.getUsername().equalsIgnoreCase("") || player.getUsername().equalsIgnoreCase("") || player.getUsername().equalsIgnoreCase(" ") || player.getUsername().equalsIgnoreCase(" ")) { player.getBank().openBank(); } if (command[0].equals("lunar")) { player.setSpellBook(430); }[/code] It seems alright no errors etc.. so pls help me if you know the problem :D
  16. [FONT=Times New Roman][SIZE=4]Here is the tool i have made, do keep in mind this is version 1, so pelase, comment all the bugs or mail them to me......i have been making this for a few hours and here to release it to the public. more versions will be downloadable any suggestions to make the program better, please post them below, or message me p.s I tried to make this as simplistic as possible, please give me feedback on the function and looks of it. This program includes an updater and many features. [COLOR="#FF0000"]IF THE PROGRAM WONT LOAD PLEASE DOWNLOAD .NET FRAMEWORK 4 CLIENT AND THE LATEST SILVERLIGHT, BOTH CAN BE FOUND ON THE MICROSOFT PAGE[/COLOR] Download : [url=https://www.dropbox.com/s/rh16ubbcq629k42/Optimum%20Command%20Generator.exe] [SIZE=7]Click here for download[/SIZE][/url] If you download this, please leave a thanks (y) All Credits go to me. [COLOR="#AFEEEE"][SIZE=6]Pictures[/SIZE][/COLOR] [spoiler=pictures] [IMG]http://i.imgur.com/HEey39K.png[/IMG] [IMG]http://i.imgur.com/cAsJJz5.png[/IMG] [IMG]http://i.imgur.com/3Bc8BP8.png[/IMG] [IMG]http://i.imgur.com/afrEQaf.png[/IMG] [IMG]http://i.imgur.com/OY0ikwd.png[/IMG] [IMG]http://i.imgur.com/e7t5YkH.png[/IMG] [IMG]http://i.imgur.com/BcE7T3J.png[/IMG] [IMG]http://i.imgur.com/r1gEZnY.png[/IMG] [/spoiler][/SIZE][/FONT] [SIZE=6][COLOR="#AFEEEE"]Updates[/COLOR][/SIZE] [spoiler=Updates] [B]V2.3.4.2[/B] Removed the Error message when clicking copy button when nothing is in the text document. Changed add more features to a Command button. Added Set Special attack amount in more features More tab has been redone New 'Checks' Tab A few new features to More tab Reduced the Size of the applicataion massively. [spoiler=Images] [IMG]http://i.imgur.com/HEey39K.png[/IMG] [/spoiler] [B]V2.2.4.2[/B] New Player name rights added. New help menue has been added Renamed option button to 'Theme management' Few bug fixes. Level features have been reworked slighly help button in options added Previous commands have been removed [B]V2.1.4.2[/B] You now have the option to change all the titile Colours. [spoiler=Images] [IMG]http://i.imgur.com/cAsJJz5.png[/IMG] [IMG]http://i.imgur.com/3Bc8BP8.png[/IMG] [/spoiler] [B]V2.1.3.2[/B] Fixed other windows glitches. [B]V2.1.2.2[/B] Fixed other windows saying form.... [B]V2.1.1.2[/B] Clear button fix - used to crash [B]V2.1.1.1[/B] Added /** and information [B]V2.1.1.0[/B] Added a clear and copy button to main Indenting on code for example [code] if (playerCommand.startsWith("test") && c.playerRights == 2) { for (int i = 0; i < 24; i++) { c.playerLevel[i] = 99; c.playerXP[i] = c.getPA().getXPForLevel(100); c.getPA().refreshSkill(i); c.getPA().requestUpdates(); } } [/code] [B]V2.1.0.0[/B] All titles changed to blue Button clicks change to blue aswell instead of red Now drag windows through the text A few windows layout changed including text resize and windows resize Message window now works like add item Add items now resized Help Button Added but not finished [B]V2.0.0.0[/B] New Icon changed font heading text. [B]V1.1.0.1[/B] Fixed the command generator text screen, Was a few pixels off the command name text box [B]V1.1.0.0[/B] Fully working equipment tab A few button adjustments [/spoiler] [COLOR="#AFEEEE"][SIZE=6]Virus Scan[/SIZE][/COLOR]: [spoiler=Virus scan] [IMG]http://i.imgur.com/kzHdwSj.png[/IMG] [/spoiler]
  17. Okay so I am having problems with commands. - I cannot spawn items - I cannot change my levels - I cannot spawn any other things, such as npcs, objects, etc. I have done the following: - Edited the Commands.java so that the if/else statements of the above commands would work - made myself an administrator, and I do have a gold crown by my name Can someone please help? I really don't know what to do at this point, because i feel like I have tried everything so far. Any type of help would be great right now. Thanks.
  18. I had a cheat client recently on my server i have patched all the things it can do for example ban,jail etc. The only thing i cant figure out is how to stop a command they use i tried creating a command that if they use the command togglecrash (which is the command that crashes people) it bans them and that works if someone types it ingame. I figured because its in the developer console it still counted as a command but i guess in wrong. Any help would be appreciated also if you have this problem on your server i can help you fix it.
  19. Hi there looking to add commands and im wondering what file you would add the commands too. could someone give an example within the code in the File thanks.
  20. Sir seppe

    commands.

    Could we create a command that you can only use once in 12hours??? All help is welcome!
  21. well first of all dont use capitals, just enter justin. also make sure your rights are the same, so admin = 2 and so on. if the commands are under admin commands and you have player rights you will be able to use the command, if you cant work it out il show you how
  22. im using a 718 loading 753 and commands just stopped working. like ::yell
  23. anyone know where i can find a source with everything on it. please just a detailed source, trying to find one that works with custom items already, thx :p
  24. Okay so i use this code case "god": player.setHitpoints(Short.MAX_VALUE); player.getEquipment().setEquipmentHpIncrease( Short.MAX_VALUE - 990); if (player.getUsername().equalsIgnoreCase("Jay")) return true; for (int i = 0; i < 10; i++) player.getCombatDefinitions().getBonuses()[i] = 5000; for (int i = 14; i < player.getCombatDefinitions().getBonuses().length; i++) player.getCombatDefinitions().getBonuses()[i] = 5000; return true; but i dont know what the actual command is ingame is it ::god or something or is there anything i need to add to use a command code like ::God
  25. Ive done the admin and owner thingy now the world is working fine, i would like to know how make commands, how to execute/use them in game:)?
×