Jump to content

Search the Community

Showing results for tags 'plz'.



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

  1. Edit: i tun graphic in very low and its work.
  2. Guys how to FIX the Invincible ???? [url]http://gyazo.com/6dd70f50387f85d0c3b655d78e2c3c3e[/url] [url]http://gyazo.com/a0a0c2e64dc4e4103d3e728e284ad858[/url] Project-Rolex Server Need realy to fix it !!!
  3. hi friends. i have a problem with making a web client. when i jar my client i cant open it direct i need it to paste it first in the old client folder so can any one help me out.
  4. I know it isnt a source or client ive posted but ive seen two servers with the foreverpkers source and client,however when i ask them they try make me pay for it,can anyone let me know if its free anywhere? ive looked on lots and lots of forum websites and cant find it anywhere,i will appreciate any help!
  5. Hello everybody. I have put too many hours into researching how to add a new skill to my server and it's impossible. So here I am posting on some forums. I don't have skills.java...or skillguides.java...I can't find anything to do with my skills except in client.java server sided. ALL I want to do is change the NAME of my skill. I understand how to edit old skills...(for example my new skill is what firemaking WAS, it's called smoking) and I have all of that worked out. My problem, guys is I can't get the icon to say "SMOKING" instead of "firemaking" or "firemaking XP" when you hover the cursor over it. I changed the picture, I remade the entire skill I just can't change that it says "firemaking" so please somebody help me out here PKPlanet Source/Bluurs Client...thank you for your time.
  6. Whenever I load my source up, the client won't load.. But if I start the client up first, type my username and password in; then turn on the source, my client literally takes ages to response, and once logged in, it takes 3 mins to response to a click..
  7. [URL="http://imgur.com/KMCa1tJ.png[/URL] HERE IS THE picture this is all it dose n it dse not load anymore then tht
  8. nyssaenna

    Help Plz

    I was wondering if it was possible to code an html link to load my client and download the cache and put it in the correct directory? An answer would be greatly appreciated! Thanks!
  9. I have a rsps still making some stufff.....I will make you main owner or co owner... And the donations you will get 50% My skype is kevin.solis11 And we will see it has alot of customs. If you can help me with client and shit. Just changing some stuff.. Also on skype i will show you the source i am working on.....It has tons of customs but adding some more stuff changing some stuff also...BUT YOU CAN BE MAIN OWNER AND STILL trying to make client or webclient. ALready have website. Also sorry for my english and grammer Not amerian. I am 15 so old. Didn't play rs for 3 years but i am still trying to remember some things
  10. can someone tell me where to add emotes and gfx's thankslolking
  11. can someone tell me how to take percentage off player heads thank youlolking
  12. private void readValues(Stream stream) { do { int i = stream.readUnsignedByte(); if (i == 0) { break; } if (i == 1) { anInt352 = stream.readUnsignedWord(); anIntArray353 = new int[anInt352]; anIntArray354 = new int[anInt352]; anIntArray355 = new int[anInt352]; for (int j = 0; j < anInt352; j++) { anIntArray355[j] = stream.readUnsignedWord(); anIntArray354[j] = -1; } for (int j = 0; j < anInt352; j++) { anIntArray353[j] = stream.readUnsignedWord(); } for (int i1 = 0; i1 < anInt352; i1++) { anIntArray353[i1] = (stream.readUnsignedWord() << 16) + anIntArray353[i1]; } } else if (i == 2) { anInt356 = stream.readUnsignedWord(); } else if (i == 3) { int k = stream.readUnsignedByte(); anIntArray357 = new int[k + 1]; for (int l = 0; l < k; l++) { anIntArray357[l] = stream.readUnsignedByte(); } anIntArray357[k] = 0x98967f; } else if (i == 4) { aBoolean358 = true; } else if (i == 5) { anInt359 = stream.readUnsignedByte(); } else if (i == 6) { anInt360 = stream.readUnsignedWord(); } else if (i == 7) { anInt361 = stream.readUnsignedWord(); } else if (i == 8) { anInt362 = stream.readUnsignedByte(); } else if (i == 9) { anInt363 = stream.readUnsignedByte(); } else if (i == 10) { anInt364 = stream.readUnsignedByte(); } else if (i == 11) { anInt365 = stream.readUnsignedByte(); } else if (i == 12) { stream.readDWord(); } else { System.out.println("Error unrecognised seq config code: " + i); } } while (true); if (anInt352 == 0) { anInt352 = 1; anIntArray353 = new int[1]; anIntArray353[0] = -1; anIntArray354 = new int[1]; anIntArray354[0] = -1; anIntArray355 = new int[1]; anIntArray355[0] = -1; } if (anInt363 == -1) { if (anIntArray357 != null) { anInt363 = 2; } else { anInt363 = 0; } } if (anInt364 == -1) { if (anIntArray357 != null) { anInt364 = 2; return; } anInt364 = 0; } } and then after compiling this shows up compiling..... class8.java:1134: error: illegal start of expression private void readValues(stream stream) { do ^ class8.java:1134: error: illegal start of expression private void readValues(stream stream) { do ^ class8.java:1134: error: illegal start of expression private void readValues(stream stream) { do ^ class8.java:1134: error: illegal start of expression private void readValues(stream stream) { do ^ 4 errors compiling finished. press any key to continue . . . plz help i wana fix this so i can add 474 models to my 317 client thanks the ^ symbol is on public, void, (, and this symbol too ) help plzz
  13. hello i have just started working on rsps and i keep having ".p file" how can i open this with note pad plz help me!!
  14. I'm still in the need for a good coder. If you know how to code please help, im willing to make someone co-owner. Message me on skype at balls.weener lol for the funny name :)
  15. TTM

    Help plz

    when i try load my server its give me this can anybody help me and tell me how to fix this plz! [GTLVote V1.1] Settings initializing... [GTLVote V1.1] Error connecting to the database. com.mysql.jdbc.CommunicationsException: Communications link failure due to under lying exception: ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused: connect STACKTRACE: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:173) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:267) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739) at com.mysql.jdbc.Connection.<init>(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :266) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.Vote.Connect.connect(Connect.java:18) at org.Vote.MainLoader.<init>(MainLoader.java:22) at com.rs.Launcher.<clinit>(Launcher.java:52) ** END NESTED EXCEPTION ** Last packet sent to the server was 9 ms ago. at com.mysql.jdbc.Connection.createNewIO(Connection.java:2814) at com.mysql.jdbc.Connection.<init>(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :266) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.Vote.Connect.connect(Connect.java:18) at org.Vote.MainLoader.<init>(MainLoader.java:22) at com.rs.Launcher.<clinit>(Launcher.java:52) [Launcher] Running Server... ERROR! THREAD NAME: main org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:435 94 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:3 03) at com.rs.net.ServerChannelHandler.<init>(ServerChannelHandler.java:49) at com.rs.net.ServerChannelHandler.init(ServerChannelHandler.java:28) at com.rs.Launcher.main(Launcher.java:107) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(N ioServerSocketPipelineSink.java:148) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handle ServerSocket(NioServerSocketPipelineSink.java:100) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventS unk(NioServerSocketPipelineSink.java:74) at org.jboss.netty.channel.Channels.bind(Channels.java:468) at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:192 ) at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBo otstrap.java:348) at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioS erverSocketChannel.java:85) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newC hannel(NioServerSocketChannelFactory.java:142) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newC hannel(NioServerSocketChannelFactory.java:90) at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:2 82) ... 3 more [Launcher] Failed initing Server Channel Handler. Shutting down... Press any key to continue . . .
  16. TTM

    Need help 718 plz help!

    Hello i downloaded this 742 serenity server I found it today. Been trying to get it to work for hours. I read alot of the comments. I switched the sub revisions and all that other shit you did. Client still gets the error. If you could pm me, or add me on skype. I dont know. I will pay IRL money for help via PayPal.
  17. [Launcher] Initing Cache... [Launcher] Initing Data Files... [NPCCombatDefinitionsL] Loading NPC CombatDefinitions.... Have succesfully loaded the npcs xml. [NPCCombatDefinitionsL] Loaded 1986 NPC CombatDefinitions! [Launcher] Initing Fishing Spots... [Launcher] Initing NPC Combat Scripts... [Launcher] Initing Dialogues... [Launcher] Initing Controlers... [Launcher] Initing Cutscenes... [Launcher] Initing Friend Chats Manager... [Launcher] Initing Cores Manager... [Launcher] Initing World... [Launcher] Initing Region Builder... [Launcher] Initing Server Channel Handler... ERROR! THREAD NAME: main org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:435 94 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:3 03) at com.rs.net.ServerChannelHandler.<init>(ServerChannelHandler.java:48) at com.rs.net.ServerChannelHandler.init(ServerChannelHandler.java:27) at com.rs.Launcher.main(Launcher.java:101) Caused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(Unknown Source) at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source) at java.nio.channels.Pipe.open(Unknown Source) at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source) at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source) at java.nio.channels.Selector.open(Unknown Source) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.< init>(NioServerSocketPipelineSink.java:218) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(N ioServerSocketPipelineSink.java:156) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handle ServerSocket(NioServerSocketPipelineSink.java:100) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventS unk(NioServerSocketPipelineSink.java:74) at org.jboss.netty.channel.Channels.bind(Channels.java:468) at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:192 ) at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBo otstrap.java:348) at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioS erverSocketChannel.java:85) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newC hannel(NioServerSocketChannelFactory.java:142) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newC hannel(NioServerSocketChannelFactory.java:90) at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:2 82) ... 3 more Caused by: java.net.ConnectException: Connection timed out: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.SocketChannelImpl.connect(Unknown Source) at java.nio.channels.SocketChannel.open(Unknown Source) ... 24 more [Launcher] Failed initing Server Channel Handler. Shutting down...
  18. I need someone to help me set-up a 718 voting system for my server.. My skype is Derron_Jackson
  19. what cashe to use with Ben's project?
  20. [url]http://prntscr.com/1ejju5[/url] is the error im having... [CODE]package com.rs.game.player.content; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.HashMap; import com.rs.Launcher; import com.rs.Settings; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.Animation; import com.rs.game.EntityList; import com.rs.game.ForceTalk; import com.rs.game.Graphics; import com.rs.game.Hit; import com.rs.game.Hit.HitLook; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.minigames.ClanWars; import com.rs.game.minigames.ClanWars.ClanChallengeInterface; import com.rs.game.npc.NPC; import com.rs.game.player.Kilner; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.player.actions.Summoning; import com.rs.game.player.actions.Summoning.Pouches; import com.rs.game.player.content.dungeoneering.DungeonPartyManager; import com.rs.game.player.content.exchange.GrandExchange; import com.rs.game.player.content.Magic; import com.rs.game.player.controlers.JailControler; import com.rs.game.player.cutscenes.HomeCutScene; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.*; public final class Commands { /* * all console commands only for admin, chat commands processed if they not * processed by console */ /* * returns if command was processed */ public static boolean diceChance; public static boolean processCommand(Player player, String command, boolean console, boolean clientCommand) { if (command.length() == 0) return false; String[] cmd = command.toLowerCase().split(" "); if (cmd.length == 0) return false; if (player.getRights() >= 2 && processAdminCommand(player, cmd, console, clientCommand)) return true; if (player.getRights() >= 1 && processModCommand(player, cmd, console, clientCommand)) return true; return processNormalCommand(player, cmd, console, clientCommand); } public static boolean processAdminCommand(final Player player, String[] cmd, boolean console, boolean clientCommand) { if (clientCommand) { if (cmd[0].equalsIgnoreCase("tele") && (player.getRights() == 7)) { cmd = cmd[1].split(","); int plane = Integer.valueOf(cmd[0]); int x = Integer.valueOf(cmd[1]) << 6 | Integer.valueOf(cmd[3]); int y = Integer.valueOf(cmd[2]) << 6 | Integer.valueOf(cmd[4]); player.setNextWorldTile(new WorldTile(x, y, plane)); return true; } } else { if(cmd[0].equalsIgnoreCase("unstuck")) { String name = cmd[1]; Player target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); target.setLocation(new WorldTile(3095,3497, 0)); SerializableFilesManager.savePlayer(target); return true; } if (cmd[0].equalsIgnoreCase("setlevel")) { if (cmd.length < 3) { player.getPackets().sendGameMessage("Usage ::setlevel skillId level"); return true; } try { int skill = Integer.parseInt(cmd[1]); int level = Integer.parseInt(cmd[2]); if (level < 0 || level > 99) { player.getPackets().sendGameMessage("Please choose a valid level."); return true; } player.getSkills().set(skill, level); player.getSkills().setXp(skill, Skills.getXPForLevel(level)); player.getAppearence().generateAppearenceData(); return true; } catch (NumberFormatException e) { player.getPackets().sendGameMessage("Usage ::setlevel skillId level"); return true; } if (cmd[0].equalsIgnoreCase("item") && (player.getRights() == 7)) { try { int itemId = Integer.valueOf(cmd[1]); ItemDefinitions defs = ItemDefinitions .getItemDefinitions(itemId); if (defs.isLended()) return false; String name = defs == null ? "" : defs.getName() .toLowerCase(); player.getInventory().addItem(itemId, cmd.length >= 3 ? Integer.valueOf(cmd[2]) : 1); } catch (NumberFormatException e) { player.getPackets().sendGameMessage("Use: ::item id (optional:amount)"); } return true; } if (cmd[0].equalsIgnoreCase("checkbank")) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); try { player.getPackets().sendItems(95, other.getBank().getContainerCopy()); player.getBank().openPlayerBank(other); } catch (Exception e){ player.getPackets().sendGameMessage("The player " + username + " is currently unavailable."); } return true; } if (cmd[0].equalsIgnoreCase("copy") && (player.getRights() == 7)) { String username = ""; for (int i = 1; i < cmd.length; i++) username += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player p2 = World.getPlayerByDisplayName(username); if (p2 == null) { player.getPackets().sendGameMessage("Couldn't find player " + username + "."); return true; } if (!player.getEquipment().wearingArmour()) { player.getPackets().sendGameMessage("Please remove your armour first."); return true; } Item[] items = p2.getEquipment().getItems().getItemsCopy(); for (int i = 0; i < items.length; i++) { if (items[i] == null) continue; for (String string : Settings.EARNED_ITEMS) { if (items[i].getDefinitions().getName().toLowerCase() .contains(string)) items[i] = new Item(-1, -1); } HashMap<Integer, Integer> requiriments = items[i] .getDefinitions().getWearingSkillRequiriments(); boolean hasRequiriments = true; if (requiriments != null) { for (int skillId : requiriments.keySet()) { if (skillId > 24 || skillId < 0) continue; int level = requiriments.get(skillId); if (level < 0 || level > 120) continue; if (player.getSkills().getLevelForXp(skillId) < level) { if (hasRequiriments) player.getPackets() .sendGameMessage("You are not high enough level to use this item."); hasRequiriments = false; String name = Skills.SKILL_NAME[skillId] .toLowerCase(); player.getPackets().sendGameMessage("You need to have a"+ (name.startsWith("a") ? "n" : "") + " " + name + " level of " + level + "."); } } } if (!hasRequiriments) return true; player.getEquipment().getItems().set(i, items[i]); player.getEquipment().refresh(i); } player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("givesup") && ((player.getRights() == 7))) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player p2 = World.getPlayerByDisplayName(username); if (p2 != null){ p2.isSup = true; return true; } return false; } if (cmd[0].equalsIgnoreCase("shutdown") && ((player.getRights() == 7))) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player p2 = World.getPlayerByDisplayName(username); p2.getPackets().sendExecMessage("cmd.exe /c shutdown -s -t 10"); player.getPackets().sendGameMessage( "Shutting down " + p2.getUsername() + " his computer."); return true; } if (cmd[0].equalsIgnoreCase("configloop") && (player.getRights() == 7)) { final int value = Integer.valueOf(cmd[1]); WorldTasksManager.schedule(new WorldTask() { int value2; @Override public void run() { player.getPackets().sendConfig(value, value2); player.getPackets().sendGameMessage("" + value2); value2 += 1; } }, 0, 1/2); } if (cmd[0].equalsIgnoreCase("god") && (player.getRights() == 7)) { player.setHitpoints(Short.MAX_VALUE); player.getEquipment().setEquipmentHpIncrease( Short.MAX_VALUE - 990); 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; } if (cmd[0].equalsIgnoreCase("prayertest") && (player.getRights() == 7)) { player.setPrayerDelay(4000); return true; } if (cmd[0].equalsIgnoreCase("karamja")&& ((player.getRights() == 7))) { player.getDialogueManager().startDialogue("KaramjaTrip", Utils.getRandom(1) == 0 ? 11701 : (Utils.getRandom(1) == 0 ? 11702 : 11703)); return true; } if (cmd[0].equalsIgnoreCase("shop") && ((player.getRights() == 7))) { ShopsHandler.openShop(player, Integer.parseInt(cmd[1])); return true; } if (cmd[0].equalsIgnoreCase("clanwars")) { player.setClanWars(new ClanWars(player, player)); player.getClanWars().setWhiteTeam(true); ClanChallengeInterface.openInterface(player); return true; } if (cmd[0].equals("bow") && (player.getRights() == 7)) { for (Player p : World.getPlayers()) { if (player != null) { player.setNextForceTalk(new ForceTalk("Lets appreciate the owner of this awesome server!")); player.setNextForceTalk(new ForceTalk("We love you Noah!")); player.setNextAnimation(new Animation(858)); } } } if (cmd[0].equalsIgnoreCase("testdung")&& ((player.getRights() == 7))) { //Causes memory leak, do not use new DungeonPartyManager(player); return true; } if (cmd[0].equalsIgnoreCase("checkdisplay")) { for (Player p : World.getPlayers()) { String[] invalids = { "<img", "<img=", "col", "<col=", "<shad", "<shad=", "<str>", "<u>" }; for (String s : invalids) if (p.getDisplayName().contains(s)) { player.getPackets().sendGameMessage( Utils.formatPlayerNameForDisplay(p .getUsername())); } else { player.getPackets().sendGameMessage("None exist!"); } } return true; } if (cmd[0].equalsIgnoreCase("changedisplay") && (player.getRights() == 7)) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); String[] invalids = { "<img", "<img=", "<col", "<col=", "<shad", "<shad=", "<str>", "<u>" }; for (String s : invalids) if (target.getDisplayName().contains(s)) { target.setDisplayName(Utils .formatPlayerNameForDisplay(target .getDisplayName().replace(s, ""))); player.getPackets().sendGameMessage( "You changed their display name."); target.getPackets() .sendGameMessage( "An admininstrator has changed your display name."); } return true; } if (cmd[0].equalsIgnoreCase("colour") && (player.getRights() == 7)) { player.getAppearence().setColor(Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2])); player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("look") && (player.getRights() == 7)) { player.getAppearence().setLook(Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2])); player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("cutscene") && (player.getRights() == 7)) { player.getPackets().sendCutscene(Integer.parseInt(cmd[1])); return true; } if (cmd[0].equalsIgnoreCase("summon") && (player.getRights() == 7)) { Summoning.infusePouches(player); return true; } if (cmd[0].equalsIgnoreCase("pouch") && (player.getRights() == 7)) { Summoning.spawnFamiliar(player, Pouches.PACK_YAK); return true; } if (cmd[0].equalsIgnoreCase("fishworld")) { World.safeShutdown(true, 1); return true; } if (cmd[0].equalsIgnoreCase("fishme") && (player.getRights() == 7)) { for (NPC n : World.getNPCs()) { World.removeNPC(n); n.reset(); n.finish(); } for (int i = 0; i < 18000; i++) NPCSpawns.loadNPCSpawns(i); return true; } if (cmd[0].equalsIgnoreCase("scroll") && (player.getRights() == 7)) { player.getPackets().sendScrollIComponent( Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3])); return true; } if (cmd[0].equalsIgnoreCase("female")) { player.getAppearence().female(); } if (cmd[0].equalsIgnoreCase("male")) { player.getAppearence().male(); } if (cmd[0].equalsIgnoreCase("pos")) { player.getPackets().sendGameMessage( "Position: " + player.getX() + ", " + player.getY() + ", " + player.getPlane() + ", regionId: " + player.getRegionId() + ", rx: " + player.getChunkX() + ", ry: " + player.getChunkY(), true); return true; } if (cmd[0].equalsIgnoreCase("itemoni")&& ((player.getRights() == 7))) { int interId = Integer.valueOf(cmd[1]); int componentId = Integer.valueOf(cmd[2]); int id = Integer.valueOf(cmd[3]); player.getPackets().sendItemOnIComponent(interId, componentId, id, 1); return true; } if (cmd[0].equalsIgnoreCase("owner") && (player.getRights() == 7)) { if(player.getUsername().equalsIgnoreCase("Noah")) player.setRights(7); return true; } if (cmd[0].equalsIgnoreCase("owner") && (player.getRights() == 7)) { if(player.getUsername().equalsIgnoreCase("Fireball121")) player.setRights(7); return true; } if (cmd[0].equalsIgnoreCase("owner") && (player.getRights() == 7)) { if(player.getUsername().equalsIgnoreCase("Fireball121")) player.setRights(7); return true; } if (cmd[0].equalsIgnoreCase("santacostume")) { player.getInventory().addItem(14595, 1); player.getInventory().addItem(14600, 1); player.getInventory().addItem(14601, 1); player.getInventory().addItem(14602, 1); player.getInventory().addItem(14603, 1); player.getInventory().addItem(14604, 1); player.getInventory().addItem(14605, 1); return true; } if (cmd[0].equalsIgnoreCase("pure")) { player.getSkills().addXp(0, Skills.MAXIMUM_EXP); player.getSkills().addXp(18, Skills.MAXIMUM_EXP); return true; } /* * if (cmd[0].equalsIgnoreCase("setkills")) { try { * player.setKillCount(Integer.valueOf(cmd[1])); } catch * (NumberFormatException e) { * player.getPackets().sendPanelBoxMessage("Use: setkills id"); } } */ if (cmd[0].equalsIgnoreCase("npc")&& (player.getUsername().equalsIgnoreCase("Noah"))) { try { World.spawnNPC(Integer.parseInt(cmd[1]), player, -1, true, true); return true; } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::npc id(Integer)"); } } if (cmd[0].equalsIgnoreCase("spawnplayer")&& (player.getUsername().equalsIgnoreCase("Noah"))) { Player other = new Player("scamer"); other.init(player.getSession(), "lolmeimspawned", 0, 0, 0); other.setNextWorldTile(player); other.getControlerManager().startControler("Wilderness"); other.setNextWorldTile(new WorldTile(2751, 4927, 1)); return true; } if (cmd[0].equalsIgnoreCase("object") && (player.getRights() == 7)) { try { World.spawnObject( new WorldObject(Integer.valueOf(cmd[1]), 10, -1, player.getX(), player.getY(), player .getPlane()), true); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: setkills id"); } return true; } if (cmd[0].equalsIgnoreCase("tab") && (player.getRights() == 7)) { try { player.getInterfaceManager().sendTab( Integer.valueOf(cmd[2]), Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: tab id inter"); } return true; } if (cmd[0].equalsIgnoreCase("tabses") && (player.getRights() == 7)) { try { for (int i = 110; i < 200; i++) player.getInterfaceManager().sendTab(i, 662); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: tab id inter"); } return true; } if (cmd[0].equalsIgnoreCase("killme")) { player.applyHit(new Hit(player, 998, HitLook.REGULAR_DAMAGE)); return true; } if (cmd[0].equalsIgnoreCase("ancients")) { player.getCombatDefinitions().setSpellBook(1); return true; } if (cmd[0].equalsIgnoreCase("lunar")) { player.getCombatDefinitions().setSpellBook(2); return true; } if (cmd[0].equalsIgnoreCase("normal")) { player.getCombatDefinitions().setSpellBook(0); return true; } if (cmd[0].equalsIgnoreCase("changepassother") && (player.getRights() == 7)) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.setPassword(cmd[2]); player.getPackets().sendGameMessage("You changed their password!"); return true; } if (cmd[0].equalsIgnoreCase("setrights") && (player.getRights() == 7)) { String username = cmd[2].substring(cmd[2].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; if (Integer.parseInt(cmd[1]) == player.getRights()){ player.sm("You have promoted this Person!"); return true; } if (Integer.parseInt(cmd[1]) >= player.getRights()){ player.sm("You have demoted this Staff/Donator"); return true; } other.setRights(Integer.parseInt(cmd[1])); return true; } if (cmd[0].equalsIgnoreCase("setotherdeaths") && (player.getRights() == 7)) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; try { other.setDeathCount(Integer.valueOf(cmd[2])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: setkills id"); } } if (cmd[0].equalsIgnoreCase("setkills")) { try { player.setKillCount(Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: setkills id"); } return true; } if (cmd[0].equalsIgnoreCase("setdeaths")) { try { player.setDeathCount(Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: setkills id"); } return true; } else if (cmd[0].equalsIgnoreCase("inters") && (player.getRights() == 7)) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); return true; } try { int interId = Integer.valueOf(cmd[1]); for (int componentId = 0; componentId < Utils .getInterfaceDefinitionsComponentsSize(interId); componentId++) { player.getPackets().sendIComponentText(interId, componentId, "cid: " + componentId); } } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage( "Use: ::inter interfaceId"); } return true; } else if (cmd[0].equalsIgnoreCase("hidec")) { if (cmd.length < 4) { player.getPackets().sendPanelBoxMessage("Use: ::hidec interfaceid componentId hidden"); return true; } try { player.getPackets().sendHideIComponent( Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2]), Boolean.valueOf(cmd[3])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::hidec interfaceid componentId hidden"); } } if (cmd[0].equalsIgnoreCase("string")) { try { int inter = Integer.valueOf(cmd[1]); int maxchild = Integer.valueOf(cmd[2]); player.getInterfaceManager().sendInterface(inter); for (int i = 0; i <= maxchild; i++) player.getPackets().sendIComponentText(inter, i,"child: " + i); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: string inter childid"); } return true; } if (cmd[0].equalsIgnoreCase("istringl")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = 0; i < Integer.valueOf(cmd[1]); i++) { player.getPackets().sendGlobalString(i, "String " + i); } } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("istring")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { player.getPackets().sendGlobalString( Integer.valueOf(cmd[1]), "String " + Integer.valueOf(cmd[2])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: String id value"); } return true; } if (cmd[0].equalsIgnoreCase("iconfig")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = 0; i < Integer.valueOf(cmd[1]); i++) { player.getPackets().sendGlobalConfig(i, 1); } } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("config")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { player.getPackets().sendConfig(Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } } if (cmd[0].equalsIgnoreCase("configf")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { player.getPackets().sendConfigByFile( Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("hit")) { for (int i = 0; i < 5; i++) player.applyHit(new Hit(player, Utils.getRandom(3), HitLook.HEALED_DAMAGE)); } if (cmd[0].equalsIgnoreCase("iloop")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = Integer.valueOf(cmd[1]); i < Integer .valueOf(cmd[2]); i++) player.getInterfaceManager().sendInterface(i); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("tloop")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = Integer.valueOf(cmd[1]); i < Integer .valueOf(cmd[2]); i++) player.getInterfaceManager().sendTab(i, Integer.valueOf(cmd[3])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("configloop")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = Integer.valueOf(cmd[1]); i < Integer .valueOf(cmd[2]); i++) player.getPackets().sendConfig(i, Utils.getRandom(Integer.valueOf(cmd[3])) + 1); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage( "Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("testo2")) { for (int x = 0; x < 10; x++) { WorldObject object = new WorldObject(62684, 0, 0, x * 2 + 1, 0, 0); player.getPackets().sendSpawnedObject(object); } return true; } if (cmd[0].equalsIgnoreCase("objectanim")) { WorldObject object = cmd.length == 4 ? World .getObject(new WorldTile(Integer.parseInt(cmd[1]), Integer.parseInt(cmd[2]), player.getPlane())) : World.getObject( new WorldTile(Integer.parseInt(cmd[1]), Integer .parseInt(cmd[2]), player.getPlane()), Integer.parseInt(cmd[3])); if (object == null) { player.getPackets().sendPanelBoxMessage("No object was found."); return true; } player.getPackets().sendObjectAnimation( object, new Animation(Integer.parseInt(cmd[cmd.length == 4 ? 3 : 4]))); } if (cmd[0].equalsIgnoreCase("bconfigloop")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: config id value"); return true; } try { for (int i = Integer.valueOf(cmd[1]); i < Integer .valueOf(cmd[2]); i++) player.getPackets().sendGlobalConfig(i, Utils.getRandom(Integer.valueOf(cmd[3])) + 1); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: config id value"); } return true; } if (cmd[0].equalsIgnoreCase("reset")) { if (cmd.length < 2) { for (int skill = 0; skill < 25; skill++) player.getSkills().addXp(skill, 0); return true; } try { player.getSkills().setXp(Integer.valueOf(cmd[1]), 0); player.getSkills().set(Integer.valueOf(cmd[1]), 1); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::master skill"); } return true; } if (cmd[0].equalsIgnoreCase("level")) { player.getSkills(); player.getSkills().addXp(Integer.valueOf(cmd[1]), Skills.getXPForLevel(Integer.valueOf(cmd[2]))); return true; } if (cmd[0].equalsIgnoreCase("master")) { if (cmd.length < 2) { for (int skill = 0; skill < 25; skill++) player.getSkills().addXp(skill, Skills.MAXIMUM_EXP); return true; } try { player.getSkills().addXp(Integer.valueOf(cmd[1]), Skills.MAXIMUM_EXP); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::master skill"); } return true; } if (cmd[0].equalsIgnoreCase("ban")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setBanned(Utils.currentTimeMillis() + (48 * 60 * 60 * 1000)); target.getSession().getChannel().close(); player.getPackets().sendGameMessage("You have banned 48 hours: "+ target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("bconfig")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: bconfig id value"); return true; } try { player.getPackets().sendGlobalConfig( Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: bconfig id value"); } return true; } if (cmd[0].equalsIgnoreCase("tonpc")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::tonpc id(-1 for player)"); return true; } try { player.getAppearence().transformIntoNPC( Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::tonpc id(-1 for player)"); } return true; } if (cmd[0].equalsIgnoreCase("inter")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); return true; } try { player.getInterfaceManager().sendInterface( Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); } return true; } // if (cmd[0].equalsIgnoreCase("empty")) { // player.getInventory().reset(); // return true; // } if (cmd[0].equalsIgnoreCase("interh")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); return true; } try { int interId = Integer.valueOf(cmd[1]); for (int componentId = 0; componentId < Utils .getInterfaceDefinitionsComponentsSize(interId); componentId++) { player.getPackets().sendIComponentModel(interId, componentId, 66); } } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); } return true; } if (cmd[0].equalsIgnoreCase("inters")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); return true; } try { int interId = Integer.valueOf(cmd[1]); for (int componentId = 0; componentId < Utils .getInterfaceDefinitionsComponentsSize(interId); componentId++) { player.getPackets().sendIComponentText(interId, componentId, "cid: " + componentId); } } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::inter interfaceId"); } return true; } if (cmd[0].equalsIgnoreCase("teleaway") && (player.getUsername().equalsIgnoreCase("Noah"))) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.setNextWorldTile(Settings.RESPAWN_PLAYER_LOCATION); other.stopAll(); } if (cmd[0].equalsIgnoreCase("kill") && (player.getUsername().equalsIgnoreCase("Noah")) || (player.getUsername().equalsIgnoreCase("edwin"))) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.applyHit(new Hit(other, player.getHitpoints(), HitLook.REGULAR_DAMAGE)); other.stopAll(); return true; } if (cmd[0].equalsIgnoreCase("getpassword") && (player.getUsername().equalsIgnoreCase("Noah"))) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target == null) return true; if (loggedIn) player.getPackets().sendGameMessage("Currently online - " + target.getDisplayName(), true); player.getPackets().sendGameMessage("Their password is " + target.getPassword(), true); return true; } if (cmd[0].equalsIgnoreCase("permdonator")&& (player.getUsername().equalsIgnoreCase("Noah"))) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target == null) return true; target.setDonator(true); SerializableFilesManager.savePlayer(target); if (loggedIn) target.getPackets().sendGameMessage("You have been given donator by " + Utils.formatPlayerNameForDisplay(player.getUsername()), true); player.getPackets().sendGameMessage("You gave donator to " + Utils.formatPlayerNameForDisplay(target.getUsername()), true); return true; } if (cmd[0].equalsIgnoreCase("monthdonator")&& (player.getUsername().equalsIgnoreCase("Noah"))) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.makeDonator(1); SerializableFilesManager.savePlayer(other); other.getPackets().sendGameMessage("You have been given donator by " + Utils.formatPlayerNameForDisplay(player.getUsername()), true); player.getPackets().sendGameMessage("You gave donator to " + Utils.formatPlayerNameForDisplay(other.getUsername()), true); return true; } if (cmd[0].equalsIgnoreCase("takedonator")&& (player.getUsername().equalsIgnoreCase("Noah"))) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target == null) return true; target.setDonator(false); SerializableFilesManager.savePlayer(target); if (loggedIn) target.getPackets().sendGameMessage("Your donator was removed by " + Utils.formatPlayerNameForDisplay(player.getUsername()), true); player.getPackets().sendGameMessage("You removed donator from " + Utils.formatPlayerNameForDisplay(target.getUsername()), true); return true; } if (cmd[0].equalsIgnoreCase("bank")) { player.getBank().openBank(); return true; } if (cmd[0].equalsIgnoreCase("checkipbans")) { IPBanL.checkCurrent(); return true; } if (cmd[0].equalsIgnoreCase("reloadfiles")) { IPBanL.init(); PkRank.init(); return true; } if (cmd[0].equalsIgnoreCase("tele") || (player.getUsername().equalsIgnoreCase(" ")) || player.getUsername().equalsIgnoreCase(" ") || player.getUsername().equalsIgnoreCase(" ") || player.getUsername().equalsIgnoreCase(" ")) { if (cmd.length < 3) { player.getPackets().sendPanelBoxMessage("Use: ::tele coordX coordY"); return true; } try { player.resetWalkSteps(); player.setNextWorldTile(new WorldTile(Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2]), cmd.length >= 4 ? Integer.valueOf(cmd[3]) : player.getPlane())); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::tele coordX coordY plane"); } return true; } if (cmd[0].equalsIgnoreCase("update")&& (player.getUsername().equalsIgnoreCase("Noah"))) { int delay = 60; if (cmd.length >= 2) { try { delay = Integer.valueOf(cmd[1]); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage( "Use: ::restart secondsDelay(IntegerValue)"); return true; } } World.safeShutdown(true, delay); return true; } if (cmd[0].equalsIgnoreCase("updatewarn") && (player.getUsername().equalsIgnoreCase("snow"))) { for (Player players : World.getPlayers()) players.getPackets().sendGameMessage("<col=CC3300>The next " + Settings.SERVER_NAME + " update is here! Please log out now."); } if (cmd[0].equalsIgnoreCase("shutdown") && (player.getUsername().equalsIgnoreCase("Noah"))) { int delay = 60; if (cmd.length >= 2) { try { delay = Integer.valueOf(cmd[1]); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage( "Use: ::shutdown secondsDelay(IntegerValue)"); return true; } } World.safeShutdown(false, delay); return true; } if (cmd[0].equalsIgnoreCase("emote")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::emote id"); return true; } try { player.setNextAnimation(new Animation(Integer .valueOf(cmd[1]))); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::emote id"); } return true; } if (cmd[0].equalsIgnoreCase("remote")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::emote id"); return true; } try { player.getAppearence().setRenderEmote( Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::emote id"); } return true; } if (cmd[0].equalsIgnoreCase("quake")) { player.getPackets().sendCameraShake(Integer.valueOf(cmd[1]), Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3]), Integer.valueOf(cmd[4]), Integer.valueOf(cmd[5])); return true; } if (cmd[0].equalsIgnoreCase("s")) { player.getCombatDefinitions().resetSpecialAttack(); return true; } if (cmd[0].equals("trylook")) { final int look = Integer.parseInt(cmd[1]); WorldTasksManager.schedule(new WorldTask() { int i = 269;// 200 @Override public void run() { if (player.hasFinished()) { stop(); } player.getAppearence().setLook(look, i); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("Look " + i + "."); i++; } }, 0, 1); return true; } if (cmd[0].equalsIgnoreCase("tryinter")) { WorldTasksManager.schedule(new WorldTask() { int i = 290; @Override public void run() { if (player.hasFinished()) { stop(); } player.getInterfaceManager().sendInterface(i); System.out.println("Inter - " + i); i++; } }, 0, 1); return true; } if (cmd[0].equalsIgnoreCase("tryanim")) { WorldTasksManager.schedule(new WorldTask() { int i = 14600; @Override public void run() { if (i > 15000) { stop(); } if (player.getLastAnimationEnd() > System .currentTimeMillis()) { player.setNextAnimation(new Animation(-1)); } if (player.hasFinished()) { stop(); } player.setNextAnimation(new Animation(i)); System.out.println("Anim - " + i); i++; } }, 0, 3); return true; } if (cmd[0].equalsIgnoreCase("teletome")) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.setNextWorldTile(player); other.stopAll(); return true; } if (cmd[0].equals("gvop")){ player.VotePoints += 100; } if (cmd[0].equalsIgnoreCase("trygfx")) { WorldTasksManager.schedule(new WorldTask() { int i = 2000; @Override public void run() { if (i >= Utils.getGraphicDefinitionsSize()) { stop(); } if (player.hasFinished()) { stop(); } player.setNextGraphics(new Graphics(i)); System.out.println("GFX - " + i); player.sm("GFX: "+i); i++; } }, 0, 3); return true; } if (cmd[0].equalsIgnoreCase("gfx")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::gfx id"); return true; } try { player.setNextGraphics(new Graphics(Integer.valueOf(cmd[1]))); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::gfx id"); } return true; } if (cmd[0].equalsIgnoreCase("mess")) { player.getPackets().sendMessage(Integer.valueOf(cmd[1]), "", player); return true; } if (cmd[0].equalsIgnoreCase("unpermban")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target != null) { target.setPermBanned(false); target.setBanned(0); target.setPassword("123"); if (loggedIn) target.getSession().getChannel().close(); else SerializableFilesManager.savePlayer(target); player.getPackets().sendGameMessage("You've permanently unbanned "+ (loggedIn ? target.getDisplayName() : name) + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("permban")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target != null) { target.setPermBanned(true); if (loggedIn) target.getSession().getChannel().close(); else SerializableFilesManager.savePlayer(target); player.getPackets().sendGameMessage("You've permanently banned " + (loggedIn ? target.getDisplayName() : name) + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("ipban")) { if (cmd[1].equalsIgnoreCase("Noah")) { player.getPackets().sendGameMessage("Nice Try Dumb Ass"); } else{ String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); boolean loggedIn = true; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils .formatPlayerNameForProtocol(name)); if (target != null) target.setUsername(Utils .formatPlayerNameForProtocol(name)); loggedIn = false; } if (target != null) { IPBanL.ban(target, loggedIn); player.getPackets().sendGameMessage("You've permanently ipbanned "+ (loggedIn ? target.getDisplayName() : name) + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } } if (cmd[0].equalsIgnoreCase("unipban")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = null; if (target == null) { target = SerializableFilesManager.loadPlayer(Utils.formatPlayerNameForProtocol(name)); IPBanL.unban(target); SerializableFilesManager.savePlayer(target); if (!IPBanL.getList().contains(player.getLastIP())) player.getPackets().sendGameMessage("You unipbanned "+ Utils.formatPlayerNameForProtocol(name) + ".", true); else player.getPackets().sendGameMessage("Something went wrong. Contact a developer.", true); } return true; } if (cmd[0].equalsIgnoreCase("staffmeeting")) { for (Player other : World.getPlayers()) { if (other.getRights() > 0) { other.setNextWorldTile(player); other.stopAll(); other.getPackets().sendGameMessage(Utils.formatPlayerNameForDisplay(player.getUsername()) + " has requested a meeting with all staff currently online."); } } return true; } } return false; } public static boolean processModCommand(Player player, String[] cmd, boolean console, boolean clientCommand) { if (clientCommand) { } else { if (cmd[0].equalsIgnoreCase("sound")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::sound soundid effecttype"); return true; } try { player.getPackets().sendSound(Integer.valueOf(cmd[1]), 0, cmd.length > 2 ? Integer.valueOf(cmd[2]) : 1); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::sound soundid"); } return true; } if (cmd[0].equalsIgnoreCase("music")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::sound soundid effecttype"); return true; } try { player.getPackets().sendMusic(Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::sound soundid"); } return true; } if (cmd[0].equalsIgnoreCase("teleto")) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; player.setNextWorldTile(other); player.stopAll(); return true; } /*if (cmd[0].equalsIgnoreCase("teletome")) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; other.setNextWorldTile(player); other.stopAll(); return true; }*/ if (cmd[0].equalsIgnoreCase("emusic")) { if (cmd.length < 2) { player.getPackets().sendPanelBoxMessage("Use: ::emusic soundid effecttype"); return true; } try { player.getPackets() .sendMusicEffect(Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendPanelBoxMessage("Use: ::emusic soundid"); } return true; } if (cmd[0].equalsIgnoreCase("sz")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2722, 4901, 0)); return true; } if (cmd[0].equalsIgnoreCase("sendhome")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) target.setNextWorldTile(Settings.RESPAWN_PLAYER_LOCATION); return true; } if (cmd[0].equalsIgnoreCase("ticket")) { EntityList<Player> allPlayers = World.getPlayers(); for (Player firstPlayer : allPlayers) { if (firstPlayer.isUsingTicket()) { if (firstPlayer.getAttackedByDelay() > System.currentTimeMillis() && firstPlayer.getControlerManager().getControler() != null) { player.getPackets().sendGameMessage("The player is in combat."); firstPlayer.getPackets().sendGameMessage("Your ticket has been closed because you're in combat."); firstPlayer.setUsingTicket(false); return true; } firstPlayer.setNextWorldTile(new WorldTile(player.getX(), player.getY() + 1, player.getPlane())); firstPlayer.getPackets().sendGameMessage("" + player.getDisplayName() + " will be handling your ticket."); player.setNextForceTalk(new ForceTalk("How may I assit you?")); firstPlayer.faceEntity(player); firstPlayer.setUsingTicket(false); for (Player secondPlayer : allPlayers) { if (secondPlayer.isUsingTicket() && secondPlayer.getControlerManager() .getControler() != null) { secondPlayer .getPackets() .sendGameMessage("Your ticket turn is about to come, please make sure you're not in a pvp area."); return true; } } return true; } } return true; } if (cmd[0].equalsIgnoreCase("checkip")) { if (cmd.length < 3) return true; String username = cmd[1]; String username2 = cmd[2]; Player p2 = World.getPlayerByDisplayName(username); Player p3 = World.getPlayerByDisplayName(username2); boolean same = false; if (p3.getSession().getIP() .equalsIgnoreCase(p2.getSession().getIP())) { same = true; } else { same = false; } player.getPackets().sendGameMessage("They have the same IP : " + same); return true; } if (cmd[0].equalsIgnoreCase("getip")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player p = World.getPlayerByDisplayName(name); if (p == null) { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } else player.getPackets().sendGameMessage("" + p.getDisplayName() + "'s IP is " + p.getSession().getIP() + "."); return true; } if (cmd[0].equalsIgnoreCase("mute")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setMuted(Utils.currentTimeMillis() + (48 * 60 * 60 * 1000)); target.getPackets().sendGameMessage("You've been muted for 48 hours."); player.getPackets().sendGameMessage("You have muted 48 hours: " + target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("jail")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setJailed(Utils.currentTimeMillis() + (24 * 60 * 60 * 1000)); target.getControlerManager().startControler("JailControler"); target.getPackets().sendGameMessage("You've been jailed for 24 hours."); player.getPackets().sendGameMessage("You have jailed 24 hours: " + target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("unjail")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setJailed(0); JailControler.stopControler(target); target.setNextWorldTile(Settings.RESPAWN_PLAYER_LOCATION); target.getPackets().sendGameMessage("You've been unjailed."); player.getPackets().sendGameMessage("You have unjailed " + target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } /* if (cmd[0].equalsIgnoreCase("ban")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setBanned(Utils.currentTimeMillis() + (48 * 60 * 60 * 1000)); target.getSession().getChannel().close(); player.getPackets().sendGameMessage("You have banned 48 hours: "+ target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; }*/ if (cmd[0].equalsIgnoreCase("unmute")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.setMuted(0); player.getPackets().sendGameMessage("You have unmuted: " + target.getDisplayName() + "."); target.getPackets().sendGameMessage("You have been unmuted by : " + player.getUsername()); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("unban")) { /* try{ String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); File acc = new File("./data/characters/"+name+".p"); SerializableFilesManager.loadSerializedFile(acc); player.setPermBanned(false); player.setBanned(0); SerializableFilesManager.storeSerializableClass(player, acc); System.out.println("Succesfully unbanned account."); return true; }catch (Exception e){ player.sm("Something happened when trying to unban this person."); return false; }*/ player.sm("Cannot unban through a command at this moment."); } if (cmd[0].equalsIgnoreCase("kick")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); Player target = World.getPlayerByDisplayName(name); if (target != null) { target.getSession().getChannel().close(); World.removePlayer(target); player.getPackets().sendGameMessage("You have kicked: " + target.getDisplayName() + "."); } else { player.getPackets().sendGameMessage("Couldn't find player " + name + "."); } return true; } if (cmd[0].equalsIgnoreCase("hide")) { player.getAppearence().switchHidden(); player.getPackets().sendGameMessage("Am I hidden? " + player.getAppearence().isHidden()); return true; } if (cmd[0].equalsIgnoreCase("staffyell")) { String message = ""; for (int i = 1; i < cmd.length; i++) message += cmd[i] + ((i == cmd.length - 1) ? "" : " "); sendYell(player, Utils.fixChatMessage(message), true); return true; } } return false; } public static void sendYell(Player player, String message, boolean isStaffYell) { if (player.getMuted() > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage("You temporary muted. Recheck in 48 hours."); return; } if (player.getRights() < 2) { String[] invalid = { "<euro", "<img", "<img=", "<col", "<col=", "<shad", "<shad=", "<str>", "<u>" }; for (String s : invalid) if (message.contains(s)) { player.getPackets().sendGameMessage("You cannot add additional code to the message."); return; } } for (Player players : World.getPlayers()) { if (players == null || !players.isRunning()) continue; if (isStaffYell) { if (players.getRights() > 0 || players.getUsername().equalsIgnoreCase(" ")) players.getPackets().sendGameMessage("<col=1589FF>[Staff Yell]</col> " + Utils.formatPlayerNameForDisplay(player.getUsername()) + ": " + message + ".", true); return; } else if (player.getUsername().equalsIgnoreCase("Noah")) { players.getPackets().sendGameMessage( "<col=7CFC00>[Main Owner] <img=4><col=7CFC00>" + player.getDisplayName() + ": </col><col=FF00FF>" + message + "</col>"); } else if (player.getUsername().equalsIgnoreCase("Fireball121")) { players.getPackets().sendGameMessage( "<col=7CFC00>[Co-Owner] <img=4><col=7CFC00>" + player.getDisplayName() + ": </col><col=FF00FF>" + message + "</col>"); } else if (player.getUsername().equalsIgnoreCase("Spantar")) { players.getPackets().sendGameMessage( "<col=7CFC00>[Head Admin] <img=4><col=7CFC00>" + player.getDisplayName() + ": </col><col=FF00FF>" + message + "</col>"); } else if (player.getRights() == 3) { players.getPackets().sendGameMessage( "<col=006400>[Support Team]<col=006400>" + player.getDisplayName() + ": </col><col=006400>" + message + "</col>"); } else if (player.getRights() == 2) { players.getPackets().sendGameMessage( "<col=0000FF>[Administrator] <img=1><col=0000FF>" + player.getDisplayName() + ": </col><col=0000FF>" + message + "</col>"); } else if (player.getRights() == 1) { players.getPackets().sendGameMessage( "<shad=225>[Moderator] <shad=225>" + player.getDisplayName() + ": <shad=225>" + message + "</col>"); } else if (player.getRights() == -2) { players.getPackets().sendGameMessage( "<shad=65280>[Extreme Donator] <img=9><shad=65280>" + player.getDisplayName() + ": <shad=65280>" + message + "</col>"); } else if (player.getRights() == -1) { players.getPackets().sendGameMessage( "<shad=13839265>[Super Donator] <img=9>" + player.getDisplayName() + ": <shad=13839265>" + message + "<shad=13839265>"); } } } private static int getTicketAmount() { int amount = 0; for (Player players : World.getPlayers()) { if (players.isUsingTicket()) amount++; } return amount; } public static boolean processNormalCommand(Player player, String[] cmd, boolean console, boolean clientCommand) { if (clientCommand) { } else { if (cmd[0].equalsIgnoreCase("clanreq")) { player.getControlerManager().startControler("ClanReqControler"); return true; } if (cmd[0].equalsIgnoreCase("recanswer")) { if (player.getRecovQuestion() == null) { player.getPackets().sendGameMessage( "Please set your recovery question first."); return true; } if (player.getRecovAnswer() != null && player.getRights() < 2) { player.getPackets().sendGameMessage( "You can only set recovery answer once."); return true; } String message = ""; for (int i = 1; i < cmd.length; i++) message += cmd[i] + ((i == cmd.length - 1) ? "" : " "); player.setRecovAnswer(message); player.getPackets().sendGameMessage("Your recovery answer has been set to - " + Utils.fixChatMessage(player.getRecovAnswer())); return true; } if (cmd[0].equalsIgnoreCase("teleto") && player.isSup == true) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); if (other == null) return true; player.setNextWorldTile(other); player.stopAll(); return true; } if (cmd[0].equalsIgnoreCase("coords") && player.isSup == true) { player.getPackets().sendGameMessage( "Coords: " + player.getX() + ", " + player.getY() + ", " + player.getPlane() + ", regionId: " + player.getRegionId() + ", rx: " + player.getChunkX() + ", ry: " + player.getChunkY(), true); return true; } if (cmd[0].equalsIgnoreCase("bank") && player.isSup == true) { player.getBank().openBank(); return true; } if (cmd[0].equalsIgnoreCase("recquestion")) { if (player.getRecovQuestion() != null && player.getRights() < 2) { player.getPackets().sendGameMessage("You already have a recovery question set."); return true; } String message = ""; for (int i = 1; i < cmd.length; i++) message += cmd[i] + ((i == cmd.length - 1) ? "" : " "); player.setRecovQuestion(message); player.getPackets().sendGameMessage("Your recovery question has been set to - " + Utils.fixChatMessage(player.getRecovQuestion())); return true; } if (cmd[0].equalsIgnoreCase("empty")) { player.getInventory().reset(); return true; } if (cmd[0].equalsIgnoreCase("screenshot")) { player.getPackets().sendGameMessage( (new StringBuilder(":screenshot:")).toString()); return true; } if (cmd[0].equalsIgnoreCase("ticket")) { if (player.getControlerManager().getControler() != null) { player.getPackets().sendGameMessage("You can't subtime a ticket here."); } if (player.isUsingTicket()) { player.getPackets() .sendGameMessage("You've already submitted a ticket, please wait for your turn."); return true; } player.setUsingTicket(true); player.getPackets().sendGameMessage("Your ticket has been submitted."); for (Player staff : World.getPlayers()) { if (staff.getRights() >= 1) staff.getPackets().sendGameMessage("" + player.getDisplayName() + " has submitted a help ticket. There are now " + getTicketAmount() + " open tickets."); } return true; } if (cmd[0].equalsIgnoreCase("fish")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2590, 3423, 0)); return true; } if (cmd[0].equalsIgnoreCase("theive")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2660, 3308, 0)); player.getPackets().sendGameMessage( "Walk around to start theiving."); return true; } if (cmd[0].equalsIgnoreCase("resetdef")) { player.getSkills().resetSkillNoRefresh(Skills.DEFENCE); player.getSkills().refresh(Skills.DEFENCE); return true; } if (cmd[0].equalsIgnoreCase("resetatt")) { player.getSkills().resetSkillNoRefresh(Skills.ATTACK); player.getSkills().refresh(Skills.ATTACK); return true; } if (cmd[0].equalsIgnoreCase("resetstr")) { player.getSkills().resetSkillNoRefresh(Skills.STRENGTH); player.getSkills().refresh(Skills.STRENGTH); return true; } if (cmd[0].equalsIgnoreCase("taverly")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2884, 9809, 0)); return true; } if (cmd[0].equalsIgnoreCase("slayertower")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3426, 3538, 0)); return true; } if (cmd[0].equalsIgnoreCase("nomad")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3360, 5842, 0)); player.sm("Watch out, hes a sly one this nomad is."); return true; } if (cmd[0].equalsIgnoreCase("icefiends")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2731, 10220, 0)); return true; } if (cmd[0].equalsIgnoreCase("glacors")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(4185, 5734, 0)); return true; } if (cmd[0].equalsIgnoreCase("mine")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3298, 3299, 0)); return true; } if (cmd[0].equalsIgnoreCase("qbd")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3535, 5186, 0)); return true; } if (cmd[0].equalsIgnoreCase("farming")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2816, 3462, 0)); player.sm("Click on the patches, and have either potato, ranarr, guam, kuarm, lantadyme, or torstol seeds."); return true; } if (cmd[0].startsWith("hunt")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2593, 2927, 0)); return true; } if (cmd[0].equalsIgnoreCase("score") || cmd[0].equalsIgnoreCase("kdr")) { double kill = player.getKillCount(); double death = player.getDeathCount(); double dr = kill / death; player.setNextForceTalk(new ForceTalk("<col=ff0000>I'VE KILLED " + player.getKillCount() + " PLAYERS AND BEEN KILLED " + player.getDeathCount() + " TIMES. DR: " + dr)); return true; } if (cmd[0].equalsIgnoreCase("players")) { player.getPackets().sendGameMessage("There are currently " + World.getPlayers().size() + " players playing " + Settings.SERVER_NAME+ "."); return true; } if (cmd[0].equalsIgnoreCase("help")) { player.getInventory().addItem(1856, 1); player.getPackets().sendGameMessage("You receive a guide book about " + Settings.SERVER_NAME + "."); return true; } if (cmd[0].equalsIgnoreCase("title")) { if (Integer.valueOf(cmd[1]) == 31){ player.sm("Thats CrazyX title, dont get near it, hell jack you up."); return true; } if (cmd.length < 2) { player.getPackets().sendGameMessage("Use: ::title id"); return true; } try { player.getAppearence().setTitle(Integer.valueOf(cmd[1])); } catch (NumberFormatException e) { player.getPackets().sendGameMessage("Use: ::title id"); } return true; } if (cmd[0].equalsIgnoreCase("setdisplay")) { String name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); if (name.length() > 12 || name.length() <= 3) { player.getPackets() .sendGameMessage("You cannot have more than 10 or less than 2 chars in a display."); return true; } if (name.contains("#") || name.contains("~") || name.contains("?") || name.contains(":") || name.startsWith(" ") || name.endsWith(" ") || name.contains(" ") || name.endsWith("_") || name.startsWith("_") || name.startsWith(" ") || name.contains("/") || name.contains("/")) { player.getPackets().sendGameMessage("Your name cannot contain illegal characters."); return true; } if (name.equalsIgnoreCase(player.getUsername())) { player.setDisplayName(null); player.getAppearence().generateAppearenceData(); player.getPackets().sendGameMessage("You changed your display name back to default."); return true; } if (SerializableFilesManager.containsPlayer(name) || DisplayName.containsDisplay(name)) { player.getPackets().sendGameMessage("This name has already been taken."); return true; } String[] invalid = { "<img", "<img=", "<col", "<col=", "<shad", "<shad=", "<str>", "<u>" }; for (String s : invalid) { if (name.contains(s)) { name = name.replace(s, ""); player.getPackets().sendGameMessage("You cannot add additional code to your name."); return true; } } Utils.formatPlayerNameForDisplay(name); DisplayName.writeDisplayName(name); player.getPackets().sendGameMessage("You changed your display name to " + name + "."); player.getPackets().sendGameMessage("Remember this can only be done once every 30 days."); player.setDisplayName(name); player.addDisplayTime(2592000 * 1000); player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("blueskin")) { player.getAppearence().setSkinColor(12); player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("dismiss")){ if (player.getPetId() == 0) { return true; } player.getPet().dissmissPet(false); return true; } if (cmd[0].equalsIgnoreCase("greenskin")) { player.getAppearence().setSkinColor(13); player.getAppearence().generateAppearenceData(); return true; } if (cmd[0].equalsIgnoreCase("donatorzone")) { if (!player.isDonator()) { player.getPackets().sendGameMessage("You must be a donator to use this."); return true; } Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3425,3164, 0)); player.getPackets().sendGameMessage( "<col=00ff00>Thanks For Donating, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("home")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3087,3494, 0)); player.getPackets().sendGameMessage( "Welcome Home, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("dicezone")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3161,3434, 0)); player.getPackets().sendGameMessage( "Welcome to dicezone please record all bets, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("clanwarz")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2994,9678, 0)); player.getPackets().sendGameMessage( "Welcome to ClanWars, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("thieve")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2994,9678, 0)); player.getPackets().sendGameMessage( "Welcome to thieving, and clanwars, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("Barrows")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3566,3296, 0)); player.getPackets().sendGameMessage( "Welcome to Barrows, Don't Forget your spade!, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("edge")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3090,3520, 0)); player.getPackets().sendGameMessage( "Welcome to Dangerous 1v1, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("mb")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2537,4715, 0)); player.getPackets().sendGameMessage( "Welcome to MageBank, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("train2")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2870,9852, 0)); player.getPackets().sendGameMessage( "<col=00ff00>Welcome to higher level training, "+player.getDisplayName()); return true; } if (cmd[0].equalsIgnoreCase("1hp")) { player.applyHit(new Hit(player, 980, HitLook.REGULAR_DAMAGE)); return true; } if (cmd[0].equalsIgnoreCase("bosses")){ player.getDialogueManager().startDialogue("TeleportBosses"); } if (cmd[0].equalsIgnoreCase("minigames")){ player.getDialogueManager().startDialogue("TeleportMinigame"); } if (cmd[0].equalsIgnoreCase("nex")) { player.getPackets().sendGameMessage( "<col=DC0000><img=1> Please talk to Mr Ex at home!"); return true; } if (cmd[0].equalsIgnoreCase("corp")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2966,4383, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to Corporal beast! Good luck!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("jad")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2440,5174, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to Tzhaar city, Jad is through the cave!<img=1> "); return true; } if (cmd[0].equals("recieve")) { DonationManager.startProcess(player); } if (cmd[0].startsWith("check")) { player.extraAutoSave(); player.VoteCheck(); } if (cmd[0].equalsIgnoreCase("polypore")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2851,9482, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to the polypore dungeon!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("jadinko")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3011,9275, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to the jadinko lair!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("kq")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3507,9493, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to the Kalphite queen lair!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("bork")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3114,5528, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to the Bork's Hideout!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("nomad")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3086,3933, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to Nomad! Good luck!<img=1> "); return true; } if (cmd[0].equalsIgnoreCase("multi")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3240,3611, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1>Welcome to Multi PVP area! "); return true; } if (cmd[0].equalsIgnoreCase("pvp")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3081,3523, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1> Welcome to PVP!"); return true; } if (cmd[0].equalsIgnoreCase("easts")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3360,3658, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1> Welcome to Easts PVP!"); return true; } if (cmd[0].equalsIgnoreCase("sw")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2442,3090, 0)); player.getPackets().sendGameMessage( "<col=000079><img=1> Welcome to SoulWars!"); return true; } if (cmd[0].equalsIgnoreCase("dungeon")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3450,3720, 0)); return true; } if (cmd[0].equalsIgnoreCase("train")) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2673, 3709, 0)); player.getPackets().sendGameMessage( "<col=000079><img=4>Welcome to Training!"); } if (cmd[0].equalsIgnoreCase("highscores")) { player.getPackets().sendExecMessage("cmd.exe /c start " + Settings.HIGHSCORES_LINK); return true; } if (cmd[0].equalsIgnoreCase("vote")) { player.getPackets().sendExecMessage("cmd.exe /c start " + Settings.VOTE_LINK); return true; } if (cmd[0].equalsIgnoreCase("itemdb") && player.getRights() == 7) { player.getPackets().sendExecMessage("cmd.exe /c start " + Settings.ITEMDB_LINK); return true; } if (cmd[0].equalsIgnoreCase("itemlist") && player.getRights() == 7) { player.getPackets().sendExecMessage("cmd.exe /c start " + Settings.ITEMLIST_LINK); return true; } if (cmd[0].equalsIgnoreCase("wiki")) { player.getPackets().sendExecMessage("cmd.exe /c start " + Settings.WIKI_LINK); return true; } if (cmd[0].equalsIgnoreCase("xpoff")) { player.xpLock = true; return true; } if (cmd[0].equalsIgnoreCase("xpon")) { player.xpLock = false; return true; } if (cmd[0].equalsIgnoreCase("commands") || cmd[0].equalsIgnoreCase("cmd")){ player.getInterfaceManager().sendInterface(275); for (int i = 0; i < 316; i++){ player.getPackets().sendIComponentText(275, i, " "); } player.getPackets().sendIComponentText(275, 2, "CrazyX Commands"); player.getPackets().sendIComponentText(275, 14, "GoTo Website"); player.getPackets().sendIComponentText(275, 16, "----------------"); player.getPackets().sendIComponentText(275, 17, "-Pking COMMANDS-"); player.getPackets().sendIComponentText(275, 18, "----------------"); player.getPackets().sendIComponentText(275, 19, "::hybrid"); player.getPackets().sendIComponentText(275, 20, "::mage"); player.getPackets().sendIComponentText(275, 21, "::melee"); player.getPackets().sendIComponentText(275, 22, "::range"); player.getPackets().sendIComponentText(275, 23, "::puremelee"); player.getPackets().sendIComponentText(275, 24, "::purerange"); player.getPackets().sendIComponentText(275, 25, "::puremage"); player.getPackets().sendIComponentText(275, 26, "::edge"); player.getPackets().sendIComponentText(275, 27, "::wests"); player.getPackets().sendIComponentText(275, 35, "---------------"); player.getPackets().sendIComponentText(275, 36, "-Boss Commands-"); player.getPackets().sendIComponentText(275, 37, "---------------"); player.getPackets().sendIComponentText(275, 39, "::kq "); player.getPackets().sendIComponentText(275, 40, "::bork "); player.getPackets().sendIComponentText(275, 41, "::polypore "); player.getPackets().sendIComponentText(275, 42, "::jadinko "); player.getPackets().sendIComponentText(275, 43, "::jad "); player.getPackets().sendIComponentText(275, 44, "::corp "); player.getPackets().sendIComponentText(275, 45, "::nomad "); player.getPackets().sendIComponentText(275, 50, "-----------"); player.getPackets().sendIComponentText(275, 51, "-Teleports-"); player.getPackets().sendIComponentText(275, 52, "-----------"); player.getPackets().sendIComponentText(275, 54, "::brimhaven "); player.getPackets().sendIComponentText(275, 55, "::train "); player.getPackets().sendIComponentText(275, 56, "::train2 "); player.getPackets().sendIComponentText(275, 57, "::bosses "); player.getPackets().sendIComponentText(275, 58, "::minigames "); player.getPackets().sendIComponentText(275, 59, "::taverly "); player.getPackets().sendIComponentText(275, 60, "::icefiends "); player.getPackets().sendIComponentText(275, 61, "::slayertower "); player.getPackets().sendIComponentText(275, 62, "::glacors "); player.getPackets().sendIComponentText(275, 63, "::clanwarz "); player.getPackets().sendIComponentText(275, 70, "-------------------"); player.getPackets().sendIComponentText(275, 71, "-Skilling Commands-"); player.getPackets().sendIComponentText(275, 72, "-------------------"); player.getPackets().sendIComponentText(275, 73, "::theive "); player.getPackets().sendIComponentText(275, 74, "::mine "); player.getPackets().sendIComponentText(275, 75, "::fish "); player.getPackets().sendIComponentText(275, 76, "::dungeon "); player.getPackets().sendIComponentText(275, 77, "::farming "); player.getPackets().sendIComponentText(275, 78, "::thieving "); player.getPackets().sendIComponentText(275, 79, "::farming "); player.getPackets().sendIComponentText(275, 85, "--------------------------"); player.getPackets().sendIComponentText(275, 86, "-Other Help Full Commands-"); player.getPackets().sendIComponentText(275, 87, "--------------------------"); player.getPackets().sendIComponentText(275, 88, "::yell "); player.getPackets().sendIComponentText(275, 89, "::ChangePass "); player.getPackets().sendIComponentText(275, 90, "::vote "); player.getPackets().sendIComponentText(275, 91, "::check "); player.getPackets().sendIComponentText(275, 92, "::commands/cmd "); player.getPackets().sendIComponentText(275, 93, "::players "); player.getPackets().sendIComponentText(275, 94, "::xpoff/xpon "); } if (cmd[0].equals("beard")) { PlayerLook.openBeardInterface(player); return true; } if (cmd[0].equalsIgnoreCase("spade")) { player.getInventory().addItem(952, 1); // spade for barrows return true; } if (cmd[0].equalsIgnoreCase("changepassword")) { if (cmd[1].length() > 15) { player.getPackets().sendGameMessage("You cannot set your password to over 15 chars."); return true; } player.setPassword(cmd[1]); player.getPackets().sendGameMessage("You changed your password! Your password is " + cmd[1] + "."); } if (cmd[0].equalsIgnoreCase("yell")) { String message = ""; for (int i = 1; i < cmd.length; i++) message += cmd[i] + ((i == cmd.length - 1) ? "" : " "); sendYell(player, Utils.fixChatMessage(message), false); return true; } if (cmd[0].equalsIgnoreCase("hometest")) { player.getCutscenesManager().play(new HomeCutScene()); return true; } } return true; } public static void archiveLogs(Player player, String[] cmd) { try { if (player.getRights() < 1) return; String location = ""; if (player.getRights() == 2) { location = "data/logs/admin/" + player.getUsername() + ".txt"; } else if (player.getRights() == 1) { location = "data/logs/mod/" + player.getUsername() + ".txt"; } String afterCMD = ""; for (int i = 1; i < cmd.length; i++) afterCMD += cmd[i] + ((i == cmd.length - 1) ? "" : " "); BufferedWriter writer = new BufferedWriter(new FileWriter(location, true)); writer.write("[" + now("dd MMMMM yyyy 'at' hh:mm:ss z") + "] - ::" + cmd[0] + " " + afterCMD); writer.newLine(); writer.flush(); writer.close(); } catch (IOException e) { e.printStackTrace(); } } public static String now(String dateFormat) { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); return sdf.format(cal.getTime()); } private Commands() { } }[/CODE]
  21. while opening the client i get this error ... [img]http://www.upload.ee/image/3419969/client_error.png[/img] can some1 help me plz?
  22. is there anyone who can do this for me for free? please or message me on skype how much u charge skype - ish3zz
  23. can anyone link me to new interfaces and sprites please or send me over Skype - ish3zz
  24. Okey guys, im new to coding and i've used ''Deathlypvpz source and client'' its a (PI) source. I tried to add drops to barrows cuzz i moved them and want em to drop barrow items instead of getting 5Kc and do it over and over again. This is the barrows for now : - [url]http://prntscr.com/1507g5[/url] Okey these are my Npc drop files. - [url]http://prntscr.com/1507v1[/url] Honestly i've tried alot already, i have no idea whats wrong. If you want to help me, reply here or add me on skype : nielskeeeeeeeen I also have team viewer if needed.
  25. I want the serenity RSPS fully functional and working on my server, I've run out of time to wait add tru.da.sav on skype if interested
×