Jump to content

Search the Community

Showing results for tags 'random'.



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

  1. Hello everyone, First off I'd like to say Merry Christmas to everyone of RuneLocus. I will be releasing one of the features I added to some of my servers' over the years. I figured there wasn't a better time to release this than today on Christmas so enjoy and please comment if you intend to use. While I am basically giving you this code and expecting you to add it like a snippet I will be breaking it down so that you can understand it and use to it build onto for more locations, etc. So let us begin.. Base: PI Difficulty: 1/10 Classes Edited: PlayerAssistant.java, NPCHandler.java, ActionHandler.java [B]NOTE: This will require newer NPCs as the Penguins were not released until a higher revision. Also, if you don't have some of the the methods uses please post and I will put them up for use.[/B] [B][U][SIZE=3]Step One:[/SIZE][/U][/B] Open up PlayerAssistant.java. [code] public int[][] penguinRewards = { //Item ID, Amount {995,5000}, // COINS (5K) {995,10000}, // COINS (10K) {1514,15}, // Magic Logs 15 {1514,25}, // Magic Logs 25 {1632,2}, // D STONE (2) {565,50}, // BLOODS (250) {560,50}, // DEATHS (250) {561,50}, // NATURES (250) {1516,200}, // Yew Logs 200 {1516,300}, // Yew Logs 300 {392,25}, // Manta {892,50}, // Rune Arrow {386,60}, // Shark {5295,3}, // Ranaar Seed {1514,30}, // Magic Log {2364,15} // Rune bar }; public int[][] penguinLocations = { //X Coord, Y Coord HEIGHT {3224,3211,0}, // Lumbridge Spawn {3261,3432,0}, // Varrock Spawn {2947,3391,0}, // Falador Spawn {2707,3477,0}, // Camelot Spawn {2678,3318,0}, // Ardy Spawn {2596,3077,0}, // Yanille Spawn {3551,3280,0} // Barrows Spawn }; public String[][] penguinLocationsName = { //Using the following sentence: You can find him "insertthistexthere". {"wandering Lumbridge."}, // Lumbridge Spawn {"wandering Varrock."}, // Varrock Spawn {"wandering Falador."}, // Falador Spawn {"wandering Camelot."}, // Camelot Spawn {"wandering Ardougne."}, // Ardy Spawn {"wandering Yanille."}, // Yanille Spawn {"wandering Barrows' hills."} // Barrows Spawn }; private int[] penguinSpawn = {8104,8105,8107,8108,8109}; private int penguinSpawn() { return penguinSpawn[(int) (Math.random() * penguinSpawn.length)]; } public void handlePenguins() { int penguinSpawn = (int) (Math.random() * (penguinLocations.length - 1)); int Penguin = penguinSpawn(); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; Server.npcHandler.spawnNpc2(Penguin, penguinLocations[penguinSpawn][0], penguinLocations[penguinSpawn][1], penguinLocations[penguinSpawn][2], 1, 1, 1, 1, 1); c2.sendMessage("@[email protected]: A penguin has been spawned."); c2.sendMessage("@[email protected] can be found "+penguinLocationsName[penguinSpawn][0]+""); } } } public void givePengItem() { int addItem = (int) (Math.random() * (penguinRewards.length - 1)); int ITEM = penguinRewards[addItem][0]; int AMOUNT = penguinRewards[addItem][1]; c.getItems().addItem(ITEM, AMOUNT); c.sendMessage("You've obtained: "+c.getItems().getItemName(ITEM)+"."); } [/code] Search for: [code] public void startTeleport(int x, int y, int height, String teleportType) { [/code] Underneath: [code] removeAllWindows();[/code] Add: [code] if (Misc.random(7000) >= 6990) { handlePenguins(); } [/code] [SPOILER=Code Breakdown] Breaking down the above code: [code] public int[][] penguinRewards = { //Item ID, Amount {995,5000}, // COINS (5K) {995,10000}, // COINS (10K) {1514,15}, // Magic Logs 15 {1514,25}, // Magic Logs 25 {1632,2}, // D STONE (2) {565,50}, // BLOODS (250) {560,50}, // DEATHS (250) {561,50}, // NATURES (250) {1516,200}, // Yew Logs 200 {1516,300}, // Yew Logs 300 {392,25}, // Manta {892,50}, // Rune Arrow {386,60}, // Shark {5295,3}, // Ranaar Seed {1514,30}, // Magic Log {2364,15} // Rune bar };[/code] This code is of course used for the different types of rewards you could obtain upon the finding of the Penguins. Pretty self-explanitory, the server grabs a random one of these and gives you the item and the amount, this can be added on to very easily by simply adding another: {4151,1}, // Whip. [code]public int[][] penguinLocations = { //X Coord, Y Coord HEIGHT {3224,3211,0}, // Lumbridge Spawn {3261,3432,0}, // Varrock Spawn {2947,3391,0}, // Falador Spawn {2707,3477,0}, // Camelot Spawn {2678,3318,0}, // Ardy Spawn {2596,3077,0}, // Yanille Spawn {3551,3280,0} // Barrows Spawn };[/code] An important chunk of the tutorial, this code contains the X Coord, Y Coord, and Height of where the NPC will spawn when it is spawned. You can add onto this by adding a comma {3551,3280,0} <-----HERE // Barrows Spawn and then adding a new {XXXX,YYYY,HEIGHTLEVEL} // WHEREISTHIS. [B]NOTE: IT IS IMPORTANT NOT TO MESS UP THE ORDER OF THE CODE OR THE COORDINATES AND THE LOCATION NAME WILL BE MESSED UP. ADD ONTO IT NOT INTO THE MIDDLE/TOP OF IT.[/B] [code] public String[][] penguinLocationsName = { //Using the following sentence: You can find him "insertthistexthere". {"wandering Lumbridge."}, // Lumbridge Spawn {"wandering Varrock."}, // Varrock Spawn {"wandering Falador."}, // Falador Spawn {"wandering Camelot."}, // Camelot Spawn {"wandering Ardougne."}, // Ardy Spawn {"wandering Yanille."} // Yanille Spawn {"wandering Barrows' hills."} // Barrows Spawn[/code] The other important chunk of code which contains a small string indicating where the penguin is for the player to find him. Much like above you can add onto it using the very same pricinpal. [B]NOTE: IT IS IMPORTANT NOT TO MESS UP THE ORDER OF THE CODE OR THE COORDINATES AND THE LOCATION NAME WILL BE MESSED UP. ADD ONTO IT NOT INTO THE MIDDLE/TOP OF IT.[/B] [code]private int[] penguinSpawn = {8104,8105,8107,8108,8109}; private int penguinSpawn() { return penguinSpawn[(int) (Math.random() * penguinSpawn.length)]; }[/code] Simply put, this code takes all the different penguins that are hidden in objects, and picks one randomly. [code] public void handlePenguins() { int penguinSpawn = (int) (Math.random() * (penguinLocations.length - 1)); int Penguin = penguinSpawn(); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; Server.npcHandler.spawnNpc2(Penguin, penguinLocations[penguinSpawn][0], penguinLocations[penguinSpawn][1], penguinLocations[penguinSpawn][2], 1, 1, 1, 1, 1); c2.sendMessage("@[email protected]: A penguin has been spawned."); c2.sendMessage("@[email protected] can be found "+penguinLocationsName[penguinSpawn][0]+""); } } }[/code] This is the core of the code which generates the random penguin ID, and his location. Once selected it will spawn the NPC globally and globally annouce to all online players the whereabouts of the penguin. [code] public void givePengItem() { int addItem = (int) (Math.random() * (penguinRewards.length - 1)); int ITEM = penguinRewards[addItem][0]; int AMOUNT = penguinRewards[addItem][1]; c.getItems().addItem(ITEM, AMOUNT); c.sendMessage("You've obtained: "+c.getItems().getItemName(ITEM)+"."); }[/code] Finally we have the code which randomly picks and item from the penguin table and gives you the item and the amount shown. Pretty simple stuff. [/SPOILER] Save and Close PlayerAssitant.java [B][U][SIZE=3]Step Two: [/SIZE][/U][/B] Open up NPCHandler.java. [code]public void DeleteNPC(int npc, int emote, String message) { for (int i = 0; i < maxNPCs; i++) { if (npcs[i] != null) { if (npcs[i].npcType == npc) { startAnimation(emote, i); npcs[i].animUpdateRequired = true; npcs[i].updateRequired = true; npcs[i].forceChat(""+message+""); npcs[i].isDead = true; } } } }[/code] Copy the above code into an appropriate section. Find: [code]public int getRespawnTime(int i) {[/code] Place: [code] case 8104: case 8105: case 8107: case 8108: case 8109: return -1; [/code] [SPOILER=Code Breakdown] [code]public void DeleteNPC(int npc, int emote, String message) { for (int i = 0; i < maxNPCs; i++) { if (npcs[i] != null) { if (npcs[i].npcType == npc) { startAnimation(emote, i); npcs[i].gfx100(gfx); npcs[i].animUpdateRequired = true; npcs[i].updateRequired = true; npcs[i].forceChat(""+message+""); npcs[i].isDead = true; } } } }[/code] This code, when called upon will do a few things, it will make the NPC selected do an emote, say a string (message), and die. This helps as we need to kill the Penguin once other players have found him successfully. [code] case 8104: case 8105: case 8107: case 8108: case 8109: return -1; [/code] This is to make sure that the penguins do not respawn after the players have found them, the only way the SHOULD respawn is when the event is called again. [/SPOILER] Save and Close NPCHandler.java. [B][U][SIZE=3]Step Three:[/SIZE][/U][/B] Open ActionHandler.java. Find your First Click NPC Packet, inside place this: [code] case 8104: case 8105: case 8107: case 8108: case 8109: Server.npcHandler.DeleteNPC(npcType, -1, -1, "Oh dear "+c.playerName+"! You've found me!"); c.getPA().givePengItem(); break;[/code] [SPOILER=Code Breakdown] [code] case 8104: case 8105: case 8107: case 8108: case 8109: Server.npcHandler.DeleteNPC(npcType, -1, -1, "Oh dear "+c.playerName+"! You've found me!"); c.getPA().givePengItem(); break;[/code] This is calling that new code we put in earlier in Step Two, when found the NPC is killed and deleted from the game, the reward is also given. [/SPOILER] Save and Close ActionHandler.java [img]http://puu.sh/7UZYg.jpg[/img] That should be everything, well I hope anyway, a lot of text just typed up and I hope I didn't miss anything. :)
  2. I get this Error - "Cannot find symbol int i = Utils.getRandom(159);" It points at Utils. I feel like I've missed something really simple :palm: [code] else if(npc.getId() == 9400 && player.getTask().getSanta() == 0) { player.getPackets().sendGameMessage("Here's a present!"); player.getTask().currentSantaAmount = 1; int[] RandomItems = {995, 996, }; //Other ids go in there as well int i = Utils.getRandom(159); player.getInventory().addItem(RandomItems[i], 1);[/code]
  3. The usage of this file? -Starts a random event once the max limit of experience has been gained. (based on the way how jagex did it) I've seen some terrible systems done e.g timer task that is a terrible way of doing it. [CODE]package server.model.players.plugin; import java.util.Random; import server.model.players.Client; import server.util.Tile; /** * * @author FUZENSETH * [MENTION=98951]infor[/MENTION]mation RS2 Random events coordinator. */ public class RandomEventCoordinator { /** Instance */ private static RandomEventCoordinator singleton = null; private static Tile oldTile = null; /** Constants */ private int experienceTreshold = 0; public static final int MAX_EXPERIENCE = 8_000; public static final boolean ENABLED = false; /** * If the player has the maxinum experience, we would create the new event by returning true. * [MENTION=184045]return[/MENTION] */ public boolean hasMaxinumExperience() { if (getEarnedExperience() > MAX_EXPERIENCE) { reset(); return true; } else return false; } /** * The areas where random events cannot be created. * [MENTION=184045]return[/MENTION] */ public static final boolean restrictedAreas(Client c) { if (c.absX > 2100 && c.absX < 2390 && c.absY > 4500 && c.absY < 4700 || //nightmare zone c.absX >= 2360 && c.absX <= 2445 && c.absY >= 5045 &&c. absY <= 5125 || //fight caves c.absX >= 2065 && c.absX <= 2111 && c.absY >= 4415 && c.absY <= 4455 || //jail c.absX >= 2300 && c.absX <= 2600 && c.absY >= 4780 && c.absY <= 4500 //recipefordisaster ) return true; return false; } /** * Processes the file. * [MENTION=75098]Para[/MENTION]m player */ public void coordinate(Client player) { if (restrictedAreas(player) && !(ENABLED)) return; if (hasMaxinumExperience() && !player.inWild() && !player.inDuel) { oldTile = new Tile(player.absX, player.absY, player.heightLevel); RandomEventPlugin.create(player); } } /** * Increases total experience treshold. * [MENTION=75098]Para[/MENTION]m amount */ public void incrementCounter(int amount) { experienceTreshold += amount; } /** * Gets the total of earned experience, * [MENTION=184045]return[/MENTION] */ public int getEarnedExperience() { return experienceTreshold; } /** * Resets the counter. */ public void reset() { experienceTreshold = 0; } /** Gets the old world tile before the random event starts. */ public Tile getWorldTile() { return oldTile; } /** Coordinator's singleton, if the singleton isn't loaded * then it will be. */ public static RandomEventCoordinator getSingleton() { if (singleton == null) singleton = new RandomEventCoordinator(); return singleton; } } [/CODE] Edit: Tile class [code]package server.util; /** * @author Fuzen Seth * [MENTION=98951]infor[/MENTION]mation Represents the RS2 game tile. * * */ public class Tile { /** constants */ private int x = 3087; private int y = 3503; private int plane = 0; /** Constructs a new tile */ public Tile(int x, int y, int plane) { this.x = x; this.y = y; this.plane = plane; } public Tile(int x, int y) { this.x = x; this.y = y; } public int getX() { return x; } public int getY() { return y; } public int getPlane() { return plane; } } [/code]
  4. when a player relogs their spawn location changes and they move to a random place. so whenever i update my server everyone logs in in a totally random place. does anyone know how to fix this so people stay in the same place as they logged off with
  5. Uhm.. its hard to explain but sometimes when my players are on and someone tries to log out, or will randomly happen sometimes. Players will start disconnecting and rolling back to the last time they logged in. Is there a way to add auto-saves every five minutes orso. OR if players DC it auto saves their account. Or a way to even stop DCs in general. I will screenshot the error messages in the server next time it happens.
  6. [CENTER][IMG]http://www.runehq.com/image/geitems/c/casket.gif[/IMG] [B]Hello again, this tutorial is on how to add a clickable casket that gives a random item from a string of item id's which you can change to your liking. Files Needed : PlayerAssistant.java , ClickItem.java & ActionHandler.java Skills Needed : Ctrl + C and Ctrl + V Difficulty : 3/10 To begin with, you want to head over to PlayerAssistant.java, found in src\server\model\players. You then want to search for [/B][QUOTE]public static int Barrows[][/QUOTE][B] , below the end of that line add [/B][QUOTE]public static int Casket[] = {};[/QUOTE] [B]This line of code will hold the item id's. So an example of mine was[/B] [QUOTE]public static int Casket[] = {995,2434,2434,2434,315,361,1333,1331,995,379,385,385,385,7630,7630,4129,1161,1163,1093,1079,1081,1083,1085,4718,7630,7630,7630,7630,7630,7630,7630,7630,1067,1069,1071,1073,1075,1077,1101,1103,1105,1107,1109,1111,1153,1155,1157,1159,1161,1191,1193,1195,1197,1199,1323,1325,1327,1329,1331,995,315,361,1333,1331,995,379,385,385,385,7630,7630,7630,7630,4129,1161,1163,1093,1079,1081,1083,1085,4718,7630,7630,7630,7630,1067,1069,1071,1073,1075,1077,1101,1103,1105,1107,1109,1111,1153,1155,1157,1159,1161,1191,1193,1195,1197,1199,1323,1325,1327,1329,1331};[/QUOTE][B] Just make sure you separate each item id with a comma. Secondly, head over to ActionHandler.java, found in src\server\model\players. Search for[/B] [QUOTE]public void firstClickObject[/QUOTE][B] , then below[/B] [QUOTE]switch(objectType) {[/QUOTE][B] add[/B] [QUOTE]case 405: if (c.getItems().freeSlots() >= 1) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); } break;[/QUOTE] [B]What this does is, checks if the user has enough space to open the casket, if so deletes the casket, then continues to add a item from the list of id's you declared. Lastly, open up ClickItem.java, which if normally found in src\server\model\players\packets. Now search for [/B][QUOTE]public void processPacket[/QUOTE][B] and with the rest of the if statements add [/B][QUOTE]if(itemId == 405) { c.getItems().deleteItem(405, 1); c.getItems().addItem(c.getPA().randomCasket(), 1); c.sendMessage("You recieve loot!"); }[/QUOTE][B] What this does is check if the item clicked had the id of 405 ( Casket ID is 405 ), deletes the casket from their inventory, adds a random item from the list of id's and send a message to the player, which can be customised. That's pretty much it, don't forget to add imports if you don't already have them, remember Eclipse will add them in for you, so I would recommend using it if you are a beginner. Thanks for checking out my second tutorial, feel free to make any suggestions on other tutorials, or any fixes or improvements for this! If you have any errors post them below and I will try to respond and get them fixed as soon as I can.[/B][/CENTER]
  7. Hi there, I've been struggling around with npc forcetalking, I know how to make npc's say a forced line once, to the required optionhandling that you choose. like this. else if(npc.getId() == 20000) npc.setNextForceTalk(new ForceTalk("Test message")); This is just an example that i got for optionhandling 1, this would make npc 20000 say test message forced, But now my question. Is it possible to make Npc's Forcetalk By themselfs over time? Without interacting with them. And is it possible to make these messages timed aswell?, With this i mean take as example a npc that has 4 lines to say line 1: npc.setNextForceTalk(new ForceTalk("This is my first message!")); - Forced after 5 seconds- npc.setNextForceTalk(new ForceTalk("And that's my second message")); - forced 5 seconds after line 1- npc.setNextForceTalk(new ForceTalk("And that's my Third message")); - forced 5 seconds after line 2 npc.setNextForceTalk(new ForceTalk("And that's my Last message")); - forced 5 seconds after line 3- Do i need to make a new class for it etc?, Some help with this would be great. If everything is possible that i just mentioned, Could some-one make an example for it? Thank's for reading it! Best regards Drakthuro.
  8. [CENTER][B]Cart remove the need for a prefix because this can apply to any revision![/B][/CENTER] I posted a similar version of this code on a thread on Rune-Server and wanted to see what you all think of the idea. This is a random event coordinator that fires random events for a random amount of players (between 1 and 10) based on global experience gain rather than bulky timers, etc, etc... the default experience threshold is a random number between 8 million and 20 million but the system supports custom ranges as well. I know that most, if not all bases have custom experience rates but that is fine because all you would have to do is multiply the experience threshold by the experience factor and you would most likely see realistic results. Here is some example code so you can get an idea of how this would be done: [URL="http://pastebin.com/RX5W1YT9"]RandEventCoordinator.java[/URL] I tested a more complete version of this on the Avarrocka server and it worked magnificently so I figured I would post an idea of how I got it done so you can all benefit from it. Sources: [URL="http://runescape.wikia.com/wiki/Random_events"]Random events - The RuneScape Wiki[/URL]
  9. MOD [ATTACH=CONFIG]8572[/ATTACH] ADMIN [ATTACH=CONFIG]8573[/ATTACH] VIP [ATTACH=CONFIG]8574[/ATTACH] I know they're basic but they worked.
  10. Just been messing around with GUI more. [code] import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.UIManager; public class Application extends JFrame implements KeyListener, MouseListener, ActionListener { private static final long serialVersionUID = 7233635702464989012L; JTextField userInputText = new JTextField("Send a message", 100); JTextArea textArea = new JTextArea(); JButton sendMessageButton = new JButton("Send"); String username = ""; public static void main(String[] args) { new Application(); } private Application() { super("Skype"); this.setSize(300, 400); this.setResizable(false); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLocationRelativeTo(null); this.add(userInputText); userInputText.setBounds(5, 340, 200, 25); userInputText.addKeyListener(this); userInputText.addMouseListener(this); this.add(sendMessageButton); this.sendMessageButton.setBounds(213, 339, 70, 25); this.sendMessageButton.addActionListener(this); this.add(textArea); this.textArea.setEditable(false); this.textArea.setSize(0, 0); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); String tempUsername = JOptionPane.showInputDialog(null, "What is your username?", "Skype", JOptionPane.QUESTION_MESSAGE); username = tempUsername; if (tempUsername == null) { System.exit(0); } } catch (Exception e) { e.printStackTrace(); } this.setVisible(true); } [MENTION=15855]Over[/MENTION]ride public void mouseReleased(MouseEvent event) { userInputText.setText(""); } [MENTION=15855]Over[/MENTION]ride public void keyReleased(KeyEvent event) { if (event.getKeyCode() == KeyEvent.VK_ENTER) { String parseText = userInputText.getText(); textArea.setLineWrap(true); textArea.append(username + ": " + parseText + "\n"); userInputText.setText(""); this.textArea.setSize(0, 0); } } [MENTION=15855]Over[/MENTION]ride public void actionPerformed(ActionEvent event) { String parseText = userInputText.getText(); textArea.setLineWrap(true); textArea.append(username + ": " + parseText + "\n"); userInputText.setText(""); this.textArea.setSize(0, 0); } [MENTION=15855]Over[/MENTION]ride public void keyPressed(KeyEvent event) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void keyTyped(KeyEvent event) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseClicked(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseEntered(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseExited(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mousePressed(MouseEvent arg0) { // TODO Auto-generated method stub } } [/code] [IMG]http://i.imgur.com/i8PGyRy.png[/IMG] [IMG]http://i.imgur.com/d0vQi3l.png[/IMG] [MENTION=444]Stacx[/MENTION] This isn't a joke, tell me everything that needs to be improved.
  11. Does anyone else have this problem? There is always a random DC every hour or two, not everyone gets kicked though, its only 30% of the player population... does anyone know the cause?.
  12. Base: PI Difficulty: Copy & Paste Hello, Zygaria here. I'm releasing my class i just wrote. What this does is gives you four methods for boxes for donations or w/e you want. Make a new class w/e you want & name it DonatorReward. put this in clickItem.java [code] case 11846: DonatorReward.addBarrowsReward(c); break; case 15246: DonatorReward.addRareReward(c); break; case 6183: DonatorReward.addGodwarsReward(c); break; case 14664: DonatorReward.addChaoticReward(c); break; [/code] Here's the class. [code] package game; import game.player.*; import engine.util.*; /** * [MENTION=52317]auth[/MENTION]or Thee Legacy */ /** * * Random Boxes for Donaters. * Can be anything, I've added three boxes. * You may add as many as your heart desires. * */ public class DonatorReward { private static int[][] randomGodwars = {//item id: 6183 {11732, 1}, {11730, 1}, {11694, 1}, {11696, 1}, {11698, 1}, {11700, 1}, {11724, 1}, {11726, 1}, {11728, 1}, {11718, 1}, {11720, 1}, {11722, 1}, {20135, 1}, {20139, 1}, {20143, 1}, {20147, 1}, {20151, 1}, {20155, 1}, {20159, 1}, {20163, 1}, {20167, 1}, {20171, 1} }; private static int[][] randomBarrows = {//item id: 11846 {4708, 1}, {4710, 1}, {4712, 1}, {4714, 1}, {4716, 1}, {4718, 1}, {4720, 1}, {4722, 1}, {4724, 1}, {4726, 1}, {4728, 1}, {4730, 1}, {4732, 1}, {4734, 1}, {4736, 1}, {4738, 1}, {4745, 1}, {4747, 1}, {4749, 1}, {4751, 1}, {4753, 1}, {4755, 1}, {4757, 1}, {4759, 1} }; private static int[][] randomChaotic = {//item id: 14664 {18349, 1}, {18351, 1}, {18353, 1}, {18355, 1}, {18357, 1}, {18359, 1} }; private static int[][] rareRewards = {//item id: 15246 {1037, 1}, {1038, 1}, {1040, 1}, {1042, 1}, {1044, 1}, {1046, 1}, {1048, 1}, {1050, 1}, {1053, 1}, {1055, 1}, {1057, 1} }; public static int generateBarrowsReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addBarrowsReward(Player c) { int items = 11846; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateBarrowsReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomBarrows.length - 1); c.getItems().addItem(randomBarrows[rareRandom][0], randomBarrows[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your barrows box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateRareReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addRareReward(Player c) { int items = 15246; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateRareReward(); switch(reward) { case 3: int rareRandom = Misc.random(rareRewards.length - 1); c.getItems().addItem(rareRewards[rareRandom][0], rareRewards[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your rare box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateGodwarsReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addGodwarsReward(Player c) { int items = 6183; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateGodwarsReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomGodwars.length - 1); c.getItems().addItem(randomGodwars[rareRandom][0], randomGodwars[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your godwars box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateChaoticReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addChaoticReward(Player c) { int items = 14664; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateChaoticReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomChaotic.length - 1); c.getItems().addItem(randomChaotic[rareRandom][0], randomChaotic[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your chaotic box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } } [/code]
  13. vBulletin PD

    Random DC's

    Hey, people are randomly disconnecting, once they logout their account will automatically be banned. Basically I sat there for 5 minutes doing nothing and I got disconnected then banned, anyone got a fix? Would appreciate it. I'll even pay.
  14. I am randomly playing on my server and it just crashes and my account gets nulled? any ideas?
  15. I was coding fine then suddenly i got these errors? I'm not sure if I accidentally deleted something .. [URL=http://s585.photobucket.com/user/pksom1/media/Help.png.html][IMG]http://i585.photobucket.com/albums/ss293/pksom1/Help.png[/IMG][/URL]
  16. [COLOR=#800080][FONT=lucida grande][SIZE=4][FONT=georgia]Here is an old joke that I found in my email. My grandma emailed this to me back in 2009. I thought it was pretty cute. xD So I thought I'd share it with you guys. =) [/FONT][/SIZE][/FONT][/COLOR][FONT=lucida grande][COLOR=#333333] [/COLOR][/FONT][TABLE] [TR] [TD][FONT=garamond][FONT=times new roman][COLOR=#000000][FONT=Arial][FONT=arial][FONT=times new roman][TABLE] [TR] [TD][FONT=Arial][SIZE=2][FONT=Arial][SIZE=6][COLOR=#ff409f][U][I][B]A man is driving along a highway and sees a rabbit jump out across the middle of the road.[/B][/I][/U][/COLOR][/SIZE] [/FONT][/SIZE][/FONT][CENTER][CENTER][FONT=Arial][SIZE=2] [/SIZE][/FONT][FONT=Arial][SIZE=2][SIZE=6][B][FONT=Arial][COLOR=#800080]He swerves to avoid hitting it, but unfortunately the rabbit jumps right in front of the car..[/COLOR] [/FONT][/B][/SIZE][B][FONT=Arial] [SIZE=5][COLOR=#0000ff]The driver, A sensitive man as well as an animal lover, pulls over and gets out to see What has become of the rabbit. Much to his dismay, the rabbit is the [COLOR=#ff0000][COLOR=#222222]Easter[/COLOR] Bunny[/COLOR], and he is [/COLOR][/SIZE][/FONT][/B][SIZE=5][SIZE=6][B][COLOR=red][FONT=Arial]DEAD [/FONT][/COLOR][/B][/SIZE][B][FONT=Arial].[/FONT][/B][/SIZE][B][FONT=Arial] [SIZE=5][COLOR=#800080]The driver feels so awful [/COLOR][/SIZE][/FONT][/B][SIZE=5][COLOR=#800080][B][COLOR=black][FONT=Arial]that he begins to cry.[/FONT][/COLOR][/B][/COLOR][FONT=Arial] [/FONT][B][FONT=Arial][COLOR=#800080]A beautiful blonde woman driving down the highway Sees a man crying on the side of the road And pulls over.[/COLOR][/FONT][/B][/SIZE][B][FONT=Arial] [/FONT][/B][B][FONT=Arial] [SIZE=2][COLOR=#ff0000]She steps out of the car and asks the man what's wrong. [/COLOR][/SIZE][/FONT][/B][SIZE=5][B][FONT=Arial] [/FONT][/B][B][FONT=Arial] [COLOR=#800080]"I feel terrible," ! He explains, "I accidentally hit the [COLOR=#222222]Easter[/COLOR]Bunny with my car and KILLED HIM."[/COLOR][/FONT][/B][B][FONT=Arial] [COLOR=#ff0000]The blonde says, "Don't worry." [/COLOR][/FONT][/B][B][FONT=Arial] [COLOR=#0000ff]She runs to her car And pulls out a spray can. She walks over to the limp, dead [COLOR=#222222]Easter[/COLOR] Bunny , Bends down, And sprays the contents onto him. [/COLOR][/FONT][/B][/SIZE][B][FONT=Arial] [SIZE=5][COLOR=#800080]The [COLOR=#222222]Easter[/COLOR] Bunny jumps up, Waves its paw at the two of them And hops off down the road.[/COLOR][/SIZE][/FONT][/B][COLOR=#800080][SIZE=5][B][COLOR=black][FONT=Arial] [COLOR=#0000ff]Ten feet away he stops, Turns around and waves again,[/COLOR][/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial] [/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial][COLOR=#0000ff]He hops down the road another 10 feet, Turns and waves, [/COLOR][/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial] [COLOR=#0000ff]Hops another ten feet, Turns and waves,[/COLOR][/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial] [COLOR=#0000ff]And repeats this again and again and again and again, Until he hops out of sight.[/COLOR][/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial] The man is astonished. He runs over to the woman and demands,[/FONT][/COLOR][/B][B][COLOR=blue][FONT=Arial] "What is in that can? What did you spray on the [COLOR=#222222]Easter[/COLOR] Bunny ?" [/FONT][/COLOR][/B][B][COLOR=black][FONT=Arial] [COLOR=#ff0000]The woman turns the can around So that the man can read the label.[/COLOR][/FONT][/COLOR][/B][/SIZE][B][COLOR=navy][FONT=Arial] [/FONT][/COLOR][/B][COLOR=black][FONT=Arial] [/FONT][/COLOR][B][COLOR=black][FONT=Arial][COLOR=#ff0000] [SIZE=7]It says..[/SIZE][/COLOR][/FONT][/COLOR][/B][SIZE=7][B][COLOR=#8000FF][FONT=Arial] (Are you ready for this?)[/FONT][/COLOR][COLOR=#00FF40][FONT=Arial] (Are you sure?)[/FONT][/COLOR][/B][B][COLOR=teal][FONT=Arial] (You know you're gonna be sorry) [/FONT][/COLOR][/B][B][COLOR=#FF0080][FONT=Arial] (Last chance)[/FONT][/COLOR][/B][I][FONT=Arial] (OK, here it is)[/FONT][/I][B][COLOR=#8000FF][FONT=Arial] It says,[/FONT][/COLOR][/B][/SIZE][B][COLOR=black][FONT=Arial] [/FONT][/COLOR][/B][B][U][COLOR=red][FONT=Arial] [SIZE=3]"Hair Spray[/SIZE][/FONT][/COLOR][/U][/B][SIZE=3][B][COLOR=black][FONT=Arial] Restores life to dead hair, And adds permanent wave."[/FONT][/COLOR][/B][/SIZE][/COLOR][/SIZE][/FONT][/CENTER] [/CENTER] [/TD] [/TR] [/TABLE] [/FONT] [/FONT] [/FONT][/COLOR] [/FONT] [/FONT] [/TD] [/TR] [/TABLE]
  17. Hi, I am starting an RSPS using the Project Insanity Source, but I have a small problem. Random commands aren't working. Some examples being ::item, ::ban, ::mute, and ::npc. My character rights are set to 3. My Commands.java is as follows: [CODE] package server.model.players.packets; 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.util.Misc; import server.world.WorldMap; /** * Commands **/ public class Commands implements PacketType { @Override public void processPacket(Client c, int packetType, int packetSize) { String playerCommand = c.getInStream().readString(); if(Config.SERVER_DEBUG) Misc.println(c.playerName+" playerCommand: "+playerCommand); 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(c.playerRights >= 0) { if (playerCommand.equalsIgnoreCase("players")) { c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " players online."); } /*if (playerCommand.startsWith("shop")) { c.getShops().openShop(Integer.parseInt(playerCommand.substring(5))); }*/ if (playerCommand.startsWith("changepassword") && playerCommand.length() > 15) { c.playerPass = playerCommand.substring(15); c.sendMessage("Your password is now: " + c.playerPass); } if (playerCommand.startsWith("ioi")) { String[] args = playerCommand.split(" "); c.getItems().itemOnInterface(Integer.parseInt(args[1]), Integer.parseInt(args[2])); } /*if (playerCommand.startsWith("setlevel")) { if (c.inWild()) return; for (int j = 0; j < c.playerEquipment.length; j++) { if (c.playerEquipment[j] > 0) { c.sendMessage("Take off your shit idiot.."); return; } } try { String[] args = playerCommand.split(" "); int skill = Integer.parseInt(args[1]); int level = Integer.parseInt(args[2]); 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.equals("spec")) { if (!c.inWild()) c.specAmount = 10.0; } if (playerCommand.startsWith("object")) { String[] args = playerCommand.split(" "); c.getPA().object(Integer.parseInt(args[1]), c.absX, c.absY, 0, 10); } if (playerCommand.equals("gwd")) { c.getPA().movePlayer(2905, 3611, 4); } if (playerCommand.equals("gwd2")) { c.getPA().movePlayer(2905, 3611, 8); } if (playerCommand.equals("gwd3")) { c.getPA().movePlayer(2905, 3611, 12); } 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.equalsIgnoreCase("mypos")) { c.sendMessage("X: "+c.absX); c.sendMessage("Y: "+c.absY); } if (playerCommand.startsWith("item")) { 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]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); System.out.println("Spawned: " + newItemID + " by: " + c.playerName); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::item 995 200"); } } catch (Exception e) { }*/ } if(c.playerRights >= 3) { /*if (playerCommand.startsWith("task")) { c.taskAmount = -1; c.slayerTask = 0; } if (playerCommand.startsWith("starter")) { c.getDH().sendDialogues(100, 945); }*/ if (playerCommand.equalsIgnoreCase("mypos")) { c.sendMessage("X: "+c.absX); c.sendMessage("Y: "+c.absY); } if (playerCommand.startsWith("reloaddrops")) { Server.npcDrops = null; Server.npcDrops = new server.model.npcs.NPCDrops(); /*for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("[" + c.playerName + "] " + "NPC Drops have been reloaded."); } }*/ } if (playerCommand.startsWith("yell")) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("[" + c.playerName + "]: " + playerCommand.substring(7)); } } } if (playerCommand.startsWith("reloadshops")) { Server.shopHandler = new server.world.ShopHandler(); } if (playerCommand.startsWith("fakels")) { int item = Integer.parseInt(playerCommand.split(" ")[1]); Server.clanChat.handleLootShare(c, item, 1); } 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("update")) { String[] args = playerCommand.split(" "); int a = Integer.parseInt(args[1]); PlayerHandler.updateSeconds = a; PlayerHandler.updateAnnounced = false; PlayerHandler.updateRunning = true; PlayerHandler.updateStartTime = System.currentTimeMillis(); } if (playerCommand.startsWith("item")) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::pickup 995 200"); } } catch(Exception e) { } } if (playerCommand.equalsIgnoreCase("Vote")) { for (int j = 0; j < Server.playerHandler.players.length; j++) if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.getPA().sendFrame126("www.google.ca", 12000); } } if (playerCommand.equalsIgnoreCase("debug")) { Server.playerExecuted = true; } if (playerCommand.startsWith("interface")) { try { String[] args = playerCommand.split(" "); int a = Integer.parseInt(args[1]); c.getPA().showInterface(a); } catch(Exception e) { c.sendMessage("::interface ####"); } } if(playerCommand.startsWith("www")) { c.getPA().sendFrame126(playerCommand,0); } 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("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("ipban")) { // use as ::ipban name 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 Is Offline."); } } if (playerCommand.startsWith("ban") && playerCommand.charAt(3) == ' ') { // use as ::ban name 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 Is 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 Is Offline."); } } if (playerCommand.startsWith("anim")) { String[] args = playerCommand.split(" "); c.startAnimation(Integer.parseInt(args[1])); c.getPA().requestUpdates(); } if (playerCommand.startsWith("mute")) { 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 Is Offline."); } } 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); break; } } } } catch(Exception e) { c.sendMessage("Player Is 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 Is Offline."); } } if (playerCommand.startsWith("unmute")) { try { String playerToBan = playerCommand.substring(7); Connection.unMuteUser(playerToBan); } catch(Exception e) { c.sendMessage("Player Is Offline."); } } } } } [/CODE]
  18. So i'm wondering what's the difference between those 3 [CODE]if (playerCommand.equals(""))[/CODE] [CODE]if (playerCommand.startsWith(""))[/CODE] [CODE]if (playerCommand.equalsIgnoreCase(""))[/CODE] I'm guessing if it's equals, then command doesn't work no matter what i write behind it? And with startswith it still works no matter what i write behind it? But i have no clue what is equalsIgnoreCase...
  19. okay so this is a little comedy series I'm making, it will get funnier and have others involved, but this is the first episode of it, love it or hate it! [B][U]Random OSRS - Episode 1 - Bob Died[/U][/B] [video=youtube;Qm7S3sbAbGc]http://www.youtube.com/watch?v=Qm7S3sbAbGc[/video]
  20. BZB

    50 random facts.

    Here are 50 random facts. [url=http://postimage.org/][img]http://s1.postimage.org/y9q1nl93j/dc58e3a306451c9d670adcd37004f48f.jpg[/img][/url] [url=http://postimage.org/]image sharing[/url]
  21. Slik

    Random thought

    Let's say Jesus is real. Let's also assume God and the Devil are also real. If there was an all out battle between JUST Jesus and the Devil, who would you say wins? We're assuming here that the Devil has the ability to take on God himself, rules the underworld (hell) which means he is more powerful than any demon/evil spirit fathomable. Pretty sure the Devil would hand Jesus's ass to him, probably brainwash him while he is at it and manipulate him into convincing the populous that it is God who is evil and that Jesus is the true son of the Devil himself. Hoping some religious nutbags reply, btw I mean to no offence with this post. It is just a thought. Don't worry, whatever God you believe in is still safe. My words won't hurt him/her/it.
  22. Okay so everything is going smoothly except for one thing... Sometimes when you login the client will crash... If I open the characters .dat file in an editor of some sort and change the x or the y to say 0 and 0 then login it doesn't crash, Does anyone know the cause or fix? If I know the cause i should be able to figure it out.
  23. I tried many things to get this fixed it seems to just keep the symbol there can anyone help me? Picture of the error below. [ATTACH=CONFIG]7075[/ATTACH]
  24. Dear RuneLocus users, i've wanted to start up an Runescape Private Server again, not as in putting it online ( well I might ) but just to develop on an maybe release it on here. But i've got a probleme that i've never got, whenever I try to RUN the server I go on it and attempt to log in it says its offline. Yes, i've changed the host to my recent created no-ip host, nor does local host work. i'd appriciate it if someone knows a fix. Kind Regards, Amelia.
×