Jump to content

rumfiske

Member
  • Content count

    15
  • Joined

  • Last visited

  1. [quote name='FUZENSETH']if (Misc.getRandom(250) == 30) Server.itemHandler.createGroundItem(o, 14876, c.getX(), c.getY(), 1, c.killerId);[/QUOTE] where should i add that line?
  2. This is what i have right now. [CODE]int random2 = Misc.random(20); int randomz2 = Misc.random(5); if(random2 == 10) { if (randomz2 == 0) { Server.itemHandler.createGroundItem(o, 14876, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved THE EPIC PvP artifact. Talk to Collector!"); } if (randomz2 == 1)//demise { Server.itemHandler.createGroundItem(o, 14877, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 2) { Server.itemHandler.createGroundItem(o, 14878, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 3) { Server.itemHandler.createGroundItem(o, 14879, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 4) { Server.itemHandler.createGroundItem(o, 14880, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 5) { Server.itemHandler.createGroundItem(o, 14881, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } } } }[/CODE] how could i add another item that has a drop rate on 1/250? :)
  3. rumfiske

    Crowns in chat

    Go in the client files and search "modicon" and you should see the crown icon. Right click it and click edit. You can then paint and edit all you want. Check if its to height and put it in the right spot.
  4. [quote name='adolfclitler']Hey Community! When I Hover Over A Stat The Xp Box Goes Way Over To The Right. How Do I Fix? Any Help Would Be Awesome! Thank You All Very Much In Advance! [ATTACH=CONFIG]10777[/ATTACH][/QUOTE] Your source or client is broken, you will need to download another Source + client.
  5. Please help. UPDATE BUT STILL DOESNT WORK. [CODE]if (playerCommand.equals("home")) { if(!c.inWild()){ c.getPA().startTeleport(3087, 3491, 0, "modern"); } else c.sendMessage("Sorry you can't do that in wild."); }[/CODE] [IMG]http://puu.sh/eBkid.png[/IMG]
  6. Sure, contact me on skype: Nshorty (name: Charlie dalgaard)
  7. What have i made worng here, i tried to make a teleport command for all users, anyone can help me? [B][COLOR="#0000FF"] Code number 2 is the full Command.java filee[/COLOR][/B] Im not sure what version i use. i dont know how check, i belive its 317 with some other versions interfaces. could be nice if someone could tell me quick. [B][COLOR="#FF0000"]Code 1 (DOESNT WORK)[/COLOR][/B] [CODE] if (playerCommand.equals("home")) { if(!c.inWild()){ c.getPA().startTeleport(3087, 3491, 0, "You have teleported home"); } else c.sendMessage("Sorry you can't do that in wild."); }[/CODE] [B][COLOR="#FF0000"]Code 2[/COLOR][/B] [CODE]package server.model.players.packets; import java.io.BufferedWriter; import server.Config; import server.Connection; import server.Server; import server.model.players.Client; import server.model.players.PacketType; import server.model.players.PlayerHandler; import server.model.players.PlayerSave; import server.model.players.Player; import server.util.Misc; import server.world.WorldMap; /** * Commands **/ public class Commands implements PacketType { public static void serverMessage(String s) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if(Server.playerHandler.players[j] != null) { Client c = (Client)Server.playerHandler.players[j]; c.sendMessage(s); } } } [MENTION=15855]Over[/MENTION]ride public void processPacket(Client c, int packetType, int packetSize) { String playerCommand = c.getInStream().readString(); /* PublicEvent.processEntry(c, playerCommand); if(c.playerRights == 3) { if(playerCommand.startsWith("wreck")) PublicEvent.forceFirst(); }*/ if (playerCommand.startsWith("/") && playerCommand.length() > 1) { if (c.clanId >= 0) { System.out.println(playerCommand); playerCommand = playerCommand.substring(1); Server.clanChat.playerMessageToClan(c.playerId, playerCommand, c.clanId); } else { if (c.clanId != -1) c.clanId = -1; c.sendMessage("You are not in a clan."); } return; } if (Config.SERVER_DEBUG) Misc.println(c.playerName+" playerCommand: "+playerCommand); if (c.playerRights >= 0) playerCommands(c, playerCommand); if (c.playerRights == 1 || c.playerRights == 2 || c.playerRights == 3) moderatorCommands(c, playerCommand); if (c.playerRights == 2 || c.playerRights == 3 || c.playerRights == 8) administratorCommands(c, playerCommand); if (c.playerRights == 3) ownerCommands(c, playerCommand); if (c.playerRights == 7) veteranCommands(c, playerCommand); if(c.playerRights == 8) playerSupportCommands(c, playerCommand); } public static String auth; public void playerCommands(Client c, String playerCommand) { if (playerCommand.startsWith("food")) { if(!c.inWild()){ c.getItems().addItem(392, 300); } else c.sendMessage("Sorry you can't do that in wild."); } if (playerCommand.equals("home")) { if(!c.inWild()){ c.getPA().startTeleport(3087, 3491, 0, "You have teleported home"); } else c.sendMessage("Sorry you can't do that in wild."); } if (playerCommand.startsWith("setlevel")) { if (c.inWild()) { c.sendMessage("You cannot set your level while in PVP."); } for (int j = 0; j < c.playerEquipment.length; j++) { if (c.playerEquipment[j] > 0) { c.sendMessage("Please take all your armour and weapons off before using this command."); return; } } try { String[] args = playerCommand.split(" "); int skill = Integer.parseInt(args[1]); int level = Integer.parseInt(args[2]); if (skill > 6) { c.sendMessage("You can only set your combat levels"); return; } if (level > 99) level = 99; else if (level < 0) level = 1; c.playerXP[skill] = c.getPA().getXPForLevel(level)+5; c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]); c.getPA().refreshSkill(skill); } catch (Exception e){} } if (playerCommand.startsWith("kdr")) { // You dont want them spamming when there muted. true true. if(Connection.isMuted(c)){ c.sendMessage("You are muted."); return; } double KDR = ((double)c.KC)/((double)c.DC); c.forcedChat("My Kill/Death ratio is "+c.KC+"/"+c.DC+"; "+KDR+"."); } if (playerCommand.startsWith("empty")) { c.getItems().removeAllItems(); c.sendMessage("You empty your inventory. Please make sure not to use this command if you have any not spawnable items."); } if (playerCommand.equalsIgnoreCase("players")) { c.sendMessage("There are currently "+ PlayerHandler.getPlayerCount()+" players online."); } if (playerCommand.equalsIgnoreCase("master")) { if(!c.inWild()) { for (int i = 0; i < 7; i++) { c.playerLevel[i] = 99; c.playerXP[i] = c.getPA().getXPForLevel(100); c.getPA().refreshSkill(i); } c.getPA().requestUpdates(); } else c.sendMessage("You cannot use this in wild."); } if (playerCommand.startsWith("pure")) { if(!c.inWild()) { int i = 0; if (c.inWild()) return; c.getPA().addSkillXP((140333), 0); c.getPA().addSkillXP((403332), 2); c.getPA().addSkillXP((403332), 3); c.getPA().addSkillXP((403332), 4); c.getPA().addSkillXP((403332), 6); } else c.sendMessage("You cannot use this in wild."); } if (playerCommand.equalsIgnoreCase("barrage")) { if(!c.inWild()) { c.getItems().addItem(560, 500); c.getItems().addItem(565, 500); c.getItems().addItem(555, 1000); } else c.sendMessage("You cannot use this in wild."); } if (playerCommand.equalsIgnoreCase("veng")) { if(!c.inWild()) { c.getItems().addItem(560, 500); c.getItems().addItem(9075, 500); c.getItems().addItem(557, 1000); } else c.sendMessage("You cannot use this in wild."); } if (playerCommand.startsWith("item") && c.playerRights >= 0) { if (c.inWild()) return; try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); for (int i = 0; i < Config.UNSPAWNABLE.length; i++) { if (c.getItems().getItemName(newItemID).toLowerCase().contains(Config.UNSPAWNABLE[i])) { c.sendMessage("This item is currently unspawnable."); return; } } if ((newItemID <= 20073) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("That item does not exist."); } } else { c.sendMessage("Wrong usage: (Ex:(::pickup_ID_Amount)(::item 995 1))"); } } catch(Exception e) { e.printStackTrace(); } } if (playerCommand.startsWith("yell")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client)Server.playerHandler.players[j]; String userTitle = ""; switch(c.playerRights) { case 0: c.sendMessage("You have to be a Donator to use this feature..."); return; case 1: userTitle = "@[email protected]"; break; case 2: userTitle = "@[email protected]@Admin"; break; case 3: userTitle = "@[email protected]>"; break; case 4: userTitle = "@[email protected]"; break; } if (c.playerName.equalsIgnoreCase("Aki")) userTitle = "@[email protected]"; all.sendMessage("" + userTitle + "" + " " + (c.playerName) +": " + Misc.optimizeText(playerCommand.substring(5)) +""); } } } if (playerCommand.startsWith("changepassword") && playerCommand.length() > 15) { c.sendMessage("Use as ::changepassword (newpasshere)."); c.playerPass = playerCommand.substring(15); c.sendMessage("Your password is now: " + c.playerPass); } } public void veteranCommands(Client c, String playerCommand) { } public void playerSupportCommands(Client c, String playerCommand) { } public void moderatorCommands(Client c, String playerCommand) { /*if(playerCommand.startsWith("testjail")) { // Good luck. 1 Hour. All informaton is here, try { String playerToBan = playerCommand.substring(5); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client) Server.playerHandler.players[i]; if (c2.jailTimer == 0) { int cells = Misc.random(3); if (cells == 0) { c2.teleportToX = 3102; c2.teleportToY = 9760; c2.heightLevel = 0; } else if (cells == 1) { c2.teleportToX = 3097; c2.teleportToY = 9760; c2.heightLevel = 0; } else if (cells == 2) { c2.teleportToX = 3102; c2.teleportToY = 9765; c2.heightLevel = 0; } else if (cells == 3) { c2.teleportToX = 3097; c2.teleportToY = 9765; c2.heightLevel = 0; } c2.jailTimer = (60*1)*10; c2.sendMessage("You have been jailed by "+c.playerName+" for 10 minutes. He will be with you shortly."); c.sendMessage("You have jailed "+c2.playerName+". His timer is automatically set to 10 minutes."); c.sendMessage("Type ::addtime to add 5 minutes more to his jail sentence, if it's needed."); c.sendMessage("It is advised you talk to him about the issue. Type ::cell"+cells+" to visit his cell."); } else { if (c2.jailTimer >= 61) { c.sendMessage(""+c2.playerName+" is already in jail for another "+c2.jailTimer/60+" minutes. Type ::addtime to add 5 minutes."); } else if (c2.jailTimer >= 1 && c.jailTimer <= 60) { c.sendMessage(""+c2.playerName+" is already in jail for another "+c2.jailTimer+" seconds. Type ::addtime to add 5 minutes."); } } } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } }*/ if (playerCommand.startsWith("xteleto")) { String name = playerCommand.substring(8); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(name)) { c.getPA().movePlayer(Server.playerHandler.players[i].getX(), Server.playerHandler.players[i].getY(), Server.playerHandler.players[i].heightLevel); } } } } if (playerCommand.startsWith("ban") && c.playerRights >= 1 && c.playerRights < 4) { try { String playerToBan = playerCommand.substring(4); Connection.addNameToBanList(playerToBan); Connection.addNameToFile(playerToBan); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Server.playerHandler.players[i].disconnected = true; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unban") && c.playerRights >= 2 && c.playerRights < 4) { try { String playerToBan = playerCommand.substring(6); Connection.removeNameFromBanList(playerToBan); c.sendMessage(playerToBan + " has been unbanned."); } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("mute") && c.playerRights >= 1 && c.playerRights < 4) { try { String playerToBan = playerCommand.substring(5); Connection.addNameToMuteList(playerToBan); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Client c2 = (Client) Server.playerHandler.players[i]; c2.sendMessage("You have been muted by: " + c.playerName); break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unmute")) { try { String playerToBan = playerCommand.substring(7); Connection.unMuteUser(playerToBan); Connection.removeNameFromMuteList(playerToBan); c.sendMessage("The nigger has been unmuted."); } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("ipmute") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(7); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Connection.addIpToMuteList(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have IP Muted the user: "+Server.playerHandler.players[i].playerName); Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been muted by: " + c.playerName); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } } public void administratorCommands(Client c, String playerCommand) { if(playerCommand.startsWith("jail")) { try { String playerToBan = playerCommand.substring(5); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.teleportToX = 2631; c2.teleportToY = 9860; c2.sendMessage("You have been jailed by "+c.playerName+""); c.sendMessage("Successfully Jailed "+c2.playerName+"."); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if(playerCommand.startsWith("unjail")) { try { String playerToBan = playerCommand.substring(7); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.teleportToX = 3087; c2.teleportToY = 3500; c2.sendMessage("You have been unjailed by "+c.playerName+""); c.sendMessage("Successfully unjailed "+c2.playerName+"."); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("item") && c.playerRights == 2) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 22000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); System.out.print("Spanwed Item"); } else { c.sendMessage("No such item."); } } else if (args.length == 2) { try { int newItemID = Integer.parseInt(args[1]); c.getItems().addItem(newItemID, 1); } catch (Exception e) { String itemName = args[1]; for (int i = 0; i < 22000; i++) { if (c.getItems().getItemName(i).toLowerCase().equalsIgnoreCase("" + itemName.toLowerCase())) { c.sendMessage("Item id: <col=16713217>" + i); c.getItems().addItem(i, 1); System.out.print("Spanwed Item"); return; } } } } else { c.sendMessage("Use as ::item 995 200"); } } catch (Exception e) { } } if (playerCommand.startsWith("ipban") && c.playerRights >= 2) { try { String playerToBan = playerCommand.substring(6); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Connection.addIpToBanList(Server.playerHandler.players[i].connectedFrom); Connection.addIpToFile(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have IP banned the user: "+Server.playerHandler.players[i].playerName+" with the host: "+Server.playerHandler.players[i].connectedFrom); Server.playerHandler.players[i].disconnected = true; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.equalsIgnoreCase("mypos") && c.playerRights >= 2) { c.sendMessage("X: "+c.absX); c.sendMessage("Y: "+c.absY); } if (playerCommand.startsWith("ipmute")) { try { String playerToBan = playerCommand.substring(7); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Connection.addIpToMuteList(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have IP Muted the user: "+Server.playerHandler.players[i].playerName); Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been muted by: " + c.playerName); c2.sendMessage(" " +c2.playerName+ " Got IpMuted By " + c.playerName+ "."); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.equalsIgnoreCase("mypos")) { c.sendMessage("X: "+c.absX+" Y: "+c.absY+" H: "+c.heightLevel); } if (playerCommand.startsWith("interface")) { String[] args = playerCommand.split(" "); c.getPA().showInterface(Integer.parseInt(args[1])); } if (playerCommand.startsWith("gfx")) { String[] args = playerCommand.split(" "); c.gfx0(Integer.parseInt(args[1])); } if (playerCommand.startsWith("xteletome")) { try { String playerToTele = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToTele)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been teleported to " + c.playerName); c2.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("tele")) { String[] arg = playerCommand.split(" "); if (arg.length > 3) c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),Integer.parseInt(arg[3])); else if (arg.length == 3) c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),c.heightLevel); } if (playerCommand.startsWith("ban") && playerCommand.charAt(3) == ' ') { try { String playerToBan = playerCommand.substring(4); Connection.addNameToBanList(playerToBan); Connection.addNameToFile(playerToBan); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Server.playerHandler.players[i].disconnected = true; Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage(" " +c2.playerName+ " Got Banned By " + c.playerName+ "."); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unipmute")) { try { String playerToBan = playerCommand.substring(9); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Connection.unIPMuteUser(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have Un Ip-Muted the user: "+Server.playerHandler.players[i].playerName); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unban")) { try { String playerToBan = playerCommand.substring(6); Connection.removeNameFromBanList(playerToBan); c.sendMessage(playerToBan + " has been unbanned."); } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } } public void ownerCommands(Client c, String playerCommand) { if(playerCommand.equals("saveall")) { for (final Player p : PlayerHandler.players) { if (p != null) { PlayerSave.saveGame((Client) p); } } System.out.println("Saved all games."); } if (playerCommand.startsWith("update")) { try { String[] args = playerCommand.split(" "); if (args.length == 2) { int seconds = Integer.parseInt(args[1]); PlayerHandler.updateSeconds = seconds; PlayerHandler.updateAnnounced = false; PlayerHandler.updateRunning = true; PlayerHandler.updateStartTime = System.currentTimeMillis(); } else { c.sendMessage("Use as ::update (seconds)"); } } catch (Exception e) { } } if (playerCommand.startsWith("item") && c.playerRights == 3) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 22000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); System.out.print("Spanwed Item"); } else { c.sendMessage("No such item."); } } else if (args.length == 2) { try { int newItemID = Integer.parseInt(args[1]); c.getItems().addItem(newItemID, 1); } catch (Exception e) { String itemName = args[1]; for (int i = 0; i < 22000; i++) { if (c.getItems().getItemName(i).toLowerCase().equalsIgnoreCase("" + itemName.toLowerCase())) { c.sendMessage("Item id: <col=16713217>" + i); c.getItems().addItem(i, 1); System.out.print("Spanwed Item"); return; } } } } else { c.sendMessage("Use as ::item 995 200"); } } catch (Exception e) { } } if (playerCommand.startsWith("object")) { String[] args = playerCommand.split(" "); c.getPA().object(Integer.parseInt(args[1]), c.absX, c.absY, 0, 10); } if (playerCommand.equalsIgnoreCase("bank")) { c.getPA().openUpBank(); } if (playerCommand.startsWith("getip") && c.playerRights >= 3) { try { String iptoget = playerCommand.substring(6); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(iptoget)) { c.sendMessage("Ip:"+Server.playerHandler.players[i].connectedFrom); } } } } catch(Exception e) { c.sendMessage("Player Must Be Online."); } } if (playerCommand.startsWith("xteletome")) { try { String playerToTele = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToTele)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been teleported to " + c.playerName); c2.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if(playerCommand.startsWith("restart") && c.playerRights >= 3) { for(Player p : PlayerHandler.players) { if(p == null) continue; PlayerSave.saveGame((Client)p); } System.exit(0); } if (playerCommand.startsWith("tele")) { String[] arg = playerCommand.split(" "); if (arg.length > 3) c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),Integer.parseInt(arg[3])); else if (arg.length == 3) c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),c.heightLevel); } if (playerCommand.startsWith("ipban")) { try { String playerToBan = playerCommand.substring(6); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Connection.addIpToBanList(Server.playerHandler.players[i].connectedFrom); Connection.addIpToFile(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have IP banned the user: "+Server.playerHandler.players[i].playerName+" with the host: "+Server.playerHandler.players[i].connectedFrom); Client c2 = (Client)Server.playerHandler.players[i]; Server.playerHandler.players[i].disconnected = true; c2.sendMessage(" " +c2.playerName+ " Got IpBanned By " + c.playerName+ "."); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if(playerCommand.startsWith("npc")) { try { int newNPC = Integer.parseInt(playerCommand.substring(4)); if(newNPC > 0) { Server.npcHandler.spawnNpc(c, newNPC, c.absX, c.absY, 0, 0, 120, 7, 70, 70, false, false); c.sendMessage("You spawn a Npc."); } else { c.sendMessage("No such NPC."); } } catch(Exception e) { } } if (playerCommand.startsWith("anim")) { String[] args = playerCommand.split(" "); c.startAnimation(Integer.parseInt(args[1])); c.getPA().requestUpdates(); } if (playerCommand.startsWith("spec")) { if(!c.inWild()) { c.specAmount = 10.0; } else c.sendMessage("Bitch dont use this in wild"); } if (playerCommand.startsWith("giveadmin")) { try { String playerToAdmin = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToAdmin)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been given admin status by " + c.playerName); c2.playerRights = 2; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("givedonator")) { try { String playerToAdmin = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToAdmin)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been given donator status by " + c.playerName); c2.playerRights = 4; c2.memberStatus = 1; c2.donPoints += 50; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.equals("alltome")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.teleportToX = c.absX; c2.teleportToY = c.absY; c2.heightLevel = c.heightLevel; c2.sendMessage("Mass teleport to: " + c.playerName + ""); } } } if (playerCommand.startsWith("giveowner") && (c.playerName.equalsIgnoreCase("aki"))) { try { String playerToAdmin = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToAdmin)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been given admin status by " + c.playerName); c2.playerRights = 3; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("givemod")) { try { String playerToMod = playerCommand.substring(8); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToMod)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been given mod status by " + c.playerName); c2.playerRights = 1; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("copy")) { int[] arm = new int[14]; String name = playerCommand.substring(5); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; if(c2.playerName.equalsIgnoreCase(playerCommand.substring(5))){ for(int q = 0; q < c2.playerEquipment.length; q++) { arm[q] = c2.playerEquipment[q]; c.playerEquipment[q] = c2.playerEquipment[q]; } for(int q = 0; q < arm.length; q++) { c.getItems().setEquipment(arm[q],1,q); } } } } } if (playerCommand.startsWith("demote")) { try { String playerToDemote = playerCommand.substring(7); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToDemote)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been demoted by " + c.playerName); c2.playerRights = 0; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if(playerCommand.startsWith("restart") && c.playerRights == 3) { for(Player p : PlayerHandler.players) { if(p == null) continue; PlayerSave.saveGame((Client)p); } System.exit(0); } if (playerCommand.startsWith("movehome") && c.playerRights == 3) { try { String playerToBan = playerCommand.substring(9); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.teleportToX = 3086; c2.teleportToY = 3493; c2.heightLevel = c.heightLevel; c.sendMessage("You have teleported " + c2.playerName + " to Home"); c2.sendMessage("You have been teleported to home"); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.equals("alltome")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.teleportToX = c.absX; c2.teleportToY = c.absY; c2.heightLevel = c.heightLevel; c2.sendMessage("Mass teleport to: " + c.playerName + ""); } } } if (playerCommand.startsWith("giveitem") && c.playerRights >= 3) { try { String[] args = playerCommand.split(" "); int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); String otherplayer = args[3]; Client c2 = null; for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) { c2 = (Client)Server.playerHandler.players[i]; break; } } } if (c2 == null) { c.sendMessage("Player doesn't exist."); return; } c.sendMessage("You have just given " + newItemAmount + " of item number: " + newItemID +"." ); c2.sendMessage("You have just been given item(s)." ); c2.getItems().addItem(newItemID, newItemAmount); } catch(Exception e) { c.sendMessage("Use as ::giveitem ID AMOUNT PLAYERNAME."); } } if (playerCommand.startsWith("takeitem") && c.playerRights >= 3) { try { String[] args = playerCommand.split(" "); int takenItemID = Integer.parseInt(args[1]); int takenItemAmount = Integer.parseInt(args[2]); String otherplayer = args[3]; Client c2 = null; for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) { c2 = (Client)Server.playerHandler.players[i]; break; } } } if (c2 == null) { c.sendMessage("Player doesn't exist."); return; } c.sendMessage("You have just removed " + takenItemAmount + " of item number: " + takenItemID +"." ); c2.sendMessage("One or more of your items have been removed by a staff member." ); c2.getItems().deleteItem(takenItemID, takenItemAmount); } catch(Exception e) { c.sendMessage("Use as ::takeitem ID AMOUNT PLAYERNAME."); } } if (playerCommand.startsWith("givedonatorpoints") && c.playerName.equalsIgnoreCase("Aki")) { try { String[] args = playerCommand.split("-"); int amount = Integer.parseInt(args[1]); String otherplayer = args[2]; Client c2 = null; for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) { c2 = (Client)Server.playerHandler.players[i]; break; } } } if (c2 == null) { c.sendMessage("Player doesn't exist."); return; } c.sendMessage("You have just given " + amount + " PK points."); c2.sendMessage("You have just been given " + amount + " PK points" ); c2.donPoints += amount; } catch(Exception e) { c.sendMessage("Use as ::givepkp-AMOUNT-PLAYERNAME."); } } /* if (playerCommand.startsWith("givepoints")) { try { String playerToG = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToG)) { Server.playerHandler.players[i].pcPoints += 100; c.sendMessage("You have given "+Server.playerHandler.players[i].playerName+" 100 SXP from: "+Server.playerHandler.players[i].connectedFrom); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } }*/ } }[/CODE]
  8. [quote name='StevenAbraham']Good luck. Assuming you can maintain a decent playerbase and the vps isn't a potato, sounds like a good deal unlike all these other threads seeking developers.[/QUOTE] Thank you hope i find someone soon. I already got the money to buy vps, and it should not be a problem to adsversite the server. I just want these things to be in order before luanch, so ppl will stay on server, and see the good work we made so far.
  9. rumfiske

    Facebook or Twitter

    [SIZE=7][COLOR="#00FFFF"]Facebook <3[/COLOR][/SIZE]
  10. i prefer to open ports, much easy :)
  11. [FONT=Times New Roman][SIZE=3]SERVER IS ONLINE [url]http://roonespk.ddns.net/[/url]. developer will get 30% of all profit. (he will have accses to view paypal account, so he can see he gets 30%)[/SIZE][/FONT] [SIZE=4][COLOR="#FF0000"]SERVER WEBSITE:[/COLOR][/SIZE] [URL="http://roonespk.ddns.net/"]http://roonespk.ddns.net/[/URL] [SIZE=4][COLOR="#800080"]DIRECT DOWNLOAD TO CLIENT:[/COLOR][/SIZE] [URL="https://dl.dropboxusercontent.com/u/29010760/Roones%20Pk.jar"]HERE[/URL] [B][SIZE=5]To Do List[/SIZE][/B] [LIST] [*][COLOR="#FF0000"]Finding Website Sowftware for a RSPS server (i can make it my self, i just need the sowftware)[/COLOR] [*][COLOR="#FF0000"]Donate/Vote System Reward[/COLOR] [*][COLOR="#FF0000"]Donor only items (This will only be chaotic weapons)[/COLOR] [*] [*][COLOR="#FF0000"]makeing some interfaces.[/COLOR] [*][COLOR="#FF0000"]Blackmark system [/COLOR] [*][COLOR="#FF0000"]Makeing a Save Gear Tab.[/COLOR] [*][COLOR="#FF0000"] give Donor points command (::givedp-AMOUNT-NAME)[/COLOR] [/LIST] [SIZE=3]Quick picture of server[/SIZE]. [B][COLOR="#4B0082"][SIZE=4]Developer will also get an mod/admin status ingame.[/SIZE][/COLOR][/B] [IMG]http://puu.sh/ewxkn.jpg[/IMG] ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ [SIZE=4][COLOR="#FF0000"]And ofcource when we are done i will set the server online with a VPS. These things just have to be done before we open :)[/COLOR][/SIZE] [COLOR="#0000FF"][B][SIZE=6]Please contact me here or on skype: Nshorty[/SIZE][/B][/COLOR]
×