Jump to content

Search the Community

Showing results for tags 'control'.



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

  1. Hey guys, back at it after years of being away, found my base, added quite a few new little things, made little things work right or better. Any tips on fixing these errors for my control panel? I do not need to be spoon fed, I've fixed all my other errors and this one is stumping me. src\server\util\PanelSettings.java:339: error: cannot assign a value riable SERVER_NAME Config.SERVER_NAME = p.SERVER_NAME_TEXT.getText(); ^ src\server\util\PanelSettings.java:342: error: cannot assign a value riable ADMIN_CAN_TRADE Config.ADMIN_CAN_TRADE = p.ADMINS_CAN_TRADE.isSelected(); ^ src\server\util\PanelSettings.java:343: error: cannot assign a value riable ADMIN_DROP_ITEMS Config.ADMIN_DROP_ITEMS = p.ADMINS_CAN_DROP.isSelected(); ^ src\server\util\PanelSettings.java:344: error: cannot assign a value riable ADMIN_CAN_SELL_ITEMS Config.ADMIN_CAN_SELL_ITEMS = p.ADMINS_CAN_SELL_ITEMS.isSelected(); The area the errors come from is as follows if (cmd.equalsIgnoreCase("Update Settings")) { boolean active = Config.DOUBLE_EXP; Config.SERVER_NAME = p.SERVER_NAME_TEXT.getText(); Config.LOGOUT_MESSAGE = p.LOGOUT_BUTTON_TEXT.getText(); Config.DEATH_MESSAGE = p.DEATH_MESSAGE_TEXT.getText(); Config.ADMIN_CAN_TRADE = p.ADMINS_CAN_TRADE.isSelected(); Config.ADMIN_DROP_ITEMS = p.ADMINS_CAN_DROP.isSelected(); Config.ADMIN_CAN_SELL_ITEMS = p.ADMINS_CAN_SELL_ITEMS.isSelected(); Config.MINI_GAMES = p.MINI_GAMES.isSelected(); Config.LOCK_EXPERIENCE = p.LOCK_EXPERIENCE.isSelected(); Config.DOUBLE_EXP = p.DOUBLE_EXPERIENCE.isSelected(); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (validClient(i)) { Client c2 = getClient(i); c2.getPA().sendFrame126(Config.LOGOUT_MESSAGE, 2458); } } return; } Thanks in advanced for any help!
  2. Hay! Im looking for a full working Pest control on a 718 server, Is there any who have it? Like any folders on full working pest control ?
  3. REPLACE Pestcontrol.java with this: [PHP]package server.model.minigames; import server.model.players.Client; import server.Server; /** * @author Sanity */ public class PestControl { public PestControl() { } public final int GAME_TIMER = 70; //5 minutes public final int WAIT_TIMER = 7; public int gameTimer = -1; public int waitTimer = 15; public int properTimer = 0; public void process() { setInterface(); if (properTimer > 0) { properTimer--; return; } else { properTimer = 4; } if (waitTimer > 0) waitTimer--; else if (waitTimer == 0) startGame(); if (gameTimer > 0) { gameTimer--; if (allPortalsDead()) { endGame(true); } } else if (gameTimer == 0) endGame(false); } public void startGame() { if (playersInBoat() > 1) { gameTimer = GAME_TIMER; waitTimer = -1; //spawn npcs spawnNpcs(); //move players into game for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { movePlayer(j); } } } } else { waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client)Server.playerHandler.players[j]; c.sendMessage("There need to be at least 3 players to start a game of pest control."); } } } } } public int playersInBoat() { int count = 0; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { count++; } } } return count; } public void endGame(boolean won) { gameTimer = -1; waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client)Server.playerHandler.players[j]; c.getPA().movePlayer(2657, 2639, 0); if (won && c.pcDamage > 5) { c.sendMessage("You have won the pest control game and have been awarded 5 pest control points."); c.pcPoints += 5; c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]); c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]); c.specAmount = 10; c.getItems().addItem(995, c.combatLevel * 50); c.getPA().refreshSkill(3); c.getPA().refreshSkill(5); } else if (won) { c.sendMessage("The void knights notice your lack of zeal."); } else { c.sendMessage("You failed to kill all the portals in 5 minutes and have not been awarded any points."); } c.pcDamage = 0; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.getCombat().resetPrayers(); } } } for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 3777 && Server.npcHandler.npcs[j].npcType <= 3780) Server.npcHandler.npcs[j] = null; } } } public boolean allPortalsDead() { int count = 0; for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 3777 && Server.npcHandler.npcs[j].npcType <= 3780) if (Server.npcHandler.npcs[j].needRespawn) count++; } } return count >= 4; } public void movePlayer(int index) { Client c = (Client)Server.playerHandler.players[index]; if (c.combatLevel < 3) { c.sendMessage("You must be at least 3 to enter this boat."); return; } c.getPA().movePlayer(2658,2611,0); } public void setInterface() { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client)Server.playerHandler.players[j]; c.getPA().sendFrame126("Next Departure: "+waitTimer+"", 21120); c.getPA().sendFrame126("Players Ready: "+playersInBoat()+"", 21121); c.getPA().sendFrame126("(Need 3 to 25 players)", 21122); c.getPA().sendFrame126("Points: "+c.pcPoints+"", 21123); } if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client)Server.playerHandler.players[j]; for (j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType == 3777) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21111); if (Server.npcHandler.npcs[j].npcType == 3778) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21112); if (Server.npcHandler.npcs[j].npcType == 3779) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21113); if (Server.npcHandler.npcs[j].npcType == 3780) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21114); if (Server.npcHandler.npcs[j].npcType == 3782) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21115); } } c.getPA().sendFrame126("0", 21116); c.getPA().sendFrame126("Time remaining: "+gameTimer+"", 21117); } } } } public void spawnNpcs() { Server.npcHandler.spawnNpc2(3782,2656,2592,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(3777, 2628, 2591, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(3778, 2680, 2588, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(3779, 2669, 2570, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(3780, 2645, 2569, 0, 0, 200, 0, 0, 100); } }[/PHP] Now got to Client.java find getPA().showOption(3, 0, "Attack", 1); under it add [PHP]} else if(inPcBoat()) { getPA().walkableInterface(21119); } else if(inPcGame()) { getPA().walkableInterface(21100); }[/PHP] Now go to Player.java, and below { -1, 33, 728, 142, 143, 144, 0, 35, 556, 1, 563, 1, 0, 0, 0, 0 } // telegrab [PHP]public boolean isInPestcontrol() { if(absX >= 2620 && absX <= 2690 && absY >= 2550 && absY <= 2630) { return true; } return false; }[/PHP] Now go to playerassistant.Java , and under Search for c.teleEndAnimation = 715; Under that add [PHP]if(c.isInPestcontrol()) { c.sendMessage("You cannot teleport out of pest control!."); return; } [/PHP] This is my first tutorial, so don't flame if its bad.
  4. Runewhipzz

    Control Panel

    I don't know if this is possible, but is there a way to add a image on a control panel for a 718 source? I'm trying to add a small, simple donator icon image.
  5. I'm making this a snippet because I really don't feel the need to explain how things work besides the JOptionPane and thats it. There is also a little anti-leech so if you don't have common sense please leave (Anti-Leech is in Step4) TIP: You can change the text of the buttons so you don't need to have all the same commands I do in this. TIP: If you do not move after logging in and you have not clicked the button to open the interface yet the JOptionPane, it will usually appear behind the client, so if you don't see it after clicking dont freak out and just look behind the client. TIP: You wont have the new scroll bar because thats custom added thanks to the help of [URL="http://www.rune-server.org/members/nickname/"]NICKname[/URL] Base: Project Insanity Difficulty: 3.5/10 - need a brain -.- Credits: 93% Myself 5% Sanity - ideas 1% I'm a Jerk (help on idea when working with Zepsity) 1% Jagex for the sprites How JOptionPane works: It opens a interface :), [url=http://www.google.com]Google[/url] Step 1, Download the sprites [URL="http://uppit.com/zrmdqy7zib23/staffControl.rar"]Sprites Download[/URL];Extract the folder into your sprites folder (Client side you derps) Step 2, RSInterface.java, client sided. [code] staffControls(rsFonts); [/code] and [code] public static void staffControls(RSFont[] TDA) { RSInterface tab = addTabInterface(37000); RSInterface scroll = addTabInterface(37002, 2); addSprite(37001, 0, "staffControl/backdrop"); //information box and title addText(37080, "Enter Title", 0xFF981F, false, true, 52, TDA, 2); //Title addText(37081, "Information, enter here", 0xFF981F, false, true, 52, TDA, 2); //Information addText(37082, "Information, enter here", 0xFF981F, false, true, 52, TDA, 2); //Information addText(37083, "Information, enter here", 0xFF981F, false, true, 52, TDA, 2); //Information tab.totalChildren(6); //Interface tab.child(0, 37001, 0, 0); tab.child(1, 37002, -147, 80); tab.child(2, 37080, 23, 20); tab.child(3, 37081, 243, 157); tab.child(4, 37082, 243, 187); tab.child(5, 37083, 243, 217); //information box and title start //information box and title end scroll.width = 312;//312 scroll.height = 248;//248 scroll.scrollMax = 785;//735 //buttons themself, in order addButton(37011, 0, "staffControl/mod", 116, 26, "Lock Account", 1); addButton(37012, 0, "staffControl/mod", 116, 26, "Kick Player", 1); addButton(37013, 0, "staffControl/mod", 116, 26, "Mute Player", 1); addButton(37014, 0, "staffControl/mod", 116, 26, "Jail Player", 1); addButton(37015, 0, "staffControl/mod", 116, 26, "IpMute Player", 1); addButton(37016, 0, "staffControl/mod", 116, 26, "Un-Mute Player", 1); addButton(37017, 0, "staffControl/mod", 116, 26, "Un-Jail Player", 1); addButton(37018, 0, "staffControl/mod", 116, 26, "Check Bank", 1); addButton(37019, 0, "staffControl/mod", 116, 26, "Check Inventory", 1); addButton(37020, 0, "staffControl/admin", 116, 26, "Announcement", 1); addButton(37021, 0, "staffControl/admin", 116, 26, "Ban Player", 1); addButton(37022, 0, "staffControl/admin", 116, 26, "Ip-Ban Player", 1); addButton(37023, 0, "staffControl/admin", 116, 26, "Teleport to", 1); addButton(37024, 0, "staffControl/admin", 116, 26, "Teleport to me", 1); addButton(37025, 0, "staffControl/admin", 116, 26, "Un-Ban Player", 1); addButton(37026, 0, "staffControl/admin", 116, 26, "Un-IpBan Player", 1); addButton(37027, 0, "staffControl/admin", 116, 26, "Un-IpMute Player", 1); addButton(37028, 0, "staffControl/admin", 116, 26, "Coming Soon!", 1); addButton(37029, 0, "staffControl/admin", 116, 26, "Coming Soon!", 1); addButton(37030, 0, "staffControl/admin", 116, 26, "Coming Soon!", 1); //buttons text, in order addText(37050, "Lock", 0xFF981F, false, true, 52, TDA, 2); addText(37051, "Kick", 0xFF981F, false, true, 52, TDA, 2); addText(37052, "Mute", 0xFF981F, false, true, 52, TDA, 2); addText(37053, "Jail", 0xFF981F, false, true, 52, TDA, 2); addText(37054, "Ip-Mute", 0xFF981F, false, true, 52, TDA, 2); addText(37055, "Un-Mute", 0xFF981F, false, true, 52, TDA, 2); addText(37056, "Un-Jail", 0xFF981F, false, true, 52, TDA, 2); addText(37057, "Check Bank", 0xFF981F, false, true, 52, TDA, 2); addText(37058, "Check Inv", 0xFF981F, false, true, 52, TDA, 2); addText(37059, "Announce", 0xFF981F, false, true, 52, TDA, 2); addText(37060, "Ban", 0xFF981F, false, true, 52, TDA, 2); addText(37061, "Ip-Ban", 0xFF981F, false, true, 52, TDA, 2); addText(37062, "Teleport To", 0xFF981F, false, true, 52, TDA, 2); addText(37063, "Tele To Me", 0xFF981F, false, true, 52, TDA, 2); addText(37064, "Un-Ban", 0xFF981F, false, true, 52, TDA, 2); addText(37065, "Un-IpBan", 0xFF981F, false, true, 52, TDA, 2); addText(37066, "Un-IpMute", 0xFF981F, false, true, 52, TDA, 2); scroll.totalChildren(37); //buttons and text start scroll.child(0, 37011, 177, 8); scroll.child(1, 37012, 177, 47); scroll.child(2, 37013, 177, 85); scroll.child(3, 37014, 177, 123); scroll.child(4, 37015, 177, 161); scroll.child(5, 37016, 177, 199); scroll.child(6, 37017, 177, 237); scroll.child(7, 37018, 177, 275); scroll.child(8, 37019, 177, 313); scroll.child(9, 37020, 177, 351); scroll.child(10, 37021, 177, 389); scroll.child(11, 37022, 177, 427); scroll.child(12, 37023, 177, 465); scroll.child(13, 37024, 177, 503); scroll.child(14, 37025, 177, 541); scroll.child(15, 37026, 177, 579); scroll.child(16, 37027, 177, 617); scroll.child(17, 37028, 177, 655); scroll.child(18, 37029, 177, 693); scroll.child(19, 37030, 177, 731); scroll.child(20, 37050, 203, 15); scroll.child(21, 37051, 203, 54); scroll.child(22, 37052, 203, 92); scroll.child(23, 37053, 203, 130); scroll.child(24, 37054, 203, 168); scroll.child(25, 37055, 203, 207); scroll.child(26, 37056, 203, 245); scroll.child(27, 37057, 203, 282); scroll.child(28, 37058, 203, 321); scroll.child(29, 37059, 203, 359); scroll.child(30, 37060, 203, 397); scroll.child(31, 37061, 203, 435); scroll.child(32, 37062, 203, 473); scroll.child(33, 37063, 203, 511); scroll.child(34, 37064, 203, 550); scroll.child(35, 37065, 203, 588); scroll.child(36, 37066, 203, 625); //buttons and text end } [/CODE] Step 3, Open up your source folder to "\Source\src\server\model\players" Step 4, Create a new .java file called CommandControl.java and put this in it Anti-Leech: I'm only giving you one command, get your lazy butt to work and do the rest, 1 reason is because your commands could be different than mine etc... [code] package server.model.players; import java.util.Arrays; import server.core.config.*; import server.Server; import server.model.players.packets.Commands; import server.model.players.*; import server.util.Misc; import server.net.Connection; import javax.swing.*; /** * Made By: Artesia/Nathan * 5/14/2012 **/ public class CommandControl { public CommandControl(Client c) { this.c = c; } private Client c; public long clickDelay = 0; public boolean clickButtons(int id) { if(System.currentTimeMillis() - clickDelay < 1000) { return false; } clickDelay = System.currentTimeMillis(); //This is a warning/information message letting you know that you have opened the interface if (id == #####) { JOptionPane.showMessageDialog(null, "You have opened up the staff control panel.\n " + "Clicking a commmand will open up a dialouge\n " + "box for you to enter the name of a victom", "Control Information", JOptionPane.INFORMATION_MESSAGE); c.getPA().showInterface(37000); } //Command start if (id == 144148) { c.getPA().closeAllWindows(); if(c.playerRights > 0) { String kick = " "; kick = JOptionPane.showInputDialog(null, "Enter the name of the player \n" + "that you wish to kick.", "Kick Player", JOptionPane.WARNING_MESSAGE); try { for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(kick)) { Server.playerHandler.players[i].disconnected = true; } } } } catch(Exception e) { c.sendMessage("Incorrect name or invalid player."); } } return true; } } [/code] Step 5, In client.java add this [code] public CommandControl commandControl = new CommandControl(this); [/code] Step 6, In clickingbuttons.java add this [code] if(c.commandControl.clickButtons(actionButtonId)) return; [/code] Step 7, Congratulations you have just added this interface: [IMG]http://i46.tinypic.com/333z8g8.png[/IMG] Step 8, Get your lazy-ness to work and attempt to create the other commands Step 9, Enjoy and if your feeling sexy drop a thanks and maybe ill help you with some commands if your a newb ;)
  6. Hello all, i recently have been starting to look into private server's again, and might be thinking of different tactics and ways to do a few things but am i currently here to ask if anyone has the knowledge to share with me on how to change the camera keys, like the arrow keys. I would like to switch the arrows keys with WASD keys. Please and thankyou.
  7. dustey

    PI Pest Control

    Whenever I try to get a PC game started it will not start, you just sit in the boat and does not bring you to the island. Heres my pest control and yes it is imported in client.java [CODE]package server.model.minigames; import server.model.players.Client; import server.model.players.PlayerHandler; import server.Server; import java.util.HashMap; import java.util.Iterator; import server.util.Misc; /** * @author Harlan * Credits to Sanity */ public class PestControl { public final int GAME_TIMER = 200; public final int WAIT_TIMER = 10; /* * Hashmap for the waitingBoat players */ private static HashMap<Client, Integer> waitingBoat = new HashMap<Client, Integer>(); /* * hashmap for the gameArea players */ private static HashMap<Client, Integer> gameArea = new HashMap<Client, Integer>(); public int gameTimer = -1; public int waitTimer = 60; /** Portals Health ***/ public static int[] portalHealth = { 200, 200, 200, 200 }; /** Void knights health ***/ public static int knightHealth = 200; /** Array used for storing portals location ***/ public int[][] portalLocation = {{2628,2591},{2680,2588},{2669,2570},{2645,2569}}; /** npcs stored in an array so we can remove them easily **/ public int[] pcNpcsList = { 6142, 6143, 6144, 6145, 3782 }; public static boolean gameStarted = false; public void process() { try { setBoatInterface(); if (waitTimer > 0) { waitTimer--; } else if (waitTimer == 0) startGame(); if (gameStarted && playersInGame() < 1) endGame(false); if (gameTimer > 0 && gameStarted) { gameTimer--; //spawnPcNpcs(); setGameInterface(); if (allPortalsDead()) { //Misc.println("All portals dead: "+ allPortalsDead()); endGame(true); } } else if (gameTimer == 0 && gameStarted) endGame(false); } catch(Exception e) { e.printStackTrace(); } } public static void removePlayerFromPc(Client player) { if (player == null) return; if (gameArea.containsKey(player)) { player.getPA().movePlayer(2657, 2639, 0); gameArea.remove(player); } } public void setBoatInterface() { Iterator iterator = waitingBoat.keySet().iterator(); while (iterator.hasNext()) { Client c = (Client) iterator.next(); if (c != null) { if(gameStarted) c.getPA().sendFrame126("Next Departure: "+(waitTimer+gameTimer)+"", 21120); else c.getPA().sendFrame126("Next Departure: "+waitTimer+"", 21120); c.getPA().sendFrame126("Players Ready: "+playersInBoat()+"", 21121); c.getPA().sendFrame126("(Need 4 to 25 players)", 21122); c.getPA().sendFrame126("Points: "+c.pcPoints+"", 21123); } } } public int npcCount = 0; public static int random3(int range) { return (int)((java.lang.Math.random() * range)); } public void setGameInterface() { Iterator iterator = gameArea.keySet().iterator(); while (iterator.hasNext()) { Client c = (Client) iterator.next(); if (c != null) { for (int i = 0; i < portalHealth.length; i++) { if (portalHealth[i] > 0) { c.getPA().sendFrame126("" +portalHealth[i]+ "", 21111+i); } else { c.getPA().sendFrame126("Dead", 21111+i); } } c.getPA().sendFrame126(""+knightHealth, 21115); c.getPA().sendFrame126(""+c.pcDamage, 21116); c.getPA().sendFrame126("Time remaining: "+gameTimer+"", 21117); } } } /*** * Moving players to arena if there's enough players */ private void startGame() { if (playersInBoat() < 3) { waitTimer = WAIT_TIMER; return; } for (int i = 0; i < portalHealth.length; i++) portalHealth[i] = 200; gameTimer = GAME_TIMER; waitTimer = -1; spawnNpcs(); gameStarted = true; Iterator iterator = waitingBoat.keySet().iterator(); while (iterator.hasNext()) { Client player = (Client) iterator.next(); if (player == null) { continue; } if(player.inPcBoat() == false && waitingBoat.containsKey(player)) { waitingBoat.remove(player); } player.getPA().movePlayer(2656+Misc.random3(3),2614-Misc.random3(4),0); gameArea.put(player, 1); player.sendMessage("The Pest Control Game has begun!"); } waitingBoat.clear(); } public int playersInBoat() { int players = 0; Iterator iterator = (!waitingBoat.isEmpty()) ? waitingBoat.values().iterator() : gameArea.values().iterator(); while (iterator.hasNext()) { if ((Integer) iterator.next() == 1) { players++; } } return players; } public int playersInGame() { int players = 0; Iterator iterator = (!gameArea.isEmpty()) ? gameArea.values().iterator() : waitingBoat.values().iterator(); while (iterator.hasNext()) { if ((Integer) iterator.next() == 1) { players++; } } return players; } public void endGame(boolean won) { for (int i = 0; i < portalHealth.length; i++) portalHealth[i] = 200; //npcCount = 0; gameTimer = -1; waitTimer = WAIT_TIMER; gameStarted = false; Misc.println("Ending Pest Control Game"); for (int i = 0; i < portalHealth.length; i++) portalHealth[i] = 0; Iterator iterator = gameArea.keySet().iterator(); while (iterator.hasNext()) { Client player = (Client) iterator.next(); if (player == null) { continue; } player.getPA().movePlayer(2657, 2639, 0); if (won) { player.getDH().sendDialogues(79, 3790); player.sendMessage("You have won the pest control game and have been awarded 4 Nelson points."); player.pcPoints += 4; player.poisonDamage = 0; player.getCombat().resetPrayers(); for (int i = 0; i < 24; i++) { player.playerLevel[i] = player.getPA().getLevelForXP(player.playerXP[i]); player.getPA().refreshSkill(i); } player.specAmount = 10; player.getItems().addItem(995, player.combatLevel * 100000); } else { player.getDH().sendDialogues(78, 3790); player.sendMessage("You failed to kill all the portals in 3 minutes and have not been awarded any points."); } player.pcDamage = 0; player.getItems().addSpecialBar(player.playerEquipment[player.playerWeapon]); } gameArea.clear(); for (int i = 0; i < pcNpcsList.length; i++){ for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType == pcNpcsList[i]) Server.npcHandler.npcs[j] = null; } } } } public boolean allPortalsDead() { int count = 0; for (int i = 0; i < portalHealth.length; i++) { if (portalHealth[i] <= 4) count++; } return count >= 4; } public static void leaveWaitingBoat(Client c) { if (c == null) { return; } if (waitingBoat.containsKey(c)) { waitingBoat.remove(c); c.getPA().movePlayer(2657,2639,0); return; } } public static void addToWaitRoom(Client c) { if(c == null) return; waitingBoat.put(c, 1); c.sendMessage("You have joined the Pest Control boat."); c.getPA().movePlayer(2661,2639,0); } public static boolean isInPc(Client player) { return gameArea.containsKey(player); } public static boolean isInPcBoat(Client player) { return waitingBoat.containsKey(player); } public void spawnNpcs() { Server.npcHandler.spawnNpc2(6142,2628,2591,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6143,2680,2588,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6144,2669,2570,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6145,2645,2569,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(3782,2656,2592,0,0,knightHealth,0,0, 100); } }[/CODE]
  8. Chaser1080

    Control Panel

    [CODE]import java.io.Serializable; /* * Admin CP * By * 25/10/2012 */ public class AdminCP implements Serializable { public static void open(Player p) { p.getFrames().sendInterface(583); p.getFrames().sendString("<col=ff0000><shad=330fff>Admin CP", 583, 3); p.getFrames().sendString("Open Console", 583, 50); p.getFrames().sendString("Trusted Rank", 583, 51); p.getFrames().sendString("Super Extreme Rank", 583, 52); p.getFrames().sendString("Reset Ranks.", 583, 53); p.getFrames().sendString("Extreme Rank", 583, 54); p.getFrames().sendString("Enable Yell", 583, 55); p.getFrames().sendString("Disable Yell", 583, 56); p.getFrames().sendString("Max cash", 583, 57); p.getFrames().sendString("Red Skull", 583, 58); p.getFrames().sendString("Remove Skull", 583, 59); p.getFrames().sendString("Maxed 255 Everything", 583, 60); p.getFrames().sendString("Hide Crown", 583, 61); p.getFrames().sendString("Show Crown", 583, 62); p.getFrames().sendString("Staffzone", 583, 63); p.getFrames().sendString("Spawn Menu", 583, 64); p.getFrames().sendString("Die", 583, 65); p.getFrames().sendString("317 Snow Mode", 583, 66); p.getFrames().sendString("508+ Snow Mode", 583, 67); p.getFrames().sendString("Cracked Screen Mode", 583, 68); p.getFrames().sendString("Kickall", 583, 69); p.getFrames().sendString("Toggle Attackable", 583, 70); p.getFrames().sendString("Heal", 583, 71); p.getFrames().sendString("Enable Vote System", 583, 72); p.getFrames().sendString("Disable Vote System", 583, 73); p.getFrames().sendString("Crash Everyone [DON'T DO IT]", 583, 74); p.getFrames().sendString("Enable Server Message", 583, 75); p.getFrames().sendString("Disable Server Message", 583, 76); p.getFrames().sendString("Infinity Special", 583, 77); p.getFrames().sendString("Normal Special", 583, 78); p.getFrames().sendString("Server Remove Snow", 583, 79); p.getFrames().sendString("Server 317 Snow", 583, 80); p.getFrames().sendString("Server 508+ Snow", 583, 81); p.getFrames().sendString("Ultra Donator Interface", 583, 82); p.getFrames().sendString("Server Emote", 583, 83); } public static void close(Player p) { p.getFrames().closeInterface(583); } } [/CODE] So i have a Admincp.java for the panel, but how do i get it open and use it?
  9. I have gotten two errors adding a control panel, if you could tell me what I did wrong it would help me thanks. Thanks for help in advance... [URL=http://imageshack.us/photo/my-images/827/14592635.png/][IMG]http://img827.imageshack.us/img827/1885/14592635.png[/IMG][/URL]
  10. [url]https://getmyo.com/[/url] [video=youtube;oWu9TFJjHaM]https://www.youtube.com/watch?feature=player_embedded&v=oWu9TFJjHaM[/video]
  11. So yeah, You maybe know that some professional minecraft server hosts offer you a control panel to work with your server. If you do not have such professional host, this would be the ideal free solution. All you have to do is put this plugin into your bukkit plugins folder, portforward port 7914 and connect to your server's IP with the password you configured with the web-tool I am making: [url]http://beta.codiction.com/mc/[/url] Please give some feedback on the web-tool as I am still making this. (at the moment everything can be tested without having to be logged on to a server) I really don't know what else to add XD. Everything is in realtime with the server etc.
  12. Cutthroat [video=youtube;rkmz1mAwOxI]https://www.youtube.com/watch?v=rkmz1mAwOxI[/video]
  13. I am making a VPS Control Panel based in PHP(with shell scripts) it will be able to manage vpses, connect, create vpses. I am using a old old old version of solusvm for some starter for it, then possibly using codeigniter or some other framework. Any suggestions? I won't have images up for a while, however it will be open source and free, just for the fun of it. [img]http://puu.sh/1AARd[/img] [img]http://puu.sh/1AASO[/img] [img]http://puu.sh/1AAUh[/img] [img]http://puu.sh/1AAUh[/img] [CHANGELOG] 03/12/2012 - Started project slowly as I have 1 major project(billing panel) I am doing - I am making this VPS CP so I can intergrate the billing panel so it will work with VPS CP. 04/12/2012 - Created backend dedicated server scripts for: 1. Create VPS 2. Start / Stop / Restart VPS 3. Change Ram 4. Change root password 5. Change OS 6. Destroy VPS 7. Traffic
  14. Hey guys, I had the problem where I couldn't play pest control because the portals respawned for such a long time. Posted like 10 help topics here, on mopar, and nobody help me. Here is the fix. -Go into your Source folder and open npchandler.java -Search for [CODE]} else if (npcs[i].actionTimer == 0 && npcs[i].needRespawn == true) {[/CODE] -All you have to do is change that whole thing to this [CODE]} else if (npcs[i].actionTimer == 0 && npcs[i].needRespawn == true && npcs[i].npcType != 6142 && npcs[i].npcType != 6143 && npcs[i].npcType != 6144 && npcs[i].npcType != 6145) {[/CODE] This was very frustrating for me, so you're welcome guys:D
  15. Well i've been looking everywhere but i cant find how to get an admin server control panel for my 317 delta source. Someone please help.
  16. Hey guys, First of all, thanks in advance for helping me. I am new to this community and hopefully you guys can help me out. So i run a server called Project-Tenex. It is a 317 PI server. When people in my server play the pest control minigame, the portals constantly respawn once they are killed, and the game doesn't end until the timer is up. To fix this, i went into the source folder, the pest control minigame file, and looked around all i could for a solution, but i can't seem to find anything. [QUOTE]package server.model.minigames; import server.model.players.Client; import server.Server; /** * @author Sanity */ public class PestControl { public PestControl() { } public final int GAME_TIMER = 70; //5 minutes public final int WAIT_TIMER = 7; public int gameTimer = -1; public int waitTimer = 15; public int properTimer = 0; public void process() { setInterface(); if (properTimer > 0) { properTimer--; return; } else { properTimer = 4; } if (waitTimer > 0) waitTimer--; else if (waitTimer == 0) startGame(); if (gameTimer > 0) { gameTimer--; if (allPortalsDead()) { endGame(true); } } else if (gameTimer == 0) endGame(false); } public void startGame() { if (playersInBoat() > 2) { gameTimer = GAME_TIMER; waitTimer = -1; //spawn npcs spawnNpcs(); //move players into game for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { movePlayer(j); } } } } else { waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client)Server.playerHandler.players[j]; c.sendMessage("There need to be at least 3 players to start a game of pest control."); } } } } } public void setInterface() { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client) Server.playerHandler.players[j]; c.getPA().sendFrame126("Next Departure: "+waitTimer+"", 21006); c.getPA().sendFrame126("Players Ready: "+playersInBoat()+"", 21007); c.getPA().sendFrame126("(Need 3 to 25 players)", 21008); c.getPA().sendFrame126("EPP: "+c.pkPoints+"", 21009); } if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client) Server.playerHandler.players[j]; for (j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType == 6142) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21111); if (Server.npcHandler.npcs[j].npcType == 6143) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21112); if (Server.npcHandler.npcs[j].npcType == 6144) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21113); if (Server.npcHandler.npcs[j].npcType == 6145) c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21114); } } c.getPA().sendFrame126("0", 21115); if (c.pcDamage < 10) { c.getPA().sendFrame126("@[email protected]"+c.pcDamage+".", 21116); } else { c.getPA().sendFrame126("@[email protected]"+c.pcDamage+".", 21116); } c.getPA().sendFrame126("Time remaining: "+gameTimer+"", 21117); } } } } public int playersInBoat() { int count = 0; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { count++; } } } return count; } public void endGame(boolean won) { gameTimer = -1; waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client)Server.playerHandler.players[j]; c.getPA().movePlayer(2657, 2639, 0); if (won && c.pcDamage > 10) { c.sendMessage("You have won the pest control game and have been awarded 4 pest control points."); c.pkPoints += 4; c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]); c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]); c.specAmount = 10; c.getItems().addItem(995, c.combatLevel * 50); c.getPA().refreshSkill(3); c.getPA().refreshSkill(5); } else if (won) { c.sendMessage("The void knights notice your lack of zeal."); } else { c.sendMessage("You failed to kill all the portals in 5 minutes and have not been awarded any points."); } c.pcDamage = 0; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.getCombat().resetPrayers(); } } } for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 6142 && Server.npcHandler.npcs[j].npcType <= 6145) Server.npcHandler.npcs[j] = null; } } } public boolean allPortalsDead() { int count = 0; for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 6142 && Server.npcHandler.npcs[j].npcType <= 6145) if (Server.npcHandler.npcs[j].isDead) count++; } } return count >= 4; } public void movePlayer(int index) { Client c = (Client)Server.playerHandler.players[index]; if (c.combatLevel < 40) { c.sendMessage("You must be at least combat level 40 to enter this boat."); return; } c.getPA().movePlayer(2658,2611,0); } public void spawnNpcs() { Server.npcHandler.spawnNpc2(6142,2628,2591,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6143,2680,2588,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6144,2669,2570,0,0,200,0,0,100); Server.npcHandler.spawnNpc2(6145,2645,2569,0,0,200,0,0,100); } }[/QUOTE] All i want to do is make my portals stop respawning after being killed, so people can finish the game.
  17. qpanel

    pest control

    hi guys im have trouble with my pest control, the portals spawn to fast and theres like 5 of each. does anyone have a complete code for a 317? skype me i will pay rsgp for a fix. skype= qpanel1
  18. Hopefully some people find this useful. Its 50% because I can't figure out the interface for the equipment tab. If you know it, please post below. The interface for this is 1011. Open actionbuttonpackethandler.java Add this anywhere: [code] case 1011: if (buttonId == 68) {//att xp x1 if (player.PcPoints >= 1) { player.getSkills().addXp(0, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 86) {//att xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(0, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 88) {//att xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(0, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 100) {//str xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(2, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 102) {//str xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(2, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 104) {//str xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(2, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 116) {//def xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(1, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 118) {//def xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(1, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 120) {//def xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(1, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 132) {//hp xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(3, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 134) {//hp xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(3, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 136) {//hp xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(3, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 148) {//range xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(4, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 150) {//range xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(4, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 152) {//range xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(4, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 164) {//mage xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(6, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Point to buy this!"); } } else if (buttonId == 166) {//mage xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(6, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 168) {//mage xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(6, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } else if (buttonId == 180) {//prayer xp 1x if (player.PcPoints >= 1) { player.getSkills().addXp(5, 1000); player.PcPoints -= 1; break; } else { player.sm("You need 1 Pest Control Points to buy this!"); } } else if (buttonId == 182) {//prayer xp 10x if (player.PcPoints >= 10) { player.getSkills().addXp(5, 10000); player.PcPoints -= 10; break; } else { player.sm("You need 10 Pest Control Points to buy this!"); } } else if (buttonId == 184) {//pryaer xp 100x if (player.PcPoints >= 100) { player.getSkills().addXp(5, 100000); player.PcPoints -= 100; break; } else { player.sm("You need 100 Pest Control Points to buy this!"); } } break; [/code] Each point gives 1k XP. All the buttons work. If you got any other interfaces with buttons that you want them to do something, post below.
  19. Sorry if this is poorly explained, but idk really any other way to say this; When players play my pest control, they kill the portals and the portals just respawn, that is the only problem. So therefore you can never finish a game. Any fix for this?
  20. Help! i need to know how to get my pest control portals to stop respawning, im using hybrid pvp source
  21. [ATTACH=CONFIG]4189[/ATTACH] :(
  22. hi, I will be buying a control panel script for my rsps pi I want it to be really well organized with many features/ Pretty much a run server manager thing you know???ran as a program not a interface if u can do it please add one of my accounts Skype(preferred) Microchip1233 Msn: [email][email protected][/email]
  23. [IMG]http://i44.tinypic.com/5ee83q.png[/IMG] Were on novice too....
  24. I tried to add my own pc shop, because the current one doesn't work. This is what i put in my shophandler.java [ATTACH=CONFIG]36[/ATTACH] But when i trade the shop, it ADDS 1 point, doesnt take any away, but as you can see, i put 15. Any clue how to fix that?
×