Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by petergrayson

  1. Been playing this server for like 13 months now, still going! Rotherham~
  2. Just wanted to show the Drygore Mace I've just coded into my rsps. To say i've not been coding long this is a good achievement for me:) [IMG]http://i.imgur.com/eTNXmN2.png[/IMG]
  3. When you upgraded cache you need to change the anims for the npc's
  4. Okay so I'm having a few problems with the completionist cape. 1. When I go to spawn it via ;;item it says: [IMG]http://i.imgur.com/oYmBBbQ.png[/IMG] 2. The mysterious cape rack says I've not got the reqs done but I have: [IMG]http://i.imgur.com/LXtXPqf.png[/IMG] [IMG]http://i.imgur.com/EzoV9rK.png[/IMG] and 3. When I examine the cape rack it says "It's a null." [IMG]http://i.imgur.com/B8zMRWt.png[/IMG] But if I put the cape into a shop I can buy it and wear it:/ Need help fixing the cape rack mainly! Ive anyone can help? Thanks
  5. If anyone is willing to help my skype is Peter-Grayson
  6. Everywhere on my source that i'm working on is a 'dangerous' area apart from banks ect.. It was a pk server before it was released. Does anyone know how to change it from pk worlds? Like, only make the wildy and dangerous place instead of alover the world? I've been looking through some files and nothing jumps out at me:/ If anyone knows what files to look at could they let me know? Thanks
  7. In wilderness.java there's this code: [CODE]public static final boolean isAtWild(WorldTile tile) {//TODO fix this return (tile.getX() >= 3011 && tile.getX() <= 3132 && tile.getY() >= 10052 && tile.getY() <= 10175) //fortihrny dungeon || (tile.getX() >= 2940 && tile.getX() <= 3395 && tile.getY() >= 3525 && tile.getY() <= 4000) || (tile.getX() >= 3264 && tile.getX() <= 3279 && tile.getY() >= 3279 && tile.getY() <= 3672) || (tile.getX() >= 2756 && tile.getX() <= 2875 && tile.getY() >= 5512 && tile.getY() <= 5627) || (tile.getX() >= 3158 && tile.getX() <= 3181 && tile.getY() >= 3679 && tile.getY() <= 3697) || (tile.getX() >= 3280 && tile.getX() <= 3183 && tile.getY() >= 3885 && tile.getY() <= 3888) || (tile.getX() >= 3012 && tile.getX() <= 3059 && tile.getY() >= 10303 && tile.getY() <= 10351); }[/CODE] But when I take the coords out its still wilderness everywhere? Really need some assistance please anyone.
  8. [MENTION=133675]plot[/MENTION] In World.Java I've got this code [CODE]public static final boolean isMultiArea(WorldTile tile) { int destX = tile.getX(); int destY = tile.getY();[/CODE] and then it goes like [CODE](destX >= 3462 && destX <= 3511 && destY >= 9481 && destY <= 9521 && tile.getPlane() == 0) //kalphite queen lair[/CODE] This is for adding multi-combat areas? But i'll have a look in wilderness.java
  9. Still needing help.. How can i remove "Dangerous" area's apart from in the wildy?
  10. I've been looking around for a 718+ bonuses folder and can't seem to find one, if anyone has one could they upload it and send me the link? Thankyou
  11. Can someone write me a code for the compiler that compiles item bonuses? Thankyou
  12. I've looked around for a few guides but I always seem to go wrong.. If someone could explain or link me to a really good guide i would be more than greatful, thankyou.
  13. I've found one! If anyone else is wanting it ill leave the code below. [CODE]@echo off title Bonuses Packer "C:/Program Files/Java/Jre7/bin/java.exe" -Xmx815m -cp bin;lib/*; com.rs.tools.ItemBonusesPacker true true false pause[/CODE]
  14. I recently updated my cache from 718 to the matrix 742 cache. I fixed all opcodes and its running okay. I wanted this cache so I can code drygores and more customs into it ect.. But now its really laggy.. Anyone know the problem? Maybe I need a better client that supports the cache? Replies will be appreciated, thanks.
  15. So I'm changing the ip in my client to my no-ip address, so i go in loader.java and changed all the local host ip's ( and replace them with my no-ip address then I hit compile. Now when I try the run the client on my no-ip file it should not load because its not local host, but its loading.. which means its going wrong somewhere? If anyone can help? thanks
  16. I need to change the client ip to my no-ip address for people to get on my server right? and I should only be able to get on my server with the local client? Is that correct?
  17. [MENTION=617]Chronicscape[/MENTION] I'm wanting an auto cache downloader so everyone doesn't have to manually download it.. unless its different for 718's and there's a different way I dont know? All im asking for is a bit of help and guidance.
  18. I've not yet had this tested yet, if someone will be able to test this for me the client link: [url]https://dl.dropboxusercontent.com/s/gxos1tn06cue25g/LostRealmno-ip.jar?dl=1&token_hash=AAHtC1bVS5MvK_W9-5gH1R9fyQ5SVXH6cm9_A7_qEUkl8Q[/url] CacheDownloader.Java: [IMG]http://i.imgur.com/qePk14O.png[/IMG] My cache link is uploaded to dropbox in a .zip file. This is the contents of the cachdownloader.java: [ CODE ] import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.FileWriter; import java.io.BufferedWriter; import java.io.BufferedOutputStream; import java.io.BufferedInputStream; import java.io.FileOutputStream; import java.io.FileInputStream; import java.io.InputStream; import java.net.URLConnection; import java.net.URL; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import sign.Signlink; public class CacheDownloader { private Client Client; private final int BUFFER = 1024; private final int VERSION = 1; private String cacheLink = "https://dl.dropboxusercontent.com/s/ke5810x9fm691wq/Lostrealmcache.zip?dl=1&token_hash=AAG45eARqbV7QfhO341WnKJIr-mW6GdiwAiGNkfBELjkuQ"; private String fileToExtract = getCacheDir() + getArchivedName(); public CacheDownloader(Client Client) { this.Client = Client; } private void drawLoadingText(String text) { Client.drawLoadingText(35, text); } private void drawLoadingText(int amount, String text) { Client.drawLoadingText(amount, text); } private String getCacheDir() { return Signlink.findCacheDir(); } private String getCacheLink() { return cacheLink; } private int getCacheVersion() { return VERSION; } public CacheDownloader downloadCache() { try { File location = new File(getCacheDir()); File version = new File(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat"); if (!location.exists()) { downloadFile(getCacheLink(), getArchivedName()); System.out.println("Unzipping the Cache."); unZip(); System.out.println("Cache has Unzipped."); BufferedWriter versionFile = new BufferedWriter(new FileWriter( getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { if (!version.exists()) { downloadFile(getCacheLink(), getArchivedName()); System.out.println("Unzipping the Cache."); unZip(); System.out.println("Cache has Unzipped."); BufferedWriter versionFile = new BufferedWriter( new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { return null; } } } catch (Exception e) { } return null; } private void downloadFile(String address, String localFileName) { OutputStream out = null; URLConnection conn; InputStream in = null; try { URL url = new URL(address); 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 + "%"); } System.out.println(localFileName + "\t" + numWritten); drawLoadingText("Finished downloading " + getArchivedName() + "!"); } catch (Exception exception) { exception.printStackTrace(); } finally { try { if (in != null) { in.close(); } if (out != null) { out.close(); } } catch (IOException ioe) { } } } private String getArchivedName() { int lastSlashIndex = getCacheLink().lastIndexOf('/'); if (lastSlashIndex >= 0 && lastSlashIndex < getCacheLink().length() - 1) { return getCacheLink().substring(lastSlashIndex + 1); } else { System.err.println("Error retreving Archive."); } return ""; } private 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()); } System.out.println("Unzipping: " + e.getName()); } zin.close(); } catch (Exception e) { e.printStackTrace(); } } private 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 ]
  19. I'm using the Lost-Realm 718 Source and one day i randomly started getting this error:/ I've done so much work on this source I don't want to have to start all over again.. Been working on it a few weeks and it just started saying this when I run the client, when I run the source file the server runs in 3.6 seconds but when I run the client either the .jar or the .bat file I get this error:/ Anyone care to help/point me in the right direction? [IMG]http://i.imgur.com/TxVEhGf.png[/IMG]
  20. [MENTION=94449]Arix[/MENTION] I fixed it! It was to do with the cache! I deleted the cache from the server and extracted the matrix cache again to the data/cache folder, ran the client and its working perfectly now! Thanks for the help
  21. Alrighty, I'll have a look into my firewall & anti virtus then ill back and let you know if anything changes.
  22. I actually have no idea what's caused this:/ It just randomly started happening.