Jump to content

Search the Community

Showing results for tags 'urgent'.



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

  1. jarrodboydtehe

    Help urgent

    if (playerCommand.startsWith("item")) { if (c.inWild()) { c.sendMessage("you can't spawn items in the wilderness!"); return; } try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); // add restricted items here. int restrictedItems[] = {1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1053, 1054, 1055, 1056, 1057, 1058, 1050, 1051, 14484, 11694, 11695, 11696, 11697, 11698, 11699, 11700, 11701, 13450, 13451, 13452, 13453, 11702, 11703, 11704, 11705, 11706, 11707, 11708, 11709, 13740, 13741, 13748, 13749, 13734, 13735, 13736, 13737, 13738, 13739, 13742, 13743, 13744, 13745, 13887, 13888, 13889, 13893, 13894, 13895, 13899, 13900, 13901, 13905, 13906, 13907, 13911, 13912, 13913, 13917, 13918, 13919, 13923, 13924, 13925, 13929, 13930, 13931, 13870, 13871, 13872, 13873, 13874, 13875, 13876, 13877, 13878, 13879, 13880, 13881, 13882, 13883, 13944, 13945, 13946, 13947, 13948, 13949, 13950, 13951, 13952, 13953, 13954, 13955,13956, 13957, 13884, 13885, 13886, 13890, 13891, 13892, 13896, 13897, 13898, 13902, 13903, 13904, 13908, 13909, 13910, 13914, 13915, 13916, 13920, 13921, 13922, 13926, 13927, 13928, 13858, 13859, 13860, 13861, 13862, 13863, 13864, 13865, 13866, 13867, 13868, 13869, 13932, 13933, 13934, 13935, 13936, 13937, 13938, 13939, 13940, 13941, 13942, 13942, 13943, 2570, 2571, 14642, 14645, 15433, 15435, 15474, 14641, 15432, 15434, 11728, 11729, 13460, 15328, 15329, 15330, 15331, 15332, 15333, 15334, 15335, 15773, 15774, 15818, 15888, 15889, 15890, 15891, 15924, 15935, 15946, 16001, 16023, 16034, 16045, 16090, 16126, 16137, 16152, 16184, 16206, 16217, 16258, 16259, 16260, 16261, 16272, 16293, 16294, 16315, 16316, 16359, 16360, 16381, 16382, 16403, 16404, 16425, 16426, 16667, 16668, 16689, 16690, 16711, 16712, 16733, 16734, 16837, 16838, 16839, 16840, 16841, 16842, 16843, 16844, 16909, 16910, 16955, 16956, 17039, 17040, 17143, 17144, 17145, 17146, 17147, 17148, 17149, 17150, 17259, 17260, 17361, 17362, 20822, 20823, 20824, 20825, 20826, 20833, 13362, 13358, 13360, 13355, 13354, 13352, 13350, 13348, 13346, 18786, 19780, 19784, }; for (int i : restrictedItems) { if (i == newItemID) { if (c.playerRights == 2 && c.isDonator >= 0) { c.sendMessage("You cannot spawn this item"); return; } } } if ((newItemID <= 30000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("You can't spawn this item!"); } } else { c.sendMessage("Wrong usage: (Ex:(::item_ID_Amount)(::item 995 1))"); } } catch(Exception e) { } } Is the code I have know for a pk based server I'm making but if you're a normal player you can spawn the items in restricted items I came here looking for a fix? Base Is InsidiaX V2 [PI] 317 PLEASE HELP
  2. jarrodboydtehe

    Help!

    I know wrong section blahblah but really isn't any section for it I activated my email but I can't reply to threads says my accs still locked because next to welcome there's a padlock?
  3. Hello, Im new to the life of java and RSPS so please don't go mad at me :P Basically i have been trying to portforward a PI source/client so that me and my friends can play on it, i have been trying to portforward for a week but somehow i am not unable to, can someone help me i have TV (Teamviewer). I also wanted help on another thing; Everytime i download any source/client it never lets me log in, it always says, "Error connecting to server" or "No response - please try a different world" I am using Windows 7 not that this has anything to do with the matter but someone told me that i am unable to portforward, are they right? Thanks for reading.
  4. Hello, Im new to the life of java and RSPS so please don't go mad at me :P Basically i have been trying to portforward a PI source/client so that me and my friends can play on it, i have been trying to portforward for a week but somehow i am not unable to, can someone help me i have TV (Teamviewer). I also wanted help on another thing; Everytime i download any source/client it never lets me log in, it always says, "Error connecting to server" or "No response - please try a different world" I am using Windows 7 not that this has anything to do with the matter but someone told me that i am unable to portforward, are they right? Thanks for reading.
  5. kuzbear

    urgent 562/668 help

    hey guys so i need help with this. when either a mod/sponsor/donator/normal player use a command. it activates a different one. this is also happened when i used yell it would open the bank so i just deleted the bank command. please if someone could take a look at my commandsPacketHandler.java file and see if they can spot anything that would be great thanks. also lately when ever i use a command like ::hunt it will activate ::corp :/ most commands now lead to corp :/ [CODE]package com.rs2hd.packethandler; import com.rs2hd.GameEngine; import com.rs2hd.Server; 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.net.Packet; import com.rs2hd.script.ScriptManager; import com.rs2hd.util.Censor; import com.rs2hd.io.XStreamPlayerLoader; import com.rs2hd.util.Misc; import com.rs2hd.update.*; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.rs2hd.util.XStreamUtil; import com.thoughtworks.xstream.XStream; /** * Handles any commands sent to the client. * @author kuzbear * */ public class CommandsPacketHandler { public void handlePacket(final Player player,Packet packet, String command) { String[] cmd = command.split(" "); cmd[0] = cmd[0].toLowerCase(); try { if(cmd[0].equals("::forum")) { player.sm(":url: http://www.corruptedforums.com"); } if(cmd[0].equals("::vote")) { player.sm(":url: http://www.corruptedforums.com/vote.html"); } if(cmd[0].equals("::redeem") || cmd[0].equals("::claim")) { player.checkVote(player.getUsername(), player.getSession().getRemoteAddress().toString().substring(1).split(":")[0]); } if(cmd[0].equals("::nex") && player.donator == 1 || player.sponsor == 1 || player.gfx == 1 || player.mod == 1) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2925, 5203, 0, 0); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2925, 5203, 0, 0); } else { player.getTele().telePlayer(player, 2925, 5203, 0, 0); } } if(cmd[0].equals("::home")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player, 3087, 3488, 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player, 3087, 3488, 0, 2); } else { player.getTele().telePlayer(player, 3087, 3488, 0, 0); } } if(cmd[0].equals("::teletome") && player.main == 0 && player.rights == 1 && Location.wildernessLevel(player.getLocation()) > 0) { player.getActionSender().sendMessage("You cannot teleport someone into wildernis!"); return; } if (cmd[0].equals("::teletome") && player.main == 0 && player.rights == 1 && player.getLocation().getClanLevel() > 0) { player.getActionSender().sendMessage("You cannot teleport someone into clan wars!"); return; } if(cmd[0].equals("::teleto") && player.main == 0 && player.rights == 1 && Location.wildernessLevel(player.getLocation()) > 0) { player.getActionSender().sendMessage("You cannot teleport to someone in the wildernis!"); return; } if (cmd[0].equals("::teleto") && player.main == 0 && player.rights == 1 && player.getLocation().getClanLevel() > 0) { player.getActionSender().sendMessage("You cannot teleport to someone in clan wars!"); return; } if(cmd[0].startsWith("::players")){ int number = 0; for(int i = 0; i < 316; i++) { player.getActionSender().sendString("",275,i); } for(Player p5 : World.getWorld().getPlayers()) { if(p5 == null) continue; number++; String titles = ""; if (p5.player == 1) { titles = "<col=000000>"; } if (p5.donator == 1 && player.sponsor == 0 && player.gfx == 0 && player.mod == 0 && player.admin == 0 && player.owner == 0 && player.main == 0) { titles = "<shad=000000><col=8b3ae6>[Donator]"; } if (p5.mod == 1 && p5.donator == 1 && p5.sponsor == 1) { titles = "<shad=000000><col=f5cc0a>[Moderator]<img=0>"; } if (p5.mod == 1 && p5.donator == 1 && p5.sponsor == 1 && player.getUsername().equals("sabre lord")) { titles = "<shad=000000><col=f5cc0a>[Head Moderator]<img=0>"; } if (p5.admin == 1 && p5.donator == 1 && p5.sponsor == 1) { titles = "<shad=000000><col=00ff00>[Admin]<img=1>"; } if (p5.admin == 1 && p5.donator == 1 && p5.sponsor == 1 && player.getUsername().equals("")) { titles = "<shad=000000><col=00ff00>[Head Admin]<img=1>"; } if (p5.coowner == 1 && p5.donator == 1 && p5.sponsor == 1) { titles = "<shad=f11><col=FF0000>[Co Owner]<img=1>"; } if (p5.owner == 1 && p5.donator == 1 && p5.sponsor == 1) { titles = "<shad=f11><col=FF0000>[Owner]<img=1>"; } if (p5.main == 1 && p5.donator == 1 && p5.sponsor == 1 && player.getUsername().equals("kuzbear") || player.getUsername().equals("kuzbear7")) { titles = "<shad=f11><col=FF0000>[Main Owner]<img=1>"; } if(p5.sponsor == 1 && p5.donator == 1 && player.mod == 0 && player.admin == 0 && player.owner == 0 && player.main == 0) { titles = "<shad=000000><col=3dddd8>[Sponsor]"; } if (p5.getRights() == 4) { titles = "<col=000000>"; } player.getActionSender().sendString("("+p5.getIndex()+")" + titles + ""+ Misc.optimizeText(p5.getPlayerDetails().getUsername()) + " Combat: " + p5.getSkills().getCombatLevel(), 275, (16+number)); } player.getActionSender().sendString("<u=000080>Corruption Players</u>",275,14); player.getActionSender().sendString("Players Online: "+number, 275, 16); player.getActionSender().sendString("Player's Online", 275, 2); player.forceChat("<col=ffffff>There are currently [ <col=00ffff>"+number+"<col=ffffff> ] players playing Corruption"); player.getActionSender().sendInterface(275, false); } if(cmd[0].equals("::pkshopprices")) { player.getActionSender().sendInterface(275, false); for(int i = 0; i < 316; i++) { player.getActionSender().sendString("",275,i); } player.getActionSender().sendString("<col=ff0000><shad=000000>Corruption Pk Shop Prices", 275, 2); player.getActionSender().sendString("<img=1>Dark Bow - 125 Pk Points<img=1>", 275, 16); player.getActionSender().sendString("<img=1>Bandos Chestplate - 200 Pk Points<img=1>", 275, 17); player.getActionSender().sendString("<img=1>Armadyl Godsword - 100 Pk Points<img=1>", 275, 18); player.getActionSender().sendString("<img=1>Abyssal Whip - 15 Pk Points<img=1>", 275, 19); player.getActionSender().sendString("<img=1>Vesta Longsword - 50 Pk Points<img=1>", 275, 20); player.getActionSender().sendString("<img=1>Fire Cape - 150 Pk Points<img=1>", 275, 21); player.getActionSender().sendString("<img=1>Dragonfire Shield - 120 Pk Points<img=1>", 275, 22); player.getActionSender().sendString("<img=1>Bandos Tassets - 200 Pk Points<img=1>", 275, 23); player.getActionSender().sendString("<img=1>Bandos Boots - 100 Pk Points<img=1>", 275, 24); player.getActionSender().sendString("<img=1>Dragon Claws - 150 Pk Points<img=1>", 275, 25); } if(cmd[0].equals("::donatorinfo") && player.donator == 1) { player.getActionSender().sendInterface(275, false); for(int i = 0; i < 316; i++) { player.getActionSender().sendString("",275,i); } player.getActionSender().sendString("<col=ff0000><shad=000000>Donator Info", 275, 2); } if(cmd[0].equals("::backup")) { XStream xstream = XStreamUtil.getXStream(); xstream.toXML(player, new FileOutputStream("data/backups/"+player.getPlayerDetails().getUsername()+".xml")); player.sm("Succesfully make a backup of "+player.getDisplayName()+"."); } if(cmd[0].equals("::hunt")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2340, 3541 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2340, 3541 , 0, 2); } else { player.getTele().telePlayer(player, 2340, 3541, 0, 0); } } if(cmd[0].equals("::kq")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3494, 9509 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3494, 9509 , 0, 2); } else { player.getTele().telePlayer(player, 3494, 9509, 0, 0); } } if(cmd[0].equals("::summon")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2207, 5346 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2207, 5346 , 0, 2); } else { player.getTele().telePlayer(player, 2207, 5346, 0, 0); } } if(cmd[0].equals("::bh")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3164, 3680 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3164, 3680 , 0, 2); } else { player.getTele().telePlayer(player, 3164, 3680, 0, 0); } } if(cmd[0].equals("::train")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2710, 3710 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2710, 3710 , 0, 2); } else { player.getTele().telePlayer(player, 2710, 3710, 0, 0); } } if(cmd[0].equals("::dags")) { player.sm("The dags have been deleted to dungeoniring NPCs the new command is: ::dungeon."); } if(cmd[0].equals("::dungeon")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2911 ,4449 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2911 ,4449 , 0, 2); } else { player.getTele().telePlayer(player, 2911 ,4449, 0, 0); } } if(cmd[0].equals("::ulfric")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2565 ,9911 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2565 ,9911 , 0, 2); } else { player.getTele().telePlayer(player, 2565 ,9911, 0, 0); } } if(cmd[0].equals("::castlewars")) { player.sm("<col=CC3300><shad=000000>You Are Teleported To Castlewars, Enter A Portal To Play!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2442 ,3089 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2442 ,3089 , 0, 2); } else { player.getTele().telePlayer(player, 2442 ,3089, 0, 0); } } if(cmd[0].equals("::skills")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3475 ,9807 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3475 ,9807 , 0, 2); } else { player.getTele().telePlayer(player, 3475 ,9807, 0, 0); } } if(cmd[0].equals("::smith")) { player.getInventory().addItem(2347, 1); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3474 ,9804 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3474 ,9804 , 2, 2); } else { player.getTele().telePlayer(player, 3474 ,9804, 2, 0); } } if(cmd[0].equals("::elites")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2500 ,2827 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2500 ,2827 , 0, 2); } else { player.getTele().telePlayer(player, 2500 ,2827, 0, 0); } } if(cmd[0].equals("::jdemon")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2715 ,9161 , 1, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2715 ,9161 , 1, 2); } else { player.getTele().telePlayer(player, 2715 ,9161, 1, 0); } } if(cmd[0].equals("::damis")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3165 ,3490 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3165 ,3490 , 2, 2); } else { player.getTele().telePlayer(player, 3165 ,3490, 2, 0); } } if(cmd[0].equals("::pc")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2658 ,2660 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2658 ,2660 , 0, 2); } else { player.getTele().telePlayer(player, 2658 ,2660, 0, 0); } } if(cmd[0].equals("::pits")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2399 ,5178 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2399 ,5178 , 0, 2); } else { player.getTele().telePlayer(player, 2399 ,5178, 0, 0); } } if(cmd[0].equals("::dung")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2710 ,9466 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2710 ,9466 , 0, 2); } else { player.getTele().telePlayer(player, 2710 ,9466, 0, 0); } } if(cmd[0].equals("::kkk")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3108 ,3933 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3108 ,3933 , 0, 2); } else { player.getTele().telePlayer(player, 3108 ,3933 , 0, 0); } } if(cmd[0].equals("::rc")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3218 ,3082 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3218 ,3082 , 0, 2); } else { player.getTele().telePlayer(player, 3218 ,3082 , 0, 0); } } if(cmd[0].equals("::demon")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2085 ,4464 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2085 ,4464 , 0, 2); } else { player.getTele().telePlayer(player, 2085 ,4464, 0, 0); } } if(cmd[0].equals("::sc")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3056 ,4973 , 1, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3056 ,4973 ,1, 2); } else { player.getTele().telePlayer(player, 3056 ,4973 , 1, 0); } } if(cmd[0].equals("::pq")) { player.sm("<col=00FFAA>Climb Down The Ladder To Get To Penance Queen."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2532 ,3570 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2532 ,3570 , 0, 2); } else { player.getTele().telePlayer(player, 2532 ,3570, 0, 0); } } if(cmd[0].equals("::bando")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3062,3889 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3062,3889 , 0, 2); } else { player.getTele().telePlayer(player, 3062,3889, 0, 0); } } if(cmd[0].equals("::slashbash")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2927 ,3806 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2927 ,3806 , 0, 2); } else { player.getTele().telePlayer(player, 2927 ,3806, 0, 0); } } if(cmd[0].equals("::barrel")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2600,4778 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2600,4778 , 0, 2); } else { player.getTele().telePlayer(player, 2600,4778, 0, 0); } } if(cmd[0].equals("::bal")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2455, 10152 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2455, 10152 , 0, 2); } else { player.getTele().telePlayer(player, 2455, 10152 , 0, 0); } } if(cmd[0].equals("::stq")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2794 ,3322 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2794 ,3322 , 0, 2); } else { player.getTele().telePlayer(player, 2794 ,3322 , 0, 0); } } if(cmd[0].equals("::iceking")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2795 ,3729 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2795 ,3729 , 0, 2); } else { player.getTele().telePlayer(player, 2795 ,3729 , 0, 0); } } if(cmd[0].equals("::court")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2400 ,9608 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2400 ,9608 , 0, 2); } else { player.getTele().telePlayer(player, 2400 ,9608 , 0, 0); } } if(cmd[0].equals("::boss")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2476 ,9679 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2476 ,9679 , 0, 2); } else { player.getTele().telePlayer(player, 2476 ,9679 , 0, 0); } } if(cmd[0].equals("::boss2")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3415 ,9867 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3415 ,9867 , 2, 2); } else { player.getTele().telePlayer(player, 3415 ,9867 , 2, 0); } } if(cmd[0].equals("::mole")) { player.getTele().ancientTelePlayer(player,3287 ,9831 , 0, 2); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3287 ,9831 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3287 ,9831 , 0, 2); } else { player.getTele().telePlayer(player, 3287 ,9831 , 0, 0); } } if(cmd[0].equals("::skele")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,21895 ,5355 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,1895 ,5355 , 2, 2); } else { player.getTele().telePlayer(player, 1895 ,5355 , 2, 0); } } if(cmd[0].equals("::afk")) { player.animate(4117); player.getUpdateFlags().setForceTextUpdateRequired(true); player.forceChat("i'm afk!"); } if(cmd[0].equals("::barrows")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3565 ,3306 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3565 ,3306 , 0, 2); } else { player.getTele().telePlayer(player, 3565 ,3306 , 0, 0); } } if(cmd[0].equals("::tarn")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3038 ,9880 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3038 ,9880 , 0, 2); } else { player.getTele().telePlayer(player, 3038 ,9880 , 0, 0); } } if(cmd[0].equals("::phoenix")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2850 ,9636 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2850 ,9636 , 0, 2); } else { player.getTele().telePlayer(player, 2850 ,9636 , 0, 0); } } if(cmd[0].equals("::bele")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2540 ,5778 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2540 ,5778 , 0, 2); } else { player.getTele().telePlayer(player, 2540 ,5778 , 0, 0); } } if(cmd[0].equals("::frosts")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2644 ,9533 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2644 ,9533 , 0, 2); } else { player.getTele().telePlayer(player, 2644 ,9533 , 0, 0); } } if(cmd[0].equals("::chill")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2643 ,4035 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2643 ,4035 , 0, 2); } else { player.getTele().telePlayer(player, 2643 ,4035 , 0, 0); } } if(cmd[0].equals("::drags")) { player.getActionSender().sendMessage("You Teleported to the dragons area! GL, you'll need it!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2279 ,3334 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2279 ,3334 , 0, 2); } else { player.getTele().telePlayer(player, 2279 ,3334 , 0, 0); } } if(cmd[0].equals("::bandos")) { player.getActionSender().sendMessage("The Bandos boss drops Bandos armour."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2870 ,5359 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2870 ,5359 , 2, 2); } else { player.getTele().telePlayer(player,2870 ,5359 , 2, 0); } } if(cmd[0].equals("::zammy")) { player.getTele().ancientTelePlayer(player,2926 ,5325 , 2, 2); player.getActionSender().sendMessage("The Zamorak boss drops god shards and zammy hilt."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2926 ,5325 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2926 ,5325 , 2, 2); } else { player.getTele().telePlayer(player, 2926 ,5325 , 2, 0); } } if(cmd[0].equals("::sara")) { player.getActionSender().sendMessage("The Saradomin boss drops god shards and sara hilt"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2901,5265 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2901,5265 , 0, 2); } else { player.getTele().telePlayer(player, 2901,5265 , 0, 0); } } if(cmd[0].equals("::armadyl")) { player.getActionSender().sendMessage("The Armadyl boss drops Armadyl armour."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2833 ,5302 , 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2833 ,5302 , 2, 2); } else { player.getTele().telePlayer(player, 2833 ,5302 , 2, 0); } } if(cmd[0].equals("::acav")) { player.getTele().ancientTelePlayer(player,1775 ,5354 , 0, 2); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,1775 ,5354 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,1775 ,5354 , 0, 2); } else { player.getTele().telePlayer(player, 1775 ,5354 , 0, 0); } } if(cmd[0].equals("::torm")) { player.sm("You Teleported to the tormented demon cavern!."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3239 ,9570 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3239 ,9570 , 0, 2); } else { player.getTele().telePlayer(player, 3239 ,9570 , 0, 0); } } if(cmd[0].equals("::wyvern")) { player.sm("<col=33FFFF>Welcome To The Skeletal Wyverns"); player.sm("<col=33FFFF>Drops Are...White Armour, Elegant, Shields And God Capes"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3060 ,9543 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3060 ,9543 , 0, 2); } else { player.getTele().telePlayer(player, 3060 ,9543 , 0, 0); } } if(cmd[0].equals("::lesser")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2835 ,9565 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2835 ,9565 , 0, 2); } else { player.getTele().telePlayer(player, 2835 ,9565 , 0, 0); } } if(cmd[0].equals("::garden")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2913, 5472 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2913, 5472 , 0, 2); } else { player.getTele().telePlayer(player, 2913, 5472 , 0, 0); } } if(cmd[0].equals("::event")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2943 ,4381 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2943 ,4381 , 0, 2); } else { player.getTele().telePlayer(player, 2943 ,4381 , 0, 0); } } if(cmd[0].equals("::mine")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3300 ,3313 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3300 ,3313 , 0, 2); } else { player.getTele().telePlayer(player, 3300 ,3313 , 0, 0); } } if(cmd[0].equals("::farm")) { player.sm("<col=00ff00>Welcome To Farm. Pickpocket The Farmer For Seeds."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2812 ,3464 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2812 ,3464 , 0, 2); } else { player.getTele().telePlayer(player, 2812 ,3464 , 0, 0); } } if(cmd[0].equals("::sw")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,1893, 3178 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,1893, 3178 , 0, 2); } else { player.getTele().telePlayer(player, 1893, 3178 , 0, 0); } } if(cmd[0].equals("::bork")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3106, 5531 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3106, 5531 , 0, 2); } else { player.getTele().telePlayer(player, 3106, 5531 , 0, 0); } } if(cmd[0].equals("::wc")) { player.sm("Good luck with traing woodcutting!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2725 ,3491 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2725 ,3491 , 0, 2); } else { player.getTele().telePlayer(player, 2725 ,3491 , 0, 0); } } if(cmd[0].equals("::agility")) { player.sm("please note that not all of this area is mapped."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2700 ,5201 , 3, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2700 ,5201 , 3, 2); } else { player.getTele().telePlayer(player, 2700 ,5201 , 3, 0); } } if(cmd[0].equals("::jad")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2373, 5115 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2373, 5115 , 0, 2); } else { player.getTele().telePlayer(player, 2373, 5115 , 0, 0); } } if(cmd[0].equals("::gw")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2871, 5318, 2, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2871, 5318, 2, 2); } else { player.getTele().telePlayer(player, 2871, 5318, 2, 0); } } if(cmd[0].equals("::kbd")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2273, 4680 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2273, 4680 , 0, 2); } else { player.getTele().telePlayer(player, 2273, 4680 , 0, 0); } } if(cmd[0].equals("::slayertower")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3429, 3538 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3429, 3538 , 0, 2); } else { player.getTele().telePlayer(player, 3429, 3538 , 0, 0); } } if(cmd[0].equals("::clanwars")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3273 ,3686 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3273 ,3686 , 0, 2); } else { player.getTele().telePlayer(player, 3273 ,3686 , 0, 0); } } if(cmd[0].equals("::corp") && player.donator == 1 || player.sponsor == 1 || player.gfx == 1 || player.mod == 1) { player.sm("<col=00ff33>Use A Sigil On A Blessed Shield To make Spirit Shields"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2885, 4373 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2885, 4373 , 0, 2); } else { player.getTele().telePlayer(player, 2885, 4373 , 0, 0); } } if(cmd[0].equals("::ele")) { player.sm("To exit this area click on the obelisk."); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3298, 3913 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3298, 3913 , 0, 2); } else { player.getTele().telePlayer(player, 3298, 3913 , 0, 0); } } if(cmd[0].equals("::fish")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2924, 3173 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2924, 3173 , 0, 2); } else { player.getTele().telePlayer(player, 2924, 3173 , 0, 0); } } if(cmd[0].equals("::cook")) { player.sm("Cooking has been moved do ::skills"); } if(cmd[0].equals("::td")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2744, 9102 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2744, 9102 , 0, 2); } else { player.getTele().telePlayer(player, 2744, 9102 , 0, 0); } } if(cmd[0].equals("::easts")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3347, 3686 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3347, 3686 , 0, 2); } else { player.getTele().telePlayer(player, 3347, 3686 , 0, 0); } } if(cmd[0].equals("::pvp")) { if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3086 ,3520 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3086 ,3520 , 0, 2); } else { player.getTele().telePlayer(player, 3086 ,3520 , 0, 0); } } if(cmd[0].startsWith("::mute")){ if (player.getRights() <= 0) return; String ban = command.substring((command.indexOf(" ") + 1)); player.getActionSender().sendMessage((new StringBuilder()).append("You have muted ").append(ban).toString()); final Player p = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(ban)); if(p != null) { player.graphics(726, 0); player.animate(4410, 0); player.setLastChatMessage(new ChatMessage(0, 70, "Taste muteness "+p.getDisplayName())); player.getUpdateFlags().setChatTextUpdateRequired(true); p.MuteTime = 18000; XStreamPlayerLoader.punish.writeTo(player.getUsername() + " has muted " + p.getUsername(), "data/text/modlogs"); } } /*if(cmd[0].startsWith("::ipmute") && player.mod == 1){ if (player.getRights() <= 0) return; String ban = command.substring((command.indexOf(" ") + 1)); player.getActionSender().sendMessage((new StringBuilder()).append("You have ipmuted ").append(ban).toString()); final Player p = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(ban)); if(p != null) { Server.getFirewall().ipmutePlayer(p); XStreamPlayerLoader.punish.writeTo(player.getUsername() + " has ip muted " + p.getUsername() + ":" + p.getSession().getRemoteAddress(), "data/text/modlogs"); } } if(cmd[0].startsWith("::unipmute") && player.mod == 1){ if (player.getRights() <= 0) return; String ban = command.substring((command.indexOf(" ") + 1)); player.getActionSender().sendMessage((new StringBuilder()).append("You have unipmuted ").append(ban).toString()); final Player p = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(ban)); if(p != null) { Server.getFirewall().unipmutePlayer(p); } }*/ if(cmd[0].equals("::unmute") && player.mod == 1) { if (player.getRights() <= 0) return; String ban = command.substring((command.indexOf(" ") + 1)); player.getActionSender().sendMessage((new StringBuilder()).append("You have unmuted ").append(ban).toString()); final Player p = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(ban)); p.muted = false; p.MuteTime = 0; } if(cmd[0].equals("::suggest")) { String pww = command.substring((command.indexOf(" ") + 1)); XStreamPlayerLoader.punish.writeTo(player.getUsername()+" = "+pww, "./data/text/suggestions"); player.sm("your suggestion has been sent."); } if(cmd[0].equals("::commands")) { player.getActionSender().sendInterface(275, false); for(int i = 0; i < 316; i++) { player.getActionSender().sendString("",275,i); } player.getActionSender().sendString("Corruption Commands", 275, 2); player.getActionSender().sendString("* Commands *", 275, 16); player.getActionSender().sendString("::yell", 275, 17); player.getActionSender().sendString("::changepass", 275, 18); player.getActionSender().sendString("::players", 275, 19); player.getActionSender().sendString("::empty", 275, 20); player.getActionSender().sendString("::backup", 275, 21); player.getActionSender().sendString("", 275, 22); player.getActionSender().sendString("* Monster Teleports *", 275, 23); player.getActionSender().sendString("::bele", 275, 24); player.getActionSender().sendString("::phoenix", 275, 25); player.getActionSender().sendString("::bando", 275, 26); player.getActionSender().sendString("::bandos", 275, 27); player.getActionSender().sendString("::sara", 275, 28); player.getActionSender().sendString("::zammy", 275, 29); player.getActionSender().sendString("::armadyl", 275, 30); player.getActionSender().sendString("::bork", 275, 31); player.getActionSender().sendString("::jad", 275, 32); player.getActionSender().sendString("::barrel", 275, 33); player.getActionSender().sendString("::barrows", 275, 34); player.getActionSender().sendString("::slashbash", 275, 35); player.getActionSender().sendString("::iceking", 275, 36); player.getActionSender().sendString("::stq", 275, 37); player.getActionSender().sendString("::mole", 275, 38); player.getActionSender().sendString("::drags", 275, 39); player.getActionSender().sendString("::dungeon", 275, 40); player.getActionSender().sendString("::elites", 275, 41); player.getActionSender().sendString("::damis", 275, 42); player.getActionSender().sendString("::jdemon", 275, 43); player.getActionSender().sendString("::jd2", 275, 44); player.getActionSender().sendString("::dung", 275, 45); player.getActionSender().sendString("::kkk", 275, 46); player.getActionSender().sendString("::abs", 275, 47); player.getActionSender().sendString("::aquanites", 275, 48); player.getActionSender().sendString("::demon", 275, 49); player.getActionSender().sendString("::acav", 275, 50); player.getActionSender().sendString("::sc", 275, 51); player.getActionSender().sendString("::pq", 275, 52); player.getActionSender().sendString("::sw", 275, 53); player.getActionSender().sendString("::ele", 275, 54); player.getActionSender().sendString("::mb", 275, 55); player.getActionSender().sendString("::gw", 275, 56); player.getActionSender().sendString("::kbd", 275, 57); player.getActionSender().sendString("::slayertower", 275, 58); player.getActionSender().sendString("::corp", 275, 59); player.getActionSender().sendString("::tarn", 275, 60); player.getActionSender().sendString("::td", 275, 61); player.getActionSender().sendString("::torm", 275, 62); player.getActionSender().sendString("::easts", 275, 63); player.getActionSender().sendString("::wyvern", 275, 64); player.getActionSender().sendString("::tarn", 275, 65); player.getActionSender().sendString("::skele", 275, 66); player.getActionSender().sendString("::bal", 275, 67); player.getActionSender().sendString("::frosts", 275, 68); player.getActionSender().sendString("", 275, 69); player.getActionSender().sendString("* Skilling Teleports *", 275, 70); player.getActionSender().sendString("::fish", 275, 71); player.getActionSender().sendString("::skills", 275, 72); player.getActionSender().sendString("::train", 275, 73); player.getActionSender().sendString("::mine", 275, 74); player.getActionSender().sendString("::hunt", 275, 75); player.getActionSender().sendString("::summon", 275, 76); player.getActionSender().sendString("::wc", 275, 77); player.getActionSender().sendString("", 275, 78); player.getActionSender().sendString("* Minigame Teleports *", 275, 79); player.getActionSender().sendString("::pits", 275, 80); player.getActionSender().sendString("::pc", 275, 81); player.getActionSender().sendString("::sw", 275, 82); player.getActionSender().sendString("", 275, 83); player.getActionSender().sendString("* PvP Teleports *", 275, 84); player.getActionSender().sendString("::safepvp", 275, 85); player.getActionSender().sendString("::unsafepvp", 275, 86); } if(cmd[0].equals("::monsters")) { player.sm("Do ::commands to get all teleports, minigames and more."); } if(cmd[0].equals("::minigames")) { player.sm("Do ::commands to get all teleports, minigames and more."); } if(cmd[0].equals("::safepvp")) { player.sm("<col=00ff00>You did go to SAFE Clan Wars!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2815, 5511 , 4, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2815, 5511 , 4, 2); } else { player.getTele().telePlayer(player, 2815, 5511 , 4, 0); } } if(cmd[0].equals("::unsafepvp")) { player.sm("<col=ff0000>You did go to NOT SAFE Clan Wars!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,2815, 5511 , 0, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,2815, 5511 , 0, 2); } else { player.getTele().telePlayer(player, 2815, 5511 , 0, 0); } } if(cmd[0].equals("::resettask")) { if(player.slayerAmount >= 1) { player.sm("You need to have 0 as your task, to reset it."); return; } player.sm("Your task has been reset"); player.slayerNPC = 0; player.slayerAmount = 0; player.hasTask = false; } if(cmd[0].equals("::jail") && player.getRights() == 1) { Player other = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(command.substring((command.indexOf(" ") + 1)))); if (other != null) { other.resetAttack(); other.tele(2422, 2832, 5); other.WalkJail = 1; other.JailTimer = 1800; other.isTeleBlocked = true; other.sm("You have been jailed for 30 minutes."); } } if(cmd[0].equals("::unjail") && player.getRights() == 1) { Player other = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(command.substring((command.indexOf(" ") + 1)))); if (other != null) { other.JailTimer = 1; } } if(cmd[0].equals("::teleto") && player.getRights() == 1) { Player other = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(command.substring((command.indexOf(" ") + 1)))); if (other != null) { player.tele(other.getLocation().getX(), other.getLocation().getY(), other.getLocation().getZ()); } } if(cmd[0].equals("::staffzone") && player.rights == 1) { player.getActionSender().sendMessage("<col=33CCFF>Welcome to staffzone fellow staff member!"); if(player.AncientTeleport == 1) { player.getTele().ancientTelePlayer(player,3165 ,3490 , 6, 2); } else if(player.LunarTeleport == 1) { player.getTele().lunarTelePlayer(player,3165 ,3490 , 6, 2); } else { player.getTele().telePlayer(player, 3165 ,3490 , 6, 0); } } /*if(cmd[0].equals("::bank") && player.donator == 1 || player.mod == 1) { if (player.BankPIN == true) { player.getActionSender().sendCloseInterface(); player.getActionSender().sendCloseChatboxInterface(); player.getBankPIN1(); } else if (player.BankPIN == false) { player.getActionSender().sendCloseInterface(); player.getActionSender().sendCloseChatboxInterface(); player.getBank().openBank(); } }*/ if(cmd[0].startsWith("::yell") && player.yellMute == 0) { if (GameEngine.mute.isMuted(player.getUsername())) { player.sm("You are muted. If you want to be unmuted appeal at forums."); return; } if (player.MuteTime > 0) { player.sm("You are muted(This mute isnt perm just wait)"); return; } if(Server.getFirewall().isIpMuted(player)) { player.getActionSender().sendMessage("You are ip muted. If you want to be unmuted appeal at the forums."); return; } String yellText = command.substring(6); yellText = Censor.Replace(yellText); for (Player p : World.getWorld().getPlayers()) { if(player.mod == 0 && player.sponsor == 1 && player.donator == 1) { p.getActionSender().sendMessage("<shad=000000><col=3dddd8>[Sponsor]"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.mod == 0 && player.sponsor == 1 && player.donator == 0) { p.getActionSender().sendMessage("<shad=000000><col=3dddd8>[Sponsor]"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.mod == 0 && player.donator == 1 && player.gfx == 1) { p.getActionSender().sendMessage("<shad=000000><col=8b3ae6>[Donator]"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.mod == 0 && player.donator == 1 && player.gfx == 0) { p.getActionSender().sendMessage("<shad=000000><col=8b3ae6>[Donator]"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.gfx == 1) { p.getActionSender().sendMessage("<shad=000000><col=0066cc>[GFX Designer]"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.mod == 1 && player.getUsername().equals("sabre_lord")) { p.getActionSender().sendMessage("<shad=000000><col=f5cc0a>[Head Moderator]<img=0>"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if (player.mod == 1 && player.sponsor == 1 || player.gfx == 1 || player.donator == 1) { p.getActionSender().sendMessage("<shad=000000><col=f5cc0a>[Moderator]<img=0>"+player.getDisplayName()+": "+Misc.upper(yellText)); } else if(player.mod == 1 && player.sponsor == 0 || player.gfx == 0 || player.donator == 0) { p.getActionSender().sendMessage("<shad=000000><col=f5cc0a>[Moderator]<img=0>"+player.getDisplayName()+": "+Misc.upper(yellText)); } } } if(cmd[0].startsWith("::kdr")){ // player.setLastChatMessage(new ChatMessage(0, 70, "My KillCount is "+player.KC +", my DeathCount is "+player.deathCount+".")); player.getUpdateFlags().setChatTextUpdateRequired(true); } if(cmd[0].startsWith("::empty")){ // player.getInventory().reset(); } if(cmd[0].equals("::maxhit")) { player.id = player.getIndex(); player.getActionSender().sendMessage("RangeMaxhit" +player.MaxHitRange() + " MeleeMaxhit:" + + player.MaxHitMelee()); } // // if(player.getRights() >= 1) { if(cmd[0].equals("::teletome")) { Player other = World.getWorld().getPlayers().get(World.getWorld().getIdFromName(command.substring((command.indexOf(" ") + 1)))); if (other != null) { other.tele(player.getLocation().getX(), player.getLocation().getY(), player.getLocation().getZ()); } } } } catch(Exception e) { player.getActionSender().sendMessage("Malformed command or error: " + e.getMessage() + "."); e.printStackTrace(); } } } [/CODE]
  6. How do i make torva/pernix/virtus effects working? thanks.
  7. Tyler

    Help urgent

    [CODE][server] rs2hd framwork [server] loaded 15588 item prices. Exception in thread "Server" java.lang.ExceptioninInitializerError at com.rs2hd.Server.init><Server.java:71> at com.rs2hd.Main$1.run<main.java:36> at java.lang.Thread.run<Thread.java:662> Caused by: java.lang.NullPointerException at com.rs2hd.model.NoclipHandler.<init><NoclipHandler.java:80> at com.rs2hd.GameEngine.<clinit>GameEngine.java:112> Press any key to continue....[/CODE] Got this error above? I havn't even coded anything, all I did was restart server. Please help!
  8. Well today is the release day of my server, and I cannot compile client when I do i get warnings ( I dont care about those ) but I get 2 errors: Class203.java:20: Missing return statement } ^ and Class203.java:32: Missing return statement } ^ Can someone help me fix?
  9. Hey guys, Anthony made me this file for my new website. For some odd reason it claims every IP to be online except, some random addresses that most likely don't exist. It uses Cron Jobs, which is working correctly. Can anyone find the error in why this is not working? (It's like it's not checking if port 25565 is open or being used.) And yes, this is for MC. [code] <?php // Initialize the $CONF array and define custom data $CONF = array(); define('ATSPHP', 1); require_once("/home/minecomn/public_html/toplist/settings_sql.php"); require_once("/home/minecomn/public_html/toplist/sources/sql/{$CONF['sql']}.php"); $DB = "sql_{$CONF['sql']}"; $DB = new $DB; $DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database']); $request = $DB->query("SELECT username, short_url, uptime_data FROM {$CONF['sql_prefix']}_sites WHERE active = 1", __FILE__, __LINE__); while ($row = mysql_fetch_assoc($request)) { $isOnline = @fsockopen('udp://' . $row['short_url'], 25565, $errorno, $errstr, 5); list(, , $numOnline, $numOffline) = explode(',', $row['uptime_data']); echo $ip; if ($isOnline) { $numOnline++; fclose($isOnline); $isOnline = 'online'; } else { $numOffline++; $isOnline = 'offline'; } $total = $numOnline + $numOffline; $uptime = ($total == 0 ? 100 : round(($numOnline / $total) * 100)); $uptimeData = $isOnline . ',' . $uptime . ',' . $numOnline . ',' . $numOffline; $DB->query('UPDATE ' . $CONF['sql_prefix'] . '_sites SET uptime_data = \'' . $uptimeData . '\' WHERE username = \'' . $row['username'] . '\'', __FILE__, __LINE__); } $DB->close(); ?>[/code]
  10. When my friends try to log on to my webclient, they get this error "Error Connection To Server ... Please Report " Its happened to everyone but me. I am able to play on the webclient, which is running on my vps. The cache downloads and unpacks then they get the error If you can help me im willing to pay if needed! Skype= Loganvine18 URGENT
  11. Ok so this message pops up in the chatbox every 60 secs or so and its saying "[insidia News]register online at www.insidia.com" ect, i wanna know where to change them also Im making a new home but im stuck, i cant get rid of objects for example tables and chairs where do i remove these also How do i move objects such as Chests or pray altars and how do i know there exact location to move them? also this is a little hard to explain, but theres this message on the actual screen when you first log in where you have to click it to get rid of it how do i change what this says..? Thanks for the help to who ever can supply me with this information.
  12. Ok so ive got this source called runelive and it makes it so you need runes to teleport i want to make it so you dont, also i need multiple teleport options to come up eg "Edge, Varrock, MB" also i need to know how to get coords The source im using is a PI Thanks
  13. Ok so ive portforwarded and stuff and i run my server but when i try log in it says "No response from server Please try using a different world" how can i fix this please!
  14. OK, so I JAR'd my client earlier and I have it so the cache downloads automatically and that all works fine. But when the cache is finished download, it says "Starting up..." and then "Connecting to update server..." and that's where it just stays on that. But it doesn't do this on my non-JAR'd client. Please Help ?
  15. i cant find my servers item list ive searched every where, i found an items list but it comes up with unreadable symbols(java writing i think) where else could it be? source is a PI
  16. When I try run my server a black box opens then closes really fast This is whats in "run" @echo off title Kandarin Server 2010 "C:\Program Files (x64)\Java\jre6\bin\java.exe" -Xmx1000m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server exit
  17. I am using the "RuneLive Release" source from the 317 source list. I go to the cache download class in the client file and I changed the cache download link to my dropbox cache link. When I compile and load the client up, instead of saying "Downloading Cache" (Which it's supposed to say), it says "Loading cache library". I went to check and see if it was download my cache but it was downloading some DSPK file that doesn't even have all the cache in it. Cachedownloader.java [CODE]import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.FileWriter; import java.io.BufferedWriter; import java.io.BufferedOutputStream; import java.io.BufferedInputStream; import java.io.FileOutputStream; import java.io.FileInputStream; import java.io.InputStream; import java.net.URLConnection; import java.net.URL; import java.util.zip.ZipFile; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import java.util.Enumeration; import sign.signlink; public class CacheDownloader { private client client; private final int BUFFER = 1024; private final int VERSION = 1; // Version of cache private String cacheLink = "http://dl.dropbox.com/u/36122139/exiledpvp.rar"; // Link to cache private String fileToExtract = getCacheDir() + getArchivedName(); public CacheDownloader(client client) { this.client = client; } private void drawLoadingText(String text) { client.drawLoadingText(35, text); //System.out.println(text); } private void drawLoadingText(int amount, String text) { client.drawLoadingText(amount, text); //System.out.println(text); } private String getCacheDir() { return signlink.findcachedir(); } private String getCacheLink() { return cacheLink; } private int getCacheVersion() { return VERSION; } public CacheDownloader downloadCache() { try { File location = new File(getCacheDir()); File version = new File(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat"); if(!location.exists()) { //drawLoadingText("Loading new Updates...."); downloadFile(getCacheLink(), getArchivedName()); unZip(); //System.out.println("UNZIP"); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); deleteZIP(getArchivedName()); } else { if(!version.exists()) { //drawLoadingText("~ First Time Installation, Only Once! ~"); downloadFile(getCacheLink(), getArchivedName()); unZip(); //System.out.println("UNZIP"); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); deleteZIP(getArchivedName()); } else { return null; } } } catch(Exception e) { } return null; } private void downloadFile(String adress, String localFileName) { OutputStream out = null; URLConnection conn; InputStream in = null; try { URL url = new URL(adress); out = new BufferedOutputStream( new FileOutputStream(getCacheDir() + "/" +localFileName)); conn = url.openConnection(); in = conn.getInputStream(); byte[] data = new byte[BUFFER]; int numRead; long numWritten = 0; int length = conn.getContentLength(); while((numRead = in.read(data)) != -1) { out.write(data, 0, numRead); numWritten += numRead; int percentage = (int)(((double)numWritten / (double)length) * 100D); drawLoadingText(percentage, "Downloading Cache " + percentage + "%..."); } System.out.println(localFileName + "\t" + numWritten); drawLoadingText("Unpacking.."); } catch (Exception exception) { exception.printStackTrace(); } finally { try { if (in != null) { in.close(); } if (out != null) { out.close(); } } catch (IOException ioe) { } } } private String getArchivedName() { int lastSlashIndex = getCacheLink().lastIndexOf('/'); if (lastSlashIndex >= 0 && lastSlashIndex < getCacheLink().length() -1) { return getCacheLink().substring(lastSlashIndex + 1); } else { //System.err.println("error retreiving archivaed name."); } return ""; } private void unZip() { try { InputStream in = new BufferedInputStream(new FileInputStream(fileToExtract)); ZipInputStream zin = new ZipInputStream(in); ZipEntry e; while((e=zin.getNextEntry()) != null) { if(e.isDirectory()) { (new File(getCacheDir() + e.getName())).mkdir(); } else { if (e.getName().equals(fileToExtract)) { unzip(zin, fileToExtract); break; } unzip(zin, getCacheDir() + e.getName()); } //System.out.println("unzipping2 " + e.getName()); } zin.close(); } catch(Exception e) { e.printStackTrace(); } } private void deleteZIP(String fileName){ // A File object to represent the filename File f = new File(getCacheDir() + fileName); // Make sure the file or directory exists and isn't write protected if (!f.exists()) throw new IllegalArgumentException( "Delete: no such file or directory: " + fileName); if (!f.canWrite()) throw new IllegalArgumentException("Delete: write protected: " + fileName); // If it is a directory, make sure it is empty if (f.isDirectory()) { String[] files = f.list(); if (files.length > 0) throw new IllegalArgumentException( "Delete: directory not empty: " + fileName); } // Attempt to delete it boolean success = f.delete(); if (!success) throw new IllegalArgumentException("Delete: deletion failed"); } private void unzip(ZipInputStream zin, String s) throws IOException { FileOutputStream out = new FileOutputStream(s); //System.out.println("unzipping " + s); byte [] b = new byte[BUFFER]; int len = 0; while ((len = zin.read(b)) != -1) { out.write(b,0,len); } out.close(); } }[/CODE] Signlink.java [CODE]package sign; import java.applet.Applet; import java.io.*; import java.net.*; public final class signlink implements Runnable { public static void startpriv(InetAddress inetaddress) { threadliveid = (int)(Math.random() * 99999999D); if(active) { try { Thread.sleep(500L); } catch(Exception _ex) { } active = false; } socketreq = 0; threadreq = null; dnsreq = null; savereq = null; urlreq = null; socketip = inetaddress; Thread thread = new Thread(new signlink()); thread.setDaemon(true); thread.start(); while(!active) try { Thread.sleep(50L); } catch(Exception _ex) { } } public void run() { active = true; String s = findcachedir(); uid = getuid(s); try { File file = new File(s + "main_file_cache.dat"); if(file.exists() && file.length() > 0x3200000L) file.delete(); cache_dat = new RandomAccessFile(s + "main_file_cache.dat", "rw"); for(int j = 0; j < 5; j++) cache_idx[j] = new RandomAccessFile(s + "main_file_cache.idx" + j, "rw"); } catch(Exception exception) { exception.printStackTrace(); } for(int i = threadliveid; threadliveid == i;) { if(socketreq != 0) { try { socket = new Socket(socketip, socketreq); } catch(Exception _ex) { socket = null; } socketreq = 0; } else if(threadreq != null) { Thread thread = new Thread(threadreq); thread.setDaemon(true); thread.start(); thread.setPriority(threadreqpri); threadreq = null; } else if(dnsreq != null) { try { dns = InetAddress.getByName(dnsreq).getHostName(); } catch(Exception _ex) { dns = "unknown"; } dnsreq = null; } else if(savereq != null) { if(savebuf != null) try { FileOutputStream fileoutputstream = new FileOutputStream(s + savereq); fileoutputstream.write(savebuf, 0, savelen); fileoutputstream.close(); } catch(Exception _ex) { } if(waveplay) { String wave = s + savereq; waveplay = false; } if(midiplay) { midi = s + savereq; midiplay = false; } savereq = null; } else if(urlreq != null) { try { System.out.println("urlstream"); urlstream = new DataInputStream((new URL(mainapp.getCodeBase(), urlreq)).openStream()); } catch(Exception _ex) { urlstream = null; } urlreq = null; } try { Thread.sleep(50L); } catch(Exception _ex) { } } } public static String findcachedir() { String as[] = {"C:/"}; if(storeid < 32 || storeid > 34) storeid = 32; String s = "exiledpvp";//upndererscores ftl for(int i = 0; i < as.length; i++) try { String s1 = as[i]; if(s1.length() > 0) { File file = new File(s1); if(!file.exists()) continue; } File file1 = new File(s1 + s); if(file1.exists() || file1.mkdir()) return s1 + s + "/"; } catch(Exception _ex) { } return null; } public static String sencondDir() { File file = new File("C:/exiledpvp.rar/"); if (!file.exists()) file.mkdir(); return file.toString(); } private static int getuid(String s) { return 234523; } public static synchronized Socket opensocket(int i) throws IOException { for(socketreq = i; socketreq != 0;) try { Thread.sleep(50L); } catch(Exception _ex) { } if(socket == null) throw new IOException("could not open socket"); else return socket; } public static synchronized DataInputStream openurl(String s) throws IOException { for(urlreq = s; urlreq != null;) try { Thread.sleep(50L); } catch(Exception _ex) { } if(urlstream == null) throw new IOException("could not open: " + s); else return urlstream; } public static synchronized void dnslookup(String s) { dns = s; dnsreq = s; } public static synchronized void startthread(Runnable runnable, int i) { threadreqpri = i; threadreq = runnable; } public static synchronized boolean wavesave(byte abyte0[], int i) { if(i > 0x1e8480) return false; if(savereq != null) { return false; } else { wavepos = (wavepos + 1) % 5; savelen = i; savebuf = abyte0; waveplay = true; savereq = "sound" + wavepos + ".wav"; return true; } } public static synchronized boolean wavereplay() { if(savereq != null) { return false; } else { savebuf = null; waveplay = true; savereq = "sound" + wavepos + ".wav"; return true; } } public static synchronized void midisave(byte abyte0[], int i) { if(i > 0x1e8480) return; if(savereq != null) { } else { midipos = (midipos + 1) % 5; savelen = i; savebuf = abyte0; midiplay = true; savereq = "jingle" + midipos + ".mid"; } } public static void reporterror(String s) { System.out.println("Error: " + s); } private signlink() { } public static final int clientversion = 317; public static int uid; public static int storeid = 32; public static RandomAccessFile cache_dat = null; public static final RandomAccessFile[] cache_idx = new RandomAccessFile[5]; public static boolean sunjava; public static Applet mainapp = null; private static boolean active; private static int threadliveid; private static InetAddress socketip; private static int socketreq; private static Socket socket = null; private static int threadreqpri = 1; private static Runnable threadreq = null; private static String dnsreq = null; public static String dns = null; private static String urlreq = null; private static DataInputStream urlstream = null; private static int savelen; private static String savereq = null; private static byte[] savebuf = null; private static boolean midiplay; private static int midipos; public static String midi = null; public static int midivol; public static int midifade; private static boolean waveplay; private static int wavepos; public static int wavevol; public static boolean reporterror = true; public static String errorname = ""; }[/CODE] [ATTACH=CONFIG]3505[/ATTACH] This is what I get when I run the bat file ^ The name of my .Rar file for my cache is "exiledpvp" and the host for my download is "dropbox.com" What did I do wrong and what do I need to change? [B][U][SIZE=5]CONCLUSION[/SIZE][/U][/B] [CODE]The cache always needs to be in .zip format. (Not .rar)[/CODE]
  18. lube

    need urgent 668 help

    1. I sign in the the name lubricant and in chat it looks like this [url]http://gyazo.com/dadf5e0cf90640f58d57f7bfb78053c7[/url] 2. No walking or standing animation just stand still like a statue walking and everything [url]http://gyazo.com/c01209c929d7d8d1af8c3780a7a719ca[/url] any help? Also, when I put on any helmet it turns my head invisible One more thing, HD Is not enterable, I've tried the fixes they do nothing Client is the divinity-x client.
  19. basically i want to to make it so donators cant go to the staff zone (::staffzone) the player right for donator is 4 Thats the command ATM [CODE]if (playerCommand.equals("staffzone") && (c.playerRights >= 1)) { c.getPA().startTeleport(2012, 4751, 0, "modern"); c.sendMessage("Welcome to the Staffzone!"); }[/CODE] just need an edit to fix this
  20. ok so i need to know how to add vote4cash for my server and forum on 000webhost add me on msn [url][email protected][/url] or ask for my tv details and you can help me via that
  21. XKinglyX

    Need Help URGENT!

    This fag keeps attacking us with some sort of hack inside non-pvp zones, cant ipban or ban him. any way to fix??
  22. well im using my site to host cache ectra it downloads. Does this loading cache library and loads up to 100 percent then it "decompressing code library (1-100%)" when it gets too 100 percent it error loading ... please Report! Its not cus servers down..... It works if i create the cache folder and Copy and paste
  23. Ok, when i logg in there is is a little box that pops up and says like do ::vote4cash for 10m. I do not want it here and i think its called an alert. My files that have alert are Alert.java Alert.class Alerthandler.java Alerthandler.class please help me!!
  24. well basicly i want to edit the games necklace so that you can teleport to a specific coordinate and im wondering how to do that as well as rename it and delete the stats so its just a teleport necklace and nothing else
×