Had quiet some fun playing this server, thanks for the contribution!
|
Because the command for dumping npcs drops in the commands.java is pretty crappy & crashes the server when using, here is a cleaner version:
Uncomment the two comments to dump a file with just announced rare items.Code:if(playerCommand.startsWith("npcdrops")) { String input = playerCommand.substring(9); for (int k = 0; k < Config.NPC_DROPS.length; k++) {//Loop I found inside of NPChandler for drops int npcId = Config.NPC_DROPS[k][0]; String npcName = Server.npcHandler.getNpcListName(Config.NPC_DROPS[k][0]).toLowerCase(); //Npc Name based off the npcId in drop rates int dropId = Config.NPC_DROPS[k][1]; int amount = Config.NPC_DROPS[k][2]; //amount in drop rates int rarity = Config.NPC_DROPS[k][3]; //if (rarity >= 150) { String itemname = ItemDefinition.forId(dropId).getName(); //Gets item name from npc drops try { BufferedWriter coord = new BufferedWriter(new FileWriter("./NpcDrops.txt", true)); try { if (Integer.valueOf(input) == 1) { //Sort with item names first coord.write(itemname +" (x"+amount+") is dropped by "+npcName.replace("_", " ") + " with a 1/"+((rarity == 0) ? 1 : rarity)+" rarity."); coord.newLine(); } else if (Integer.valueOf(input) == 2) { //Sort with npc names first coord.write(npcName.replace("_", " ")+" drops (x"+amount+") "+ itemname +" with a 1/"+((rarity == 0) ? 1 : rarity)+" rarity."); coord.newLine(); } else { player.sendGameMessage("Invalid Format. ::npcdrops 2(itemnames) or 3 (npcnames)"); break; } } finally { coord.close(); } } catch (Exception e) { player.sendGameMessage("Invalid Format. ::npcdrops(space)number"); } //} } }
Decided to release because I gave to someone already.
Everytime I do what you say, My server loads properly and I uploaded everything to dropbox and shit, but my client just says unzipping RAR and then says connection error 5,...,connection error 10,.., ec cetera...
I don't know how to fix it so that i'm able to get the client to connect to the server, other than that great job detailing how to run the source and ec cetera.
Thanks
-Oren
Delete everything that has to do with the current cache, and download a fresh one from the link. You didn't need to change the cache link in order to play, thats for if you want to update the cache/release the server to others. So, your best bet would be to put the old link back in the cachedownloader.java, change the version back to 13, and put the original cache back in your user folder
looks like every server out there. the text structure of your post makes my eyes bleed. my suggestion is to be more creative in how the server is structured, and how does the content you add to the game impact it? does it provide meaning/add to the experience, or are you just shoving random shit into the server for the sake of feeling productive.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |