Jump to content

Search the Community

Showing results for tags 'work'.



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

  1. i have tried to log on to most web clients and it doesn't work, what software do i need to download the desktop clients and how do i install them?
  2. I have a few problems [LIST=1] [*]I cant get it online [*]Im not sure what files to include when sending it to a friend [*] [/LIST] So If anyone could please help pm me or add me on skype hunter.holler1 Please help!!!!!
  3. Hey guys! So i started to make a server today and compiler doesn't work? i have this in it: [QUOTE] @echo off title Skills-Scape - Compiler C:\Program Files\Java\jdk1.8.0_05\bin\ pause[/QUOTE] and it says c:/ isnt an intern ( its dutch so cant translate an 100% ) Can anyone help me please?
  4. Hi, i've been trying to make a webclient for my own server it's the last piece that I need before releasing but I'm having a couple of issues. Here is the issue I'm having and what I tried to do in order to solve this issue (no luck till now). The Issue is that the webclient is yielding an error [B][COLOR="#B22222"]Client.class[/COLOR][/B]. What I did is simply follow a webclient guide and it just won't work. 1- I jar'd my client using eclipse ( the client itself works but in the webclient it won't work ). ERROR [COLOR="#B22222"]Client.class[/COLOR] 2- I jar'd my client using Jar Maker ( the client and the webclient won't launch ). ERROR [COLOR="#B22222"]Client.class[/COLOR] 3- I Jar'd my client but selected the folder that has the Client.class in it which is the src folder. ( the client and webclient won't launch ). ERROR [COLOR="#B22222"]Client (wrong name: src/Client)[/COLOR] No idea what to do at this point I'd appreciate some help. This is the html I'm using in case your wondering. [CODE]<HTML> <HEAD> <TITLE>YOUR CLIENT</TITLE> <body bgcolor="black"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD> <BODY> <center> <applet name="BlaBla" width="765" height="503" archive="[COLOR="#B22222"]MYCLIENT.jar[/COLOR]" code="Client.class"> <param name="java_arguments" value="-Xmx1024m"> </applet> <p> <font color="white"><b>Anything Here!</b> <I> Anything Here! </br> Anything Here! </I></font> </BODY> </HTML> [/CODE] NOTE:- 1- Yes I have my own webhost but it's also not working. 2- Using xammpp to test won't work. 3- Opening the html file alone also the client won't load. (All the same errors)
  5. hey, I am very busy coding my server and when i try'd to put it online for a frend of me so he can help me finding problems in the server i noticed that the autodownloader for the cache doesn't work. So than i did try it out myself i did deleate the cache but than i get this problem to, now i have a file called "autodownloader" I am pretty sure there is something i need to chance but this is first time i need to do that myself. what is in this autodownloader? now check this out. [CODE]import java.io.*; import java.net.*; import java.util.zip.*; import java.util.Enumeration; import javax.swing.JOptionPane; import sign.signlink; public class CacheDownloader { public client client; public final int BUFFER = 1024; public static final int VERSION = 2; public String cacheLink = "www.dropbox.com/s/3k5uih8dcud2hfp/Chaos317.zip?m"; public String fileToExtract = getCacheDir() + getArchivedName(); public CacheDownloader(client client) { this.client = client; } public void drawLoadingText(String text) { client.drawLoadingText(35, text); } public void drawLoadingText(int amount, String text) { client.drawLoadingText(amount, text); } public String getCacheDir() { return signlink.findcachedir(); } public String getCacheLink() { return cacheLink; } public int getCacheVersion() { return VERSION; } private void alert(String msg){ alert("Message",msg,false); } private void alert(String title,String msg,boolean error){ JOptionPane.showMessageDialog(null, msg, title, (error ? JOptionPane.ERROR_MESSAGE : JOptionPane.PLAIN_MESSAGE)); } public void DoesNotHaveCacheMessage() { alert("You do not have the cache. Cache will now be downloaded, please do not interrupt the download!"); alert("If Client goes white, it's unpacking cache - let it load!!"); } public CacheDownloader downloadCache() { try { File location = new File(getCacheDir()); File version = new File(getCacheDir() + "/cacheUpdate" + getCacheVersion() + ".dat"); if(!location.exists()) { //delete(getCacheDir()); DoesNotHaveCacheMessage(); downloadFile(getCacheLink(), getArchivedName()); unZip(); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheUpdate" + getCacheVersion() + ".dat")); versionFile.close(); deleteDownloadedZipFile(getArchivedName()); } else { if(!version.exists()) { DoesNotHaveCacheMessage(); //delete(getCacheDir()); downloadFile(getCacheLink(), getArchivedName()); unZip(); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheUpdate" + getCacheVersion() + ".dat")); versionFile.close(); deleteDownloadedZipFile(getArchivedName()); } else { return null; } } } catch(Exception e) { } return null; } public void downloadFile(String adress, String localFileName) { OutputStream out = null; URLConnection conn; InputStream in = null; try { URL url = new URL(adress); out = new BufferedOutputStream(new FileOutputStream(getCacheDir() + "/" +localFileName)); conn = url.openConnection(); in = conn.getInputStream(); byte[] data = new byte[BUFFER]; int numRead; long numWritten = 0; int length = conn.getContentLength(); while((numRead = in.read(data)) != -1) { out.write(data, 0, numRead); numWritten += numRead; int percentage = (int)(((double)numWritten / (double)length) * 100D); drawLoadingText(percentage, "Downloading Cache " + percentage + "%"); } drawLoadingText("Finished downloading "+getArchivedName()+"!"); } catch (Exception exception) { exception.printStackTrace(); } finally { try { if (in != null) { in.close(); } if (out != null) { out.close(); } } catch (IOException ioe) { } } } public String getArchivedName() { int lastSlashIndex = getCacheLink().lastIndexOf('/'); if (lastSlashIndex >= 0 && lastSlashIndex < getCacheLink().length() -1) { return getCacheLink().substring(lastSlashIndex + 1); } else { } return ""; } public void deleteDownloadedZipFile(String fileName) { File f = new File(getCacheDir() + fileName); if (!f.exists()) throw new IllegalArgumentException("Delete: no such file or directory: " + fileName); if (!f.canWrite()) throw new IllegalArgumentException("Delete: write protected: " + fileName); if (f.isDirectory()) { String[] files = f.list(); if (files.length > 0) throw new IllegalArgumentException("Delete: directory not empty: " + fileName); } boolean success = f.delete(); if (!success) throw new IllegalArgumentException("Delete: deletion failed"); } public static boolean delete( String path ) { if (path == null || path.trim().length() == 0) return false; return delete(new File(path)); } public static boolean delete( File fileOrDirectory ) { if (fileOrDirectory == null) return false; if (!fileOrDirectory.exists()) return false; if (fileOrDirectory.isDirectory()) { for (File childFile : fileOrDirectory.listFiles()) { delete(childFile); } } return fileOrDirectory.delete(); } public void unZip() { try { InputStream in = new BufferedInputStream(new FileInputStream(fileToExtract)); ZipInputStream zin = new ZipInputStream(in); ZipEntry e; while((e=zin.getNextEntry()) != null) { if(e.isDirectory()) { (new File(getCacheDir() + e.getName())).mkdir(); } else { if (e.getName().equals(fileToExtract)) { unzip(zin, fileToExtract); break; } unzip(zin, getCacheDir() + e.getName()); } } zin.close(); } catch(Exception e) { e.printStackTrace(); } } public void unzip(ZipInputStream zin, String s) throws IOException { FileOutputStream out = new FileOutputStream(s); byte [] b = new byte[BUFFER]; int len = 0; while ((len = zin.read(b)) != -1) { out.write(b,0,len); } out.close(); } }[/CODE] I am coding not very long but i understand the basic at most but people tell this is basic also but i dont get this at the moment i hope someone will/can help me out. Please dont say stop coding or crap like this since that isn't helpfull at all and i really try my best learning this. thanks already for all help i get :D Greetings, darkchaos
  6. well first of all dont use capitals, just enter justin. also make sure your rights are the same, so admin = 2 and so on. if the commands are under admin commands and you have player rights you will be able to use the command, if you cant work it out il show you how
  7. Hello everyone. As my title states, my Home Teleport button isn't working. It just won't work. My code should be correct, see for yourself: [CODE]case 50056: String type = c.playerMagicBook == 0 ? "modern" : "ancient"; c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, type); break;[/CODE] It won't even teleport me anywhere. I click the button and it does nothing. However, my other teleport buttons work. This is really strange, could anyone help? Thanks.
  8. When I click the fishing spot nothing at all happens ActionHandler [CODE]package server.model.players; import server.Config; import server.Server; import server.model.content.RandomObject; import server.model.objects.Object; import server.model.players.skills.Fishing; import server.util.Misc; public class ActionHandler { private Client c; public ActionHandler(Client Client) { this.c = Client; } public void firstClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; //c.sendMessage("Object type: " + objectType); switch(objectType) { case 2465: c.getPA().movePlayer(2917, 3624, 0); c.sendMessage("Welcome to godwars, you need a 20 killcount before entering."); break; case 2467: c.getPA().movePlayer(3087, 3500, 0); break; case 9356: c.getPA().enterCaves(); c.sendMessage("If your wave doesn't spawn, please logout and back in!"); break; case 12356: c.getPA().startTeleport(1900, 5354, 2, "modern"); break; case 2466: c.getDH().sendDialogues(2244, 0); break; case 13291: RandomObject.clickChest(c); break; case 2492: if (c.killCount >= 20) { c.getDH().sendOption4("Armadyl", "Bandos", "Saradomin", "Zamorak"); c.dialogueAction = 20; } else { c.sendMessage("You need 20 kill count before teleporting to a boss chamber."); } break; case 3192: c.getHighscores().openHighscores(); break; case 1765: c.getPA().movePlayer(2271, 4680, 0); break; case 2882: case 2883: if (c.objectX == 3268) { if (c.absX < c.objectX) { c.getPA().walkTo(1,0); } else { c.getPA().walkTo(-1,0); } } break; case 272: c.getPA().movePlayer(c.absX, c.absY, 1); break; case 273: c.getPA().movePlayer(c.absX, c.absY, 0); break; case 411: case 412: if (c.playerMagicBook == 0) { c.playerMagicBook = 2; c.setSidebarInterface(6, 29999); c.sendMessage("A Lunar wisdomin fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); //modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 6552: if (c.playerMagicBook == 0) { c.playerMagicBook = 1; c.setSidebarInterface(6, 12855); c.sendMessage("An ancient wisdomin fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); //modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 1816: c.getPA().startTeleport2(2271, 4680, 0); break; case 1817: c.getPA().startTeleport(3067, 10253, 0, "modern"); break; case 1814: //ardy lever c.getPA().startTeleport(3153, 3923, 0, "modern"); break; case 1733: c.getPA().movePlayer(c.absX, c.absY + 6393, 0); break; case 1734: c.getPA().movePlayer(c.absX, c.absY - 6396, 0); break; case 9357: c.getPA().resetTzhaar(); break; case 8959: if (c.getX() == 2490 && (c.getY() == 10146 || c.getY() == 10148)) { if (c.getPA().checkForPlayer(2490, c.getY() == 10146 ? 10148 : 10146)) { new Object(6951, c.objectX, c.objectY, c.heightLevel, 1, 10, 8959, 15); } } break; case 2213: case 14367: case 11758: case 3193: c.getPA().openUpBank(); break; case 10177: c.getPA().movePlayer(1890, 4407, 0); break; case 10230: c.getPA().movePlayer(2900, 4449, 0); break; case 10229: c.getPA().movePlayer(1912, 4367, 0); break; case 2623: if (c.absX >= c.objectX) c.getPA().walkTo(-1,0); else c.getPA().walkTo(1,0); break; //pc boat case 14315: c.getPA().movePlayer(2661,2639,0); break; case 14314: c.getPA().movePlayer(2657,2639,0); break; case 1596: case 1597: if (c.getY() >= c.objectY) c.getPA().walkTo(0,-1); else c.getPA().walkTo(0,1); break; case 14235: case 14233: if (c.objectX == 2670) if (c.absX <= 2670) c.absX = 2671; else c.absX = 2670; if (c.objectX == 2643) if (c.absX >= 2643) c.absX = 2642; else c.absX = 2643; if (c.absX <= 2585) c.absY += 1; else c.absY -= 1; c.getPA().movePlayer(c.absX, c.absY, 0); break; case 14829: case 14830: case 14827: case 14828: case 14826: case 14831: //Server.objectHandler.startObelisk(objectType); Server.objectManager.startObelisk(objectType); break; case 4387: //Server.castleWars.joinWait(c,1); break; case 4388: //Server.castleWars.joinWait(c,2); break; case 4408: //Server.castleWars.joinWait(c,3); break; case 9369: if (c.getY() > 5175) c.getPA().movePlayer(2399, 5175, 0); else c.getPA().movePlayer(2399, 5177, 0); break; case 9368: if (c.getY() < 5169) { Server.fightPits.removePlayerFromPits(c.playerId); c.getPA().movePlayer(2399, 5169, 0); } break; case 4411: case 4415: case 4417: case 4418: case 4419: case 4420: case 4469: case 4470: case 4911: case 4912: case 1747: case 1757: //Server.castleWars.handleObjects(c, objectType, obX, obY); break; case 2286: case 154: case 4058: case 2295: case 2285: case 2313: case 2312: //barrows //Chest case 10284: if(c.barrowsKillCount < 5) { c.sendMessage("You haven't killed all the brothers."); } if(c.barrowsKillCount == 5 && c.barrowsNpcs[c.randomCoffin][1] == 1) { c.sendMessage("I have already summoned this npc."); } if(c.barrowsNpcs[c.randomCoffin][1] == 0 && c.barrowsKillCount >= 5) { Server.npcHandler.spawnNpc(c, c.barrowsNpcs[c.randomCoffin][0], 3551, 9694-1, 0, 0, 120, 30, 200, 200, true, true); c.barrowsNpcs[c.randomCoffin][1] = 1; } if((c.barrowsKillCount > 5 || c.barrowsNpcs[c.randomCoffin][1] == 2) && c.getItems().freeSlots() >= 2) { c.getPA().resetBarrows(); c.getItems().addItem(c.getPA().randomRunes(), Misc.random(150) + 100); if (Misc.random(2) == 1) c.getItems().addItem(c.getPA().randomBarrows(), 1); c.getPA().startTeleport(3564, 3288, 0, "modern"); } else if(c.barrowsKillCount > 5 && c.getItems().freeSlots() <= 1) { c.sendMessage("You need at least 2 inventory slot opened."); } break; //doors case 6749: if(obX == 3562 && obY == 9678) { c.getPA().object(3562, 9678, 6749, -3, 0); c.getPA().object(3562, 9677, 6730, -1, 0); } else if(obX == 3558 && obY == 9677) { c.getPA().object(3558, 9677, 6749, -1, 0); c.getPA().object(3558, 9678, 6730, -3, 0); } break; case 6730: if(obX == 3558 && obY == 9677) { c.getPA().object(3562, 9678, 6749, -3, 0); c.getPA().object(3562, 9677, 6730, -1, 0); } else if(obX == 3558 && obY == 9678) { c.getPA().object(3558, 9677, 6749, -1, 0); c.getPA().object(3558, 9678, 6730, -3, 0); } break; case 6727: if(obX == 3551 && obY == 9684) { c.sendMessage("You cant open this door.."); } break; case 6746: if(obX == 3552 && obY == 9684) { c.sendMessage("You cant open this door.."); } break; case 6748: if(obX == 3545 && obY == 9678) { c.getPA().object(3545, 9678, 6748, -3, 0); c.getPA().object(3545, 9677, 6729, -1, 0); } else if(obX == 3541 && obY == 9677) { c.getPA().object(3541, 9677, 6748, -1, 0); c.getPA().object(3541, 9678, 6729, -3, 0); } break; case 6729: if(obX == 3545 && obY == 9677){ c.getPA().object(3545, 9678, 6748, -3, 0); c.getPA().object(3545, 9677, 6729, -1, 0); } else if(obX == 3541 && obY == 9678) { c.getPA().object(3541, 9677, 6748, -1, 0); c.getPA().object(3541, 9678, 6729, -3, 0); } break; case 6726: if(obX == 3534 && obY == 9684) { c.getPA().object(3534, 9684, 6726, -4, 0); c.getPA().object(3535, 9684, 6745, -2, 0); } else if(obX == 3535 && obY == 9688) { c.getPA().object(3535, 9688, 6726, -2, 0); c.getPA().object(3534, 9688, 6745, -4, 0); } break; case 6745: if(obX == 3535 && obY == 9684) { c.getPA().object(3534, 9684, 6726, -4, 0); c.getPA().object(3535, 9684, 6745, -2, 0); } else if(obX == 3534 && obY == 9688) { c.getPA().object(3535, 9688, 6726, -2, 0); c.getPA().object(3534, 9688, 6745, -4, 0); } break; case 6743: if(obX == 3545 && obY == 9695) { c.getPA().object(3545, 9694, 6724, -1, 0); c.getPA().object(3545, 9695, 6743, -3, 0); } else if(obX == 3541 && obY == 9694) { c.getPA().object(3541, 9694, 6724, -1, 0); c.getPA().object(3541, 9695, 6743, -3, 0); } break; case 6724: if(obX == 3545 && obY == 9694) { c.getPA().object(3545, 9694, 6724, -1, 0); c.getPA().object(3545, 9695, 6743, -3, 0); } else if(obX == 3541 && obY == 9695) { c.getPA().object(3541, 9694, 6724, -1, 0); c.getPA().object(3541, 9695, 6743, -3, 0); } break; //end doors //coffins case 6707: // verac c.getPA().movePlayer(3556, 3298, 0); break; case 6823: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[0][1] == 0) { Server.npcHandler.spawnNpc(c, 2030, c.getX(), c.getY()-1, -1, 0, 120, 25, 200, 200, true, true); c.barrowsNpcs[0][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6706: // torag c.getPA().movePlayer(3553, 3283, 0); break; case 6772: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[1][1] == 0) { Server.npcHandler.spawnNpc(c, 2029, c.getX()+1, c.getY(), -1, 0, 120, 20, 200, 200, true, true); c.barrowsNpcs[1][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6705: // karil stairs c.getPA().movePlayer(3565, 3276, 0); break; case 6822: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[2][1] == 0) { Server.npcHandler.spawnNpc(c, 2028, c.getX(), c.getY()-1, -1, 0, 90, 17, 200, 200, true, true); c.barrowsNpcs[2][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6704: // guthan stairs c.getPA().movePlayer(3578, 3284, 0); break; case 6773: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[3][1] == 0) { Server.npcHandler.spawnNpc(c, 2027, c.getX(), c.getY()-1, -1, 0, 120, 23, 200, 200, true, true); c.barrowsNpcs[3][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6703: // dharok stairs c.getPA().movePlayer(3574, 3298, 0); break; case 6771: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[4][1] == 0) { Server.npcHandler.spawnNpc(c, 2026, c.getX(), c.getY()-1, -1, 0, 120, 45, 250, 250, true, true); c.barrowsNpcs[4][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6702: // ahrim stairs c.getPA().movePlayer(3565, 3290, 0); break; case 6821: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[5][1] == 0) { Server.npcHandler.spawnNpc(c, 2025, c.getX(), c.getY()-1, -1, 0, 90, 19, 200, 200, true, true); c.barrowsNpcs[5][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 1276: case 1281: //oak c.woodcut[0] = 1521; c.woodcut[1] = 15; c.woodcut[2] = 37; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1308: //willow c.woodcut[0] = 1519; c.woodcut[1] = 30; c.woodcut[2] = 68; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1307: //maple c.woodcut[0] = 1517; c.woodcut[1] = 45; c.woodcut[2] = 100; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1309: //yew c.woodcut[0] = 1515; c.woodcut[1] = 60; c.woodcut[2] = 175; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1306: //yew c.woodcut[0] = 1513; c.woodcut[1] = 75; c.woodcut[2] = 250; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1278: //yew c.woodcut[0] = 1511; c.woodcut[1] = 1; c.woodcut[2] = 25; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 316: //shrimp c.getFishing().setupFishing(317); break; case 334: //mantas c.getFishing().setupFishing(389); break; case 324: //tuna c.getFishing().setupFishing(359); break; case 314: //salmon c.getFishing().setupFishing(335); break; case 326: //monks c.getFishing().setupFishing(7944); case 2090://copper case 2091: c.mining[0] = 436; c.mining[1] = 1; c.mining[2] = 18; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2094://tin c.mining[0] = 438; c.mining[1] = 1; c.mining[2] = 18; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 145856: case 2092: case 2093: //iron c.mining[0] = 440; c.mining[1] = 15; c.mining[2] = 35; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 14850: case 14851: case 14852: case 2096: case 2097: //coal c.mining[0] = 453; c.mining[1] = 30; c.mining[2] = 50; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2098: case 2099: c.mining[0] = 444; c.mining[1] = 40; c.mining[2] = 65; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2102: case 2103: case 14853: case 14854: case 14855: //mith ore c.mining[0] = 447; c.mining[1] = 55; c.mining[2] = 80; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2105: case 14862: //addy ore c.mining[0] = 449; c.mining[1] = 70; c.mining[2] = 95; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 14859: case 14860: //rune ore c.mining[0] = 451; c.mining[1] = 85; c.mining[2] = 125; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 8143: if (c.farm[0] > 0 && c.farm[1] > 0) { c.getFarming().pickHerb(); } break; // DOORS case 1516: case 1519: if (c.objectY == 9698) { if (c.absY >= c.objectY) c.getPA().walkTo(0,-1); else c.getPA().walkTo(0,1); break; } case 1530: case 1531: case 1533: case 1534: case 11712: case 11711: case 11707: case 11708: case 6725: case 3198: case 3197: Server.objectHandler.doorHandling(objectType, c.objectX, c.objectY, 0); break; case 9319: if (c.heightLevel == 0) c.getPA().movePlayer(c.absX, c.absY, 1); else if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 2); break; case 9320: if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 0); else if (c.heightLevel == 2) c.getPA().movePlayer(c.absX, c.absY, 1); break; case 4496: case 4494: if (c.heightLevel == 2) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 0); } break; case 4493: if (c.heightLevel == 0) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 4495: if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 5126: if (c.absY == 3554) c.getPA().walkTo(0,1); else c.getPA().walkTo(0,-1); break; case 1755: if (c.objectX == 2884 && c.objectY == 9797) c.getPA().movePlayer(c.absX, c.absY - 6400, 0); break; case 1759: if (c.objectX == 2884 && c.objectY == 3397) c.getPA().movePlayer(c.absX, c.absY + 6400, 0); break; /*case 3203: //dueling forfeit if (c.duelCount > 0) { c.sendMessage("You may not forfeit yet."); break; } Client o = (Client) Server.playerHandler.players[c.duelingWith]; if(o == null) { c.getTradeAndDuel().resetDuel(); c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); break; } if(c.duelRule[0]) { c.sendMessage("Forfeiting the duel has been disabled!"); break; } if(o != null) { o.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); o.duelStatus = 6; o.getTradeAndDuel().duelVictory(); c.getTradeAndDuel().resetDuel(); c.getTradeAndDuel().resetDuelItems(); o.sendMessage("The other player has forfeited the duel!"); c.sendMessage("You forfeit the duel!"); break; } break;*/ case 409: if(c.playerLevel[5] < c.getPA().getLevelForXP(c.playerXP[5])) { c.startAnimation(645); c.playerLevel[5] = c.getPA().getLevelForXP(c.playerXP[5]); c.sendMessage("You recharge your prayer points."); c.getPA().refreshSkill(5); } else { c.sendMessage("You already have full prayer points."); } break; case 2873: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Saradomin blesses you with a cape."); c.getItems().addItem(2412, 1); } break; case 2875: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Guthix blesses you with a cape."); c.getItems().addItem(2413, 1); } break; case 2874: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Zamorak blesses you with a cape."); c.getItems().addItem(2414, 1); } break; case 2879: c.getPA().movePlayer(2538, 4716, 0); break; case 2878: c.getPA().movePlayer(2509, 4689, 0); break; case 5960: c.getPA().startTeleport2(3090, 3956, 0); break; case 1815: c.getPA().startTeleport2(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0); break; case 9706: c.getPA().startTeleport2(3105, 3951, 0); break; case 9707: c.getPA().startTeleport2(3105, 3956, 0); break; case 5959: c.getPA().startTeleport2(2539, 4712, 0); break; case 2558: case 2557: c.sendMessage("This door is locked."); break; case 9294: if (c.absX < c.objectX) { c.getPA().movePlayer(c.objectX + 1, c.absY, 0); } else if (c.absX > c.objectX) { c.getPA().movePlayer(c.objectX - 1, c.absY, 0); } break; case 9293: if (c.absX < c.objectX) { c.getPA().movePlayer(2892, 9799, 0); } else { c.getPA().movePlayer(2886, 9799, 0); } break; case 10529: case 10527: if (c.absY <= c.objectY) c.getPA().walkTo(0,1); else c.getPA().walkTo(0,-1); break; case 3044: c.getSmithing().sendSmelting(); break; case 733: c.startAnimation(451); /*if (Misc.random(1) == 1) { c.getPA().removeObject(c.objectX, c.objectY); c.sendMessage("You slash the web."); } else { c.sendMessage("You fail to slash the webs."); }*/ if (c.objectX == 3158 && c.objectY == 3951) { new Object(734, c.objectX, c.objectY, c.heightLevel, 1, 10, 733, 50); } else { new Object(734, c.objectX, c.objectY, c.heightLevel, 0, 10, 733, 50); } break; } } public void secondClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; //c.sendMessage("Object type: " + objectType); switch(objectType) { case 4874: c.getThieving().stealFromStall(1891, 1, 100, 1); break; case 4875: c.getThieving().stealFromStall(1609, 1, 130, 25); break; case 4877: c.getThieving().stealFromStall(1573, 1, 160, 50); break; case 4878: c.getThieving().stealFromStall(1789, 1, 180, 75); break; case 11666: case 3044: c.getSmithing().sendSmelting(); break; case 2213: case 14367: case 11758: c.getPA().openUpBank(); break; case 2558: case 2557: if (System.currentTimeMillis() - c.lastLockPick < 3000 || c.freezeTimer > 0) break; if (c.getItems().playerHasItem(1523,1)) { c.lastLockPick = System.currentTimeMillis(); if (Misc.random(10) <= 3){ c.sendMessage("You fail to pick the lock."); break; } if (c.objectX == 3044 && c.objectY == 3956) { if (c.absX == 3045) { c.getPA().walkTo2(-1,0); } else if (c.absX == 3044) { c.getPA().walkTo2(1,0); } } else if (c.objectX == 3038 && c.objectY == 3956) { if (c.absX == 3037) { c.getPA().walkTo2(1,0); } else if (c.absX == 3038) { c.getPA().walkTo2(-1,0); } } else if (c.objectX == 3041 && c.objectY == 3959) { if (c.absY == 3960) { c.getPA().walkTo2(0,-1); } else if (c.absY == 3959) { c.getPA().walkTo2(0,1); } } else if (c.objectX == 3191 && c.objectY == 3963) { if (c.absY == 3963) { c.getPA().walkTo2(0,-1); } else if (c.absY == 3962) { c.getPA().walkTo2(0,1); } } else if (c.objectX == 3190 && c.objectY == 3957) { if (c.absY == 3957) { c.getPA().walkTo2(0,1); } else if (c.absY == 3958) { c.getPA().walkTo2(0,-1); } } } else { c.sendMessage("I need a lockpick to pick this lock."); } break; } } public void thirdClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; c.sendMessage("Object type: " + objectType); switch(objectType) { } } public void firstClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { case 844: c.getDH().sendDialogues(3000, 0); break; case 1599: if (c.slayerTask <= 0) { c.getDH().sendDialogues(11,npcType); } else { c.getDH().sendDialogues(13,npcType); } break; case 696: c.getDH().sendDialogues(2000, 0); break; case 2024: c.getPA().fixAllBarrows(); c.sendMessage("@[email protected] your items aren't being fixed, please relog!"); break; case 872: c.getDH().sendDialogues(20, npcType); break; case 243: c.getDH().sendDialogues(200, npcType); break; case 540: c.getShops().openShop(4); break; case 521: c.getShops().openShop(1); break; case 4460: c.getShops().openShop(3); c.sendMessage("@[email protected] currently have: " + c.pkPoints + " Lysergic_points."); break; case 6970: c.getShops().openShop(30); break; case 1918: c.getShops().openShop(13); break; case 541: c.getShops().openShop(11); break; case 549: c.getShops().openShop(12); break; case 683: c.getShops().openShop(8); break; case 461: c.getShops().openShop(5); break; case 2538: c.getShops().openShop(10); c.sendMessage("@[email protected] currently have: " + c.activityPoints + " activity points."); break; case 706: c.getDH().sendDialogues(9, npcType); break; case 2258: c.getDH().sendDialogues(17, npcType); break; case 1152: c.getDH().sendDialogues(16,npcType); break; case 494: c.getPA().openUpBank(); break; case 2566: c.getShops().openSkillCape(); break; case 3789: c.sendMessage("You currently have " + c.pcPoints + " SSP."); break; case 3788: c.getShops().openVoid(); break; case 905: c.getDH().sendDialogues(5, npcType); break; case 460: c.getDH().sendDialogues(3, npcType); break; case 462: c.getDH().sendDialogues(7, npcType); break; case 316: //shrimp break; case 334: //mantas break; case 324: //tuna break; case 314: //salmon break; case 326: //monks break; case 522: case 523: c.getShops().openShop(1); break; case 599: c.getPA().showInterface(3559); c.canChangeAppearance = true; break; case 904: c.sendMessage("You have " + c.magePoints + " points."); break; default: if(c.playerRights == 3) Misc.println("First Click Npc : "+npcType); break; } } public void secondClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { case 844: c.getDH().sendDialogues(3000, 0); break; case 8725: c.getShops().openShop(3); break; case 1282: c.getShops().openShop(7); break; case 334: //sharks break; case 3788: c.getShops().openVoid(); break; case 494: c.getPA().openUpBank(); break; case 324: //lobs break; case 904: c.getShops().openShop(17); break; case 522: case 523: c.getShops().openShop(1); break; case 541: c.getShops().openShop(11); break; case 683: c.getShops().openShop(8); break; case 2538: c.getShops().openShop(6); break; case 519: c.getShops().openShop(8); break; case 3789: c.getShops().openShop(18); c.sendMessage("You have " + c.pcPoints + " Soul Split points."); c.sendMessage("Gain SSP By fighting Players, bosses, and completing slayer tasks."); break; case 1: case 9: case 18: case 20: case 26: case 21: c.getThieving().stealFromNPC(npcType); break; default: if(c.playerRights == 3) Misc.println("Second Click Npc : "+npcType); break; } } public void thirdClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { default: if(c.playerRights == 3) Misc.println("Third Click NPC : "+npcType); break; } } }[/CODE] Fishing [CODE]package server.model.players.skills; import server.Config; import server.util.Misc; import server.model.players.Client; /** * Fishing.java * * @author Sanity * **/ public class Fishing { private Client c; private int fishType; private int exp; private int req; private int equipmentType; private final int SALMON_EXP = 70; private final int SWORD_EXP = 100; private final int SALMON_ID = 331; private final int SWORD_ID = 371; public boolean fishing = false; private final int[] REQS = {1,20,40,35,62,76,81}; private final int[] FISH_TYPES = {317,335,359,359,7944,383,389}; private final int[] EXP = {10,50,80,90,120,110,46}; public Fishing(Client c) { this.c = c; } public void setupFishing(int fishType) { if (c.getItems().playerHasItem(getEquipment(fishType))) { if (c.playerLevel[c.playerFishing] >= req) { int slot = getSlot(fishType); if (slot > -1) { this.req = REQS[slot]; this.fishType = FISH_TYPES[slot]; this.equipmentType = getEquipment(fishType); this.exp = EXP[slot]; c.fishing = true; c.fishTimer = 3 + Misc.random(2); } } else { c.sendMessage("You need a fishing level of " + req + " to fish here."); resetFishing(); } } else { c.sendMessage("You do not have the correct equipment to use this fishing spot."); resetFishing(); } } public void catchFish() { if (c.getItems().playerHasItem(getEquipment(fishType))) { if (c.playerLevel[c.playerFishing] >= req) { if (c.getItems().freeSlots() > 0) { if (canFishOther(fishType)) { c.getItems().addItem(otherFishId(fishType),1); c.getPA().addSkillXP(otherFishXP(fishType),c.playerFishing); } else { c.getItems().addItem(fishType,1); c.getPA().addSkillXP(exp * Config.FISHING_EXPERIENCE,c.playerFishing); } c.sendMessage("You catch a fish."); c.fishTimer = 2 + Misc.random(2); } } else { c.sendMessage("You need a fishing level of " + req + " to fish here."); resetFishing(); } } else { c.sendMessage("You do not have the correct equipment to use this fishing spot."); resetFishing(); } } private int getSlot(int fishType) { for (int j = 0; j < REQS.length; j++) if (FISH_TYPES[j] == fishType) return j; return -1; } private int getEquipment(int fish) { if (fish == 317) //shrimp return 303; if (fish == 335) //trout + salmon return 309; if (fish == 337) //lobs return 301; if (fish == 361)//tuna return 311; if (fish == 7944)//monks return 303; if (fish == 383)//sharks return 311; if (fish == 389)//mantas return 303; return -1; } private boolean canFishOther(int fishType) { if (fishType == 335 && c.playerLevel[c.playerFishing] >= 30) return true; if (fishType == 361 && c.playerLevel[c.playerFishing] >= 50) return true; return false; } private int otherFishId(int fishType) { if (fishType == 335) return SALMON_ID; else if (fishType == 361) return SWORD_ID; return -1; } private int otherFishXP(int fishType) { if (fishType == 335) return SALMON_EXP; else if (fishType == 361) return SWORD_EXP; return 0; } public void resetFishing() { this.exp = 0; this.fishType = -1; this.equipmentType = -1; this.req = 0; c.fishTimer = -1; c.fishing = false; } public void FishingProcess() { // TODO Auto-generated method stub } public static void attemptdata(Client c2, int i) { // TODO Auto-generated method stub } }[/CODE] Anyone know whats wrong with it? I have tried tons of tutorials that use different fishing bases.
  9. The npc drops doens't work :( there is even no npc-config.cfg How to fix this?
  10. [B]I'm looking for a dedicated team of developers to help me program my server and client. I'm looking for a long-term development team that can make this server into something amazing. I want to be able to learn and grow from the progress we make, and I want the server to have nice appeal, unique, and user friendly. id like developers who can work well as a team The developers must be mature and must not put down other members idea's. [COLOR="#0000FF"]who is needed at the moment:[/COLOR] someone with Intermediate Java experience with a server/client [S]graphics design[/S] [COLOR="#FF0000"][B]full[/B][/COLOR] [S]web development[/S] [COLOR="#FF0000"][B]full[/B][/COLOR] someone who can do server sided stuff someone who can do client sided stuff + cache The most important thing that I want the developers to do is always debug new content, take your time when your programming, and think everything through. [COLOR="#00FF00"]BASE:[/COLOR] overloadX client with a blank pi source if you are not serious about working with us then do not bother posting or pming me and wasting my time, we hope to see you soon :) SKYPE: trisidia17 pm me on here if you want or email me at [email][email protected][/email]
  11. I've coded a few servers in the past and I'm looking to do it again as it was a ton of fun! I can do 639-718 for sure but I can probably manage something else given some time. I'm not a novice Java programmer as I have 4 years under my belt and have made quite a few pieces of software (Non-distributed). I am looking to be paid a small fraction of the donations via Paypal for my services. I can also code the website from scratch and get it running entirely on my own as I have made a few websites in the past as well. I don't require a coding partner although having one would be much appreciated in the event that I am unable to solve a bug. It should also be noted that I am extremely reliable/honest. As a final note... I DO NOT COME WITH A SOURCE OR CLIENT! If you would like to hire me then please be expected to have a good and stable source/client ready, thanks! My requirements: - A small portion of the donations fit for the amount of work that I've done. - Access to the server source running on Dropbox. (For dev purposes) - Access to a separate copy of the source. (Again for dev purposes) - Admin rights within the server. (Once more for dev purposes) - And finally, the owner must be within my time zone and have plenty of time for communication. (My time zone - Central Time (US & Canada)) You can contact me through this post or my skype (live:neytorokx).
  12. I've coded a few servers in the past and I'm looking to do it again as it was a ton of fun! I can do 639-718 for sure but I can probably manage something else given some time. I'm not a novice Java programmer as I have 4 years under my belt and have made quite a few pieces of software (Non-distributed). I am looking to be paid a small fraction of the donations via Paypal for my services. I can also code the website from scratch and get it running entirely on my own as I have made a few websites in the past as well. I don't require a coding partner although having one would be much appreciated in the event that I am unable to solve a bug. It should also be noted that I am extremely reliable/honest. As a final note... I DO NOT COME WITH A SOURCE OR CLIENT! If you would like to hire me then please be expected to have a good and stable source/client ready, thanks! My requirements: - A small portion of the donations fit for the amount of work that I've done. - Access to the server source running on Dropbox. (For dev purposes) - Access to a separate copy of the source. (Again for dev purposes) - Admin rights within the server. (Once more for dev purposes) - And finally, the owner must be within my time zone and have plenty of time for communication. (My time zone - Central Time (US & Canada)) You can contact me through this post or my skype (live:neytorokx).
  13. so i just edited the old one to download a dif cache! but it downloads the old one!! some one please add me on skype and double check that im doing everything correctly!
  14. if (command.equalsIgnoreCase("staffzone") && playerRights >= 1) { triggerTele(3075, 3084, 0); sM("You teleport to the staff zone."); }
  15. Fascism

    Recent work

    [img]http://fc02.deviantart.net/fs71/f/2013/353/f/3/idk_by_dosesociety-d6yi2jz.png[/img] [img]http://fc03.deviantart.net/fs70/f/2013/353/5/2/idkk_by_dosesociety-d6yi2lp.png[/img] [img]http://fc07.deviantart.net/fs70/i/2013/353/3/a/idkg_by_dosesociety-d6yi2nl.png[/img] [img]http://fc00.deviantart.net/fs70/f/2013/357/8/b/rock_by_dosesociety-d6z0fwk.png[/img] [img]http://fc00.deviantart.net/fs70/f/2013/357/0/9/idk_by_dosesociety-d6z59zv.png[/img] [img]http://fc00.deviantart.net/fs71/f/2013/359/2/9/untitled_1_by_dosesociety-d6zf7n5.png[/img] [img]http://fc00.deviantart.net/fs71/f/2013/359/3/1/jdkfh_by_dosesociety-d6zf9kx.png[/img] [img]http://fc08.deviantart.net/fs70/f/2013/360/b/0/draghon_by_dosesociety-d6zjjd1.png[/img] [img]http://fc07.deviantart.net/fs71/f/2013/360/1/f/idk_by_dosesociety-d6zk3e3.png[/img] [img]http://fc01.deviantart.net/fs71/i/2013/361/7/6/the__data_is_changing_by_dosesociety-d6zkkk7.png[/img]
  16. [FONT=Arial Black][/FONT][B][I][FONT=Arial Black][SIZE=5][COLOR="#00FF00"]Hi guys! I have been searching for a source which is working and i havent been able to find a stable good source, and it would be awesome if some of you cool guys would help me out! Dont tell me to google it, cause ive allready tried like tons of times.. :P Peace out! <3 :D[/COLOR][/SIZE][/FONT][/I][/B] BTW! [COLOR="#FF0000"][B][I]MERRY CHRISTMAS[/I][/B][/COLOR]!<3 :) [FONT=Arial Black][SIZE=5][COLOR="#00FFFF"]NB: It must be a 614-718 server![/COLOR][/SIZE][/FONT] :)
  17. Remove please.
  18. [CENTER][SIZE=5][FONT=Fixedsys]Over the next few weeks I will be updating my RuneScape support forum. It's an toplist as well. Changes with the homepage, community, and toplist will be considered done within 1 week. You probably already know the website, as I used to advertise it too much here. But that won't be happening. It' ends with debate. The website title is blocked. Which I'm sorry for that, I can discuss the links if you talk to me on skype, or email. I need staff right now, new staff, that will be online 24/7, and help support the website. Our income is $20.00 p/ month right now for hosting. We used to use free hosting and we decided to switch. Our domain still is the same. We are currently using IP.Board as our community software, and may change to vBulletin. Better updates will come, and hopefully more members. Once members start joining, our staff members will be paid up to $15.00 p/ week! We are wanting the following: Administrators (2) Moderators (5) Website Support (4) Advertiser (2 max.) Please note you must be trusted by 2 members of this website, and must have at least 1 vouch, or 70+ thanks just for safety. My skype: gripper.rl (quick reply) My email: [email][email protected][/email] (quick but may take up to 24 hours) You can also just post below and I will get back to you faster![/FONT][/SIZE][/CENTER]
  19. Karriah

    Carriah's work

    I'll be posting images that I make in this thread. I drew my current avatar (the tweaked hitting a dope bong) using my Microsoft Surface Tablet, and I merged 3 images together in PhotoShop and then added some text for my signature. :P Edit: I drew all of these the other night. [ATTACH=CONFIG]9369[/ATTACH][ATTACH=CONFIG]9370[/ATTACH][ATTACH=CONFIG]9371[/ATTACH][ATTACH=CONFIG]9372[/ATTACH][ATTACH=CONFIG]9373[/ATTACH]
  20. As title states Is there any autoVote systems that work with [Dementhium/637] Servers ? Please let me know below
  21. My player counting isnt working. It doesnt count how many players are online it just says they're 0. Heres the code: [CODE] getPA().sendFrame126("Players Online: " + PlayerHandler.getPlayerCount(), 19161);[/CODE] PlayerHandler.java : [CODE]package com.exile.game.players; import java.net.InetSocketAddress; import com.exile.Constants; import com.exile.GameEngine; import com.exile.game.npcs.NPCHandler; import com.exile.game.players.content.minigames.impl.dueling.DuelPlayer; import com.exile.util.Misc; import com.exile.util.Stream; import java.util.ArrayList; import java.util.concurrent.ScheduledExecutorService; public class PlayerHandler { public static Player players[] = new Player[Constants.MAX_PLAYERS]; public static String messageToAll = ""; public static int playerCount = 0; public static boolean updateAnnounced; public static boolean updateRunning; public static int updateSeconds; public static long updateStartTime; public static boolean kickAllPlayers = false; static { for (int i = 0; i < Constants.MAX_PLAYERS; i++) { players[i] = null; } } public static Player[] getPlayers() { return players; } public boolean newPlayerPlayer(Player player1) { int slot = -1; for (int i = 1; i < Constants.MAX_PLAYERS; i++) { if ((players[i] == null) || players[i].disconnected) { slot = i; break; } } if (slot == -1) { return false; } player1.handler = this; player1.playerId = slot; players[slot] = player1; players[slot].isActive = true; players[slot].connectedFrom = ((InetSocketAddress) player1.getSession().getRemoteAddress()).getAddress().getHostAddress(); if (Constants.SERVER_DEBUG) { Misc.println("Player Slot " + slot + " slot 0 " + players[0] + " Player Hit " + players[slot]); } return true; } public static int[] toIntArray(ArrayList<Integer> integerList) { int[] intArray = new int[integerList.size()]; for (int i = 0; i < integerList.size(); i++) { intArray[i] = integerList.get(i); } return intArray; } public void destruct() { for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] == null) { continue; } players[i].destruct(); players[i] = null; } } public static int getPlayerCount() { return playerCount; } public static boolean isPlayerOn(final String playerName) { for (int d = 0; d < Constants.MAX_PLAYERS; d++) { if (PlayerHandler.players[d] != null) { final Player p = PlayerHandler.players[d]; if (p.playerName.toLowerCase().equals(playerName.toLowerCase())) { return true; } } } return false; } public static void process(int i, ScheduledExecutorService thread) { if (players[i] == null || !players[i].isActive) { thread.shutdownNow(); return; } if (kickAllPlayers) { players[i].disconnected = true; } Player c = (Player) PlayerHandler.players[i]; if (c != null && c.disconnected && (System.currentTimeMillis() - c.getVariables().logoutDelay > 10000 || c.getVariables().properLogout || kickAllPlayers)) { if (players[i].getVariables().inTrade) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } if (c != null && DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.duelVictory(c.opponent); } } else if (c != null && !DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } Player o = (Player) PlayerHandler.players[i]; if (PlayerSave.saveGame(o)) { System.out.println("Game saved for player " + players[i].playerName); } else { System.out.println("Could not save for " + players[i].playerName); } removePlayer(players[i]); players[i] = null; return; } players[i].preProcessing(); while (players[i].processQueuedPackets()); players[i].process(); players[i].postProcessing(); players[i].getNextPlayerMovement(); if (players[i] == null || !players[i].isActive) { players[i] = null; thread.shutdownNow(); return; } if (players[i].disconnected && (System.currentTimeMillis() - players[i].getVariables().logoutDelay > 10000 || players[i].getVariables().properLogout || kickAllPlayers)) { if (players[i].getVariables().inTrade) { Player o = (Player) PlayerHandler.players[players[i].getVariables().tradeWith]; if (o != null) { o.getTradeHandler().declineTrade(false); } } c = (Player) PlayerHandler.players[i]; if (c != null && DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.duelVictory(c.opponent); } } else if (c != null && !DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } Player o1 = (Player) PlayerHandler.players[i]; if (PlayerSave.saveGame(o1)) { System.out.println("Game saved for player " + players[i].playerName); } else { System.out.println("Could not save for " + players[i].playerName); } removePlayer(players[i]); players[i] = null; return; } else { if (!players[i].getVariables().initialized) { players[i].initialize(); players[i].getVariables().initialized = true; } else { players[i].update(); } } if (updateRunning && !updateAnnounced) { updateAnnounced = true; GameEngine.UpdateServer = true; } if (updateRunning && (System.currentTimeMillis() - updateStartTime > (updateSeconds * 1000))) { kickAllPlayers = true; } if (players[i] == null || !players[i].isActive) { players[i] = null; thread.shutdownNow(); return; } try { players[i].clearUpdateFlags(); } catch (Exception e) { e.printStackTrace(); } /*if (updateRunning && !updateAnnounced) { updateAnnounced = true; GameEngine.UpdateServer = true; } if (updateRunning && (System.currentTimeMillis() - updateStartTime > (updateSeconds * 1000))) { kickAllPlayers = true; } */ } public void process() { if (kickAllPlayers) { for (int i = 1; i < Constants.MAX_PLAYERS; i++) { if (players[i] != null) { players[i].disconnected = true; } } } for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] == null || !players[i].isActive) { continue; } Player c = (Player) PlayerHandler.players[i]; if (c != null && c.disconnected && (System.currentTimeMillis() - c.getVariables().logoutDelay > 10000 || c.getVariables().properLogout || kickAllPlayers)) { if (players[i].getVariables().inTrade) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } if (c != null && DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.duelVictory(c.opponent); } } else if (c != null && !DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } Player o = (Player) PlayerHandler.players[i]; if (PlayerSave.saveGame(o)) { System.out.println("Game saved for player " + players[i].playerName); } else { System.out.println("Could not save for " + players[i].playerName); } removePlayer(players[i]); players[i] = null; continue; } players[i].preProcessing(); while (players[i].processQueuedPackets()); players[i].process(); players[i].postProcessing(); players[i].getNextPlayerMovement(); } for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] == null || !players[i].isActive) { continue; } if (players[i].disconnected && (System.currentTimeMillis() - players[i].getVariables().logoutDelay > 10000 || players[i].getVariables().properLogout || kickAllPlayers)) { if (players[i].getVariables().inTrade) { Player o = (Player) PlayerHandler.players[players[i].getVariables().tradeWith]; if (o != null) { o.getTradeHandler().declineTrade(false); } } Player c = (Player) PlayerHandler.players[i]; if (c != null && DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.duelVictory(c.opponent); } } else if (c != null && !DuelPlayer.contains(c)) { if (c.opponent != null) { c.opponent.Dueling.declineDuel(c.opponent, true, false); } } Player o1 = (Player) PlayerHandler.players[i]; if (PlayerSave.saveGame(o1)) { System.out.println("Game saved for player " + players[i].playerName); } else { System.out.println("Could not save for " + players[i].playerName); } removePlayer(players[i]); players[i] = null; } else { if (!players[i].getVariables().initialized) { players[i].initialize(); players[i].getVariables().initialized = true; } else { players[i].update(); } } } if (updateRunning && !updateAnnounced) { updateAnnounced = true; GameEngine.UpdateServer = true; } if (updateRunning && (System.currentTimeMillis() - updateStartTime > (updateSeconds * 1000))) { kickAllPlayers = true; } for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] == null || !players[i].isActive) { continue; } try { players[i].clearUpdateFlags(); } catch (Exception e) { e.printStackTrace(); } } /*if (updateRunning && !updateAnnounced) { updateAnnounced = true; GameEngine.UpdateServer = true; } if (updateRunning && (System.currentTimeMillis() - updateStartTime > (updateSeconds * 1000))) { kickAllPlayers = true; } */ } public void updateNPC(Player plr, Stream str) { updateBlock.currentOffset = 0; str.createFrameVarSizeWord(65); str.initBitAccess(); str.writeBits(8, plr.npcListSize); int size = plr.npcListSize; plr.npcListSize = 0; for (int i = 0; i < size; i++) { if (plr.getVariables().RebuildNPCList == false && plr.withinDistance(plr.npcList[i]) == true) { plr.npcList[i].updateNPCMovement(str); plr.npcList[i].appendNPCUpdateBlock(updateBlock, (Player) plr); plr.npcList[plr.npcListSize++] = plr.npcList[i]; } else { int id = plr.npcList[i].npcId; plr.npcInListBitmap[id >> 3] &= ~(1 << (id & 7)); str.writeBits(1, 1); str.writeBits(2, 3); } } /*if (Region.REGION_UPDATING_ENABLED) { if (Region.getRegion(plr.absX, plr.absY) != null) { for (NPC n : Region.getRegion(plr.absX, plr.absY).npcs) { if (n != null) { final int id = n.npcId; if ((plr.RebuildNPCList || (plr.npcInListBitmap[id >> 3] & 1 << (id & 7)) == 0) && plr.withinDistance(n)) { plr.addNewNPC(n, str, updateBlock); } } } } } else { for (int i = 0; i < NPCHandler.maxNPCs; i++) { if (NPCHandler.npcs[i] != null) { int id = NPCHandler.npcs[i].npcId; if (plr.withinDistance(NPCHandler.npcs[i]) && (plr.RebuildNPCList == false && (plr.npcInListBitmap[id >> 3] & (1 << (id & 7))) == 0)) { plr.addNewNPC(NPCHandler.npcs[i], str, updateBlock); } } } }*/ for (int i = 0; i < NPCHandler.maxNPCs; i++) { if (NPCHandler.npcs[i] != null) { int id = NPCHandler.npcs[i].npcId; if (plr.getVariables().RebuildNPCList == false && (plr.npcInListBitmap[id >> 3] & (1 << (id & 7))) != 0) { } else if (plr.withinDistance(NPCHandler.npcs[i]) == false) { } else { plr.addNewNPC(NPCHandler.npcs[i], str, updateBlock); } } } plr.getVariables().RebuildNPCList = false; if (updateBlock.currentOffset > 0) { str.writeBits(14, 16383); str.finishBitAccess(); str.writeBytes(updateBlock.buffer, updateBlock.currentOffset, 0); } else { str.finishBitAccess(); } str.endFrameVarSizeWord(); } public Stream updateBlock = new Stream(new byte[Constants.BUFFER_SIZE]); public int hitIcon, hitIcon2, hitMask, hitMask2; public void updatePlayer(Player plr, Stream str) { updateBlock.currentOffset = 0; if (updateRunning && !updateAnnounced) { str.createFrame(114); str.writeWordBigEndian(updateSeconds * 50 / 30); } plr.updateThisPlayerMovement(str); boolean saveChatTextUpdate = plr.isChatTextUpdateRequired(); plr.setChatTextUpdateRequired(false); plr.appendPlayerUpdateBlock(updateBlock); plr.setChatTextUpdateRequired(saveChatTextUpdate); str.writeBits(8, plr.playerListSize); int size = plr.playerListSize; if (size > 255) { size = 255; } plr.playerListSize = 0; for (int i = 0; i < size; i++) { if (!plr.didTeleport && !plr.playerList[i].didTeleport && plr.withinDistance(plr.playerList[i])) { plr.playerList[i].updatePlayerMovement(str); plr.playerList[i].appendPlayerUpdateBlock(updateBlock); plr.playerList[plr.playerListSize++] = plr.playerList[i]; } else { int id = plr.playerList[i].playerId; plr.playerInListBitmap[id >> 3] &= ~(1 << (id & 7)); str.writeBits(1, 1); str.writeBits(2, 3); } } /*if (Region.REGION_UPDATING_ENABLED) { if (Region.getRegion(plr.absX, plr.absY) != null) { for (Player p : Region.getRegion(plr.absX, plr.absY).players) { if (p != null && p.isActive && p != plr) { if ((plr.playerInListBitmap[p.playerId >> 3] & 1 << (p.playerId & 7)) == 0 && plr.withinDistance(p)) { plr.addNewPlayer(p, str, updateBlock); } } } } } else { for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] == null || !players[i].isActive || players[i] == plr) { continue; } int id = players[i].playerId; if ((plr.playerInListBitmap[id >> 3] & (1 << (id & 7))) != 0) { continue; } if (!plr.withinDistance(players[i])) { continue; } plr.addNewPlayer(players[i], str, updateBlock); } }*/ /*for (int i = 0; i < Constants.MAX_PLAYERS; i++) { if (players[i] != null && players[i].isActive && players[i] != plr) { final int id = players[i].playerId; if ((plr.playerInListBitmap[id >> 3] & 1 << (id & 7)) == 0 && plr.withinDistance(players[i])) { plr.addNewPlayer(players[i], str, updateBlock); } } }*/ if (plr.didTeleport) { plr.updateVisiblePlayers(); // so if we teleport and we are in our original region we are added back to the list for all the players that can see us } int[] addPlayers = toIntArray(plr.addPlayerList); int addSize = plr.getVariables().addPlayerSize; if (size + addSize > 255) { addSize = size - 255; } for (int i = 0; i < addSize; i++) { int id = addPlayers[i]; if(players[id] == null || !players[id].isActive || players[id] == plr) continue; if(!plr.withinDistance(players[id]) || (plr.playerInListBitmap[id >> 3] & (1 << (id & 7))) != 0) { continue; } plr.addNewPlayer(players[id], str, updateBlock); plr.getVariables().addPlayerSize--; // you could just put these in player.java plr.addPlayerList.remove((Integer)id); // but for the sake of the tutorial, it's right here. } if (plr.getVariables().addPlayerSize > 0) { plr.getVariables().addPlayerSize = 0; plr.addPlayerList.clear(); } //here if (updateBlock.currentOffset > 0) { str.writeBits(11, 2047); str.finishBitAccess(); str.writeBytes(updateBlock.buffer, updateBlock.currentOffset, 0); } else { str.finishBitAccess(); } str.endFrameVarSizeWord(); } public static void removePlayer(final Player plr) { if (plr.getVariables().privateChat != 2) { for (int d = 0; d < Constants.MAX_PLAYERS; d++) { if (PlayerHandler.players[d] != null && PlayerHandler.players[d].isActive) { final Player o = PlayerHandler.players[d]; if (o != null) { o.getPA().updatePM(plr.playerId, 0); } } } } plr.destruct(); } } [/CODE] Does anyone know any possible reasons why this is not working? Would thank someone a bunch if they fix it for me. Thanks!
  22. Can someone help me my ::update or ::update 1 command will not work.
  23. Just getting back into graphics again. Made these over the past day or 2. [img]http://eypic.net/images/swanmom.png[/img] Really like like how this one came out. CnC is very much appreciated. Credits to a friend of mine for the inspiration to this piece. He posted an avatar ([url=http://www.deviouspk.com/forums/image.php?u=3201&dateline=1357785237&type=profile]http://www.deviouspk.com/forums/image.php?u=3201&dateline=1357785237&type=profile[/url]) that I really liked and the inspiration for this came from that piece. Was messing around for fun with a template provided by one of the artists on an rsps. Came up with these. Graphics Artist: [img]http://eypic.net/images/gfxartoeo.png[/img] Video Editor: [img]http://eypic.net/images/videoedito.png[/img] Basically very similar to the Graphics Artist one, but with a reversed gradient and different icon. Creedits to a different friend for the template. [img]http://eypic.net/images/howtospell.png[/img] Came out pretty simplistic. Dem layers: [url]http://gyazo.com/5d5fa95ea33baed440b570dc68050078.png[/url] As you can see, quite basic. The text: [url]http://gyazo.com/dbad61fd29eb3883a5d877a81b0f9b7c.png[/url] [img]http://eypic.net/images/bernarded.png[/img] Text used: [url=http://gyazo.com/262711b24e7868c140137865ad2c8c26]http://gyazo.com/262711b24e7868c140137865ad2c8c26[/url] Layers: [url=http://gyazo.com/a66f701b6de9710c9e6a9b8e6e7512be]http://gyazo.com/a66f701b6de9710c9e6a9b8e6e7512be[/url] My issues with it: Can't read the Rs very well. Could have been fixed by moving them in C4D, but I'd have to redo everything sooo... The purple line on the e looks to pixel-y. Pretty overly simple
  24. Need help to get resizeable mode to work on my client. I cant use another client because this one loads models. I removed all my models and tried resizeable and it still doesnt work. When I go to resizeable, i get this far: [url]http://prntscr.com/1rctqm[/url] Then it crashes. I get this in my cmd: [code] error_game_[COLOR="#FF0000"]crash[/COLOR] Shutdown complete - clean:true [/code] This is where it comes from: [code] public void method47(int arg0, String arg1) { try { anInt4++; if (arg0 != 1) anInt18 = -97; if (!aBoolean1) { aBoolean1 = true; System.out.println("error_game_" + arg1); try { Class30.method432(Class23_Sub4.aSignLink_3734.anApplet2883, (byte) -100, "loggedout"); } catch (Throwable throwable) { } try { getAppletContext().showDocument(new URL(getCodeBase(), ("error_game_" + arg1 + ".ws")), "_top"); } catch (Exception exception) { } } } catch (RuntimeException runtimeexception) { throw Class131_Sub2_Sub6.method1495(runtimeexception, ("gk.P(" + arg0 + ',' + (arg1 != null ? "{...}" : "null") + ')')); } } [/code] [code] } catch (Exception exception) { [COLOR="#FF0000"]Class45.method563(null, exception, 0); method47(1, "crash");[/COLOR] } [/code] Class45: [code] public static void method563(String paramString, Throwable paramThrowable, int paramInt) { anInt628 += 1; try { String str = ""; if (paramThrowable != null) str = Class12.method210((byte)117, paramThrowable); if (paramString != null) { if (paramThrowable != null) str = new StringBuilder().append(str).append(" | ").toString(); str = new StringBuilder().append(str).append(paramString).toString(); } Class153_Sub2.method2240(4, str); str = Class131_Sub42.method2090(str, ":", "%3a", paramInt); str = Class131_Sub42.method2090(str, "@", "%40", paramInt + paramInt); str = Class131_Sub42.method2090(str, "&", "%26", 0); str = Class131_Sub42.method2090(str, "#", "%23", 0); if (Class131_Sub13.aSignLink_4259.anApplet2883 != null) { Class139 localClass139 = Class131_Sub13.aSignLink_4259.method2691((byte)91, new URL(Class131_Sub13.aSignLink_4259.anApplet2883.getCodeBase(), new StringBuilder().append("clienterror.ws?c=").append(Class131_Sub8_Sub1.anInt6091).append("&u=").append(IComponent.aLong2428).append("&v1=").append(SignLink.aString2904).append("&v2=").append(SignLink.aString2893).append("&e=").append(str).toString())); while ((localClass139.anInt1864 ^ 0xFFFFFFFF) == -1) ObjectDefinitions.method2575(-28, 1L); if (localClass139.anInt1864 != 1) return; DataInputStream localDataInputStream = (DataInputStream)localClass139.anObject1866; localDataInputStream.read(); localDataInputStream.close(); } } catch (Exception localException) { } } [/code] Can anyone tell me why its crashing?
  25. As you may know, packet 69 doesn't work on 562s. Packet 69 is used in some item right clicks and impling jar looting. [U]Server:[/U] [B]PacketHandlers.java[/B] Look for [code] ItemPacketHandler item = new ItemPacketHandler(); [/code] And put a 69 with all the numbers in there. [B]ItemPacketHandler.java[/B] Find: [code] case 69: [/code] And replace it with this: [code] case 69: /* * Item Loot */ itemLoot(player, packet); break; [/code] Next, look for: [code] private void lootItem(final Player p, final Packet packet) { [/code] And replace that method with: [code] private void itemLoot(final Player player, final Packet packet) { final int interfaceId = packet.readShort(); @SuppressWarnings("unused") final int junk = packet.readShort(); final int id = packet.readShort(); if(!player.getInventory().contains(id)) { return; } if (interfaceId == 149) { switch (id) { case 11238://impling jar //make it do stuff here break; } } } [/code] [U]Client[/U] [B]Class2.java[/B] Look for: [code] if (i_4_ == 42) { Class131_Sub2_Sub11.anInt5715++; Class93.aClass131_Sub15_Sub2_1226.createPacket(69); Class93.aClass131_Sub15_Sub2_1226.writeInt(i_3_); Class93.aClass131_Sub15_Sub2_1226.writeShortA(i, (byte) -122); Class93.aClass131_Sub15_Sub2_1226.writeLEShortA(-12614, i_5_); Class131_Sub2_Sub1.anInt5561 = 0; Class131_Sub41_Sub12.aClass173_6321 = Class190.method2615(i_3_, -67); Class71.anInt948 = i; } [/code] And replace it with: [code] if (i_4_ == 42) { Class93.aClass131_Sub15_Sub2_1226.createPacket(69); Class76.anInt1038++; Class93.aClass131_Sub15_Sub2_1226.writeInt(i_3_); Class93.aClass131_Sub15_Sub2_1226.writeShort(i_5_); Class93.aClass131_Sub15_Sub2_1226.writeShortA(i, (byte) -121); Class131_Sub2_Sub1.anInt5561 = 0; Class131_Sub41_Sub12.aClass173_6321 = Class190.method2615(i_3_, -5); Class71.anInt948 = i; } [/code] Hope that helped some of you. If it still doesn't work, post below.
×