Jump to content

Search the Community

Showing results for tags 'area'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Found 35 results

  1. in the title ^ ive tried area.xml and playerareatick
  2. [SIZE=3]I got bored and decided to write a system for areas. This will work for any revision, although you may have to change around the imports and packages a little bit. Purpose of this snippet? This basically lets you create custom areas that can be used for minigames, pvp zones, multi zones, boss areas, donator zones, etc or for map effects such as being in the desert makes you lose hp and "die of thirst" and so on and so forth (Can't think of anything else off the top of my head) But yeah, without further ado: Create a new class in whatever directory and put this in it: [CODE]package org.afflatus.game.world.map.location; import java.awt.Point; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import org.afflatus.game.player.Player; /** * Made by: K-Shan */ public class Area { /** * Name of the area */ private String name; /** * Represent the most southern, western point. */ private Point southWest; /** * Represents the most northern, eastern point */ private Point northEast; /** * Represents the map height */ private byte z; /** * is the area a multi zone? */ private boolean multi; /** * Can you teleport to this area? */ private boolean teleportable; /** * Is this a pvp zone? */ private boolean pvp; /** * Area * @param southWest * @param northEast * @param z */ public Area(Point southWest, Point northEast, byte z) { this.southWest = southWest; this.northEast = northEast; this.z = z; } /** * Area * @param southWest * @param northEast * @param z * @param name * @param multi * @param tele * @param pvp */ public Area(Point southWest, Point northEast, byte z, String name, boolean multi, boolean tele, boolean pvp) { this.name = name; this.southWest = southWest; this.northEast = northEast; this.z = z; this.multi = multi; this.teleportable = tele; this.pvp = pvp; } /** * Area * @param point * @param bounds */ public Area(Point point, double bounds) { this.northEast = getNE(point, bounds, bounds); this.southWest = getSW(point, bounds, bounds); this.z = 0; this.name = "Default Location"; } /** * Area * @param point * @param xBounds * @param yBounds */ public Area(Point point, double xBounds, double yBounds) { this.northEast = getNE(point, xBounds, yBounds); this.southWest = getSW(point, xBounds, yBounds); this.z = 0; this.name = "Default Location"; } /** * default vars for an area. */ public Area() { name = ""; southWest = null; northEast = null; pvp = false; multi = false; teleportable = true; z = -1; } /** * Loops through a .txt file and finds the areaName that corresponds with the param "name" * @param name * @return */ public static Area get(String name) { Area area = null; try { BufferedReader r = new BufferedReader(new FileReader(new File("data/areas.txt"))); while (true) { String line = r.readLine(); boolean ignore = false; if (line == null) break; if (line.startsWith("//") || line.equals("")) continue; if (line.contains("/*")) continue; ignore = true; if (line.contains("*/")) if (ignore == true) continue; ignore = false; String[] splitLine = line.split(" - "); String areaName = splitLine[0]; String newLine = splitLine[1]; String[] splitLinev2 = newLine.split(", "); int southWestX = Integer.parseInt(splitLinev2[0]); int southWestY = Integer.parseInt(splitLinev2[1]); int northEastX = Integer.parseInt(splitLinev2[2]); int northEastY = Integer.parseInt(splitLinev2[3]); byte z = Byte.parseByte(splitLinev2[4]); boolean multi = Boolean.parseBoolean(splitLinev2[5]); boolean teleportable = Boolean.parseBoolean(splitLinev2[6]); boolean pvp = Boolean.parseBoolean(splitLinev2[7]); if(areaName.equalsIgnoreCase(name)) area = new Area(new Point(southWestX, southWestY), new Point(northEastX, northEastY), z, areaName, multi, teleportable, pvp); } r.close(); } catch(Throwable e) { e.printStackTrace(); } return area; } /** * Is the player in a certain area? * @param player * @param area * @return */ public static boolean inArea(Player player, Area area) { return player.getX() >= area.southWest().getX() && player.getX() <= area.northEast().getX() && player.getY() >= area.southWest().getY() && player.getY() <= area.northEast().getY(); } /** * Length of the area. * @return */ public short length() { return (short) (northEast.getX() - southWest.getX()); } /** * returns the width of the area. * @return */ public short width() { return (short) (northEast.getY() - southWest.getY()); } /** * Returns the center of the area. * @return */ public Location center() { return new Location(southWest.x + (Math.round(length() / 2)), southWest.y + (Math.round(width() / 2)), z); } /** * Gets the northeastern point. * @param point * @param xBounds * @param yBounds * @return */ public Point getNE(Point point, double xBounds, double yBounds) { Point p = new Point(); p.setLocation(point.x + xBounds, point.y + yBounds); return p; } /** * Gets the southwestern point * @param point * @param xBounds * @param yBounds * @return */ public Point getSW(Point point, double xBounds, double yBounds) { Point p = new Point(); p.setLocation(point.x - xBounds, point.y - yBounds); return p; } /** * Returns northeast point. * @return */ public Point northEast() { return northEast; } /** * Returns southwest point. * @return */ public Point southWest() { return southWest; } /** * Returns if the area is multi or not. * @return */ public boolean isMulti() { return multi; } /** * Can you tele to this area? * @return */ public boolean isTeleportable() { return teleportable; } /** * Is this a pvp area? * @return */ public boolean isPvp() { return pvp; } /** * The name of the area * @return */ public String name() { return name; } } [/CODE] Great job, now you're done! If you want to test the effectiveness of this, follow these extra steps: [SPOILER="Testing The Area System"] Go to your data folder and create a new .txt document called areas.txt and add this inside of it: [CODE] // name - southwest X, southwest Y, northeast x, northeast y, z, multi, teleportable, ispvp? Dungeoneering Test - 3460, 3725, 3471, 3737, 0, false, true, false [/CODE] Now, go to your commands.jerba and add this command to test effectiveness: [CODE] case "m": Area area = Area.get("Dungeoneering Test"); player.getActionSender().sendMessage("Name : "+area.name()+", Teleable ? "+area.isTeleportable() +" NE: "+area.northEast().x+", "+area.northEast().y+" - SW: "+area.southWest().x +", "+area.southWest().y); if(Area.inArea(player, area)) player.sm("In dungeoneering lobby."); else player.sm("Not in dungeoneering lobby."); return true; [/CODE] [/SPOILER] And that's all! Creds: me. If you have any questions, i'd be happy to help. [/SIZE]
  3. What i mean is so you can pk when you walk off the ge floor in that bit where it's safe pk?
  4. so in my bank I really hate how ugly it is, my question is can I remove the walls and make them ropes? the ropes make it look a lot cleaner [url]http://www.upload.ee/image/3785170/Screenshot_2013-12-24_14.14.10.png[/url]
  5. Cosmic Kid

    PVP Area Code?

    Could someone help me in setting up a code for making everywhere except banks wilderness areas? I'd like to have pking everywhere on this client.
  6. How do i make a PK area and how do i delete objects?
  7. Alright, really NOOB question, but i've just got this new laptop, installed vista and its took my wireless network adapter off, meaning i cant connect to internet I'm going to use it as my dev laptop now, is there anyway i can connect to my source?
  8. If somebody can help me changing the login screen and chat area thanks add me on skype: lil-sean3 or send me a message here
  9. Hey guys, I want to remove a pvp area, but I cannot find the right code to do so. Varrock in my source is a pvp area and I do not know how to remove it. I need to find out the specific code in player.java or how to remove pvp from varrock. Please help. thanks
  10. [CENTER][IMG]http://area-51.net46.net/images/blue_warez2/logo.png[/IMG][/CENTER] [LEFT][FONT="Century Gothic"][SIZE="6"][COLOR="DeepSkyBlue"]Base[/COLOR][/SIZE][/FONT][/LEFT] [LIST] [*]Zepsity [/LIST] [LEFT][FONT="Century Gothic"][SIZE="6"][COLOR="DeepSkyBlue"]Downloads[/COLOR][/SIZE][/FONT] [LIST] [*][URL="http://uppit.com/vx6zlfy817wj/Area_51.rar"]Server[/URL] [*][URL="http://uppit.com/pykhwdcubyv9/Area_51_Client.rar"]Client[/URL] ( Auto downloads cache ) [/LIST] [FONT="Century Gothic"][SIZE="6"][COLOR="DeepSkyBlue"]Features[/COLOR][/SIZE][/FONT][/LEFT] [LIST] [*]Curses [*]Nomad [*]Avatar of Destruction [*]Decent Combat [*]Decent Summoning [*]Alot of Interfaces [*]Custom Donatorzone [*]Spawn [*]Custom point system [*]New hitmarks [*]Dungeoneering armour [*]Nex armour [*]Chaotics [*]Most skills rewritten [*]Skilling zone [*]Winter storage scroll [*]Faster switching [*]Full Request Help System - thanks to I'm A Jerk & Joshua [*]PvP Armours [*]Fullscreen, Resizable [*]Stable server , Stable client [*]New client loadingscreen [*]All Spirit Shield Effects [*]Ring of Vigour Effects [*]Nex Armour Effects [*]Pest control revamped [*]Barrows revamped [*]Prayers fixed [*]All Npc's added correct places [*]AutoCacheDownloader [/LIST] [LEFT][FONT="Century Gothic"][SIZE="6"][COLOR="DeepSkyBlue"]Media[/COLOR][/SIZE][/FONT][/LEFT] [SPOILER="Media"] [IMG]http://i50.tinypic.com/2jebu6b.png[/IMG] [IMG]http://i45.tinypic.com/2lk6zyh.png[/IMG] [IMG]http://i45.tinypic.com/2ez5khz.png[/IMG] [IMG]http://i46.tinypic.com/20npdz.png[/IMG] [IMG]http://i48.tinypic.com/2s929tj.png[/IMG] [IMG]http://i50.tinypic.com/2mr65uv.png[/IMG] [IMG]http://i48.tinypic.com/21envxs.png[/IMG] [IMG]http://i47.tinypic.com/122fbyc.png[/IMG] [IMG]http://i49.tinypic.com/2llko6s.png[/IMG] [IMG]http://i49.tinypic.com/dn0bcy.png[/IMG] [IMG]http://i49.tinypic.com/2lo2oav.png[/IMG] [IMG]http://i49.tinypic.com/fp8mfd.png[/IMG] [IMG]http://i49.tinypic.com/1evtkz.png[/IMG] [IMG]http://i47.tinypic.com/2hx7pew.png[/IMG] [IMG]http://i49.tinypic.com/2pyz7rm.png[/IMG] [IMG]http://i50.tinypic.com/14lj1wx.png[/IMG] [IMG]http://i46.tinypic.com/34fy0pl.png[/IMG] [IMG]http://i46.tinypic.com/5vyhoz.png[/IMG] [/SPOILER] [FONT="Century Gothic"][SIZE="6"][LEFT][COLOR="DeepSkyBlue"] Feedback[/COLOR][/LEFT][/SIZE][/FONT] [COLOR="Gray"][LEFT][FONT="Century Gothic"][SIZE="3"]Please only give constructive criticism and also do not flame. This was our first project we worked on.[/SIZE][/FONT][/LEFT][/COLOR]
  11. madman

    making dice area

    im fairly sure this is a simple but how would you change it so when you dice it doesn't go through the whole game. (i just want it to show in a area where it was thrown)
  12. I went into the wilderness and it says duel (persons name) but i want it to say attack (person name) rather then saying duel and bringing me then to al kaharid. How do i make it so it says attack.
  13. I want to create a PvP area in varrock but i dont know how to to... I have added this in entity.java, but idk if the coords or the code is right: [CODE]public boolean inPvPZone(){ if(getLocation().getX() >= 3172 && getLocation().getX() <= 3207 && getLocation().getY() >= 3451 && getLocation().getY() <=3428) return true; else return false; }[/CODE] anyway the pvp zone does not work. I want a regular pvp zone. If you die with a skull you lose all items, if you die without you keep 3items + another if using protect item.
  14. nvm it was my own little mistake
  15. im slowing getting back into making servers again and ive forgotten about how add a multi area, and also adding damage to a npc and make it a certain type of damage (range,mage,melee)
  16. closed. ty omfg ty
  17. [CENTER][IMG]http://i46.tinypic.com/14wt9wp.png[/IMG][/CENTER] [COLOR="RoyalBlue"][FONT="Century Gothic"][CENTER][SIZE="6"]About us[/SIZE][/FONT][/COLOR] [COLOR="DeepSkyBlue"][FONT="Century Gothic"][SIZE="3"]Area 51 will be a spawn and mostly player-killing based server. The project is based on PI, I can't remember the source, because I've coded it a long time ago and saw the source folders on my computer so I decided to make a project and improve my coding skills. The main reason for making this server is just to deliver people a funtime because summer is coming, for all those who are bored in the summer.[/SIZE][/CENTER][/FONT][/COLOR] [FONT="Century Gothic"][SIZE="6"][COLOR="RoyalBlue"][LEFT]Links[/LEFT][/COLOR][/SIZE][/FONT] [LIST][*][URL="http://area-51.net46.net/"]Area 51 Beta Forum[/URL] [URL="http://area-51.net46.net/webclient.php"]Area 51 Beta Webclient[/URL] [/LIST] [FONT="Century Gothic"][LEFT][SIZE="6"][COLOR="RoyalBlue"]Goals[/COLOR][/SIZE] [LIST] [*]Decent & Simple Summoning [*]Simple and compact [*]Spawning with limitations [*]Good player-killing system [*]No glitches ( Long way to go ) [*]Point system [*]Helpful forums [*]Easy and fast webclient [*]Alot of npc's [*]Good player-killing spots [*]And more [/LIST][/LEFT][/FONT] [FONT="Century Gothic"][SIZE="6"][COLOR="RoyalBlue"]Team[/COLOR][/SIZE] [LIST] [*]Styl3r [*]Earthquake [*]1337 [/LIST] [SIZE="6"][COLOR="RoyalBlue"][LEFT] Media[/LEFT][/COLOR][/SIZE] [LEFT][LIST] [SPOILER="Media"] [SPOILER="Client"][IMG]http://i45.tinypic.com/2ez5khz.png[/IMG][/SPOILER] [SPOILER="Skills"][IMG]http://i50.tinypic.com/2jebu6b.png[/IMG][/SPOILER] [SPOILER="Misc"] [IMG]http://i46.tinypic.com/20npdz.png[/IMG] [IMG]http://i50.tinypic.com/2mr65uv.png[/IMG] [/SPOILER] [SPOILER="Npc's"][IMG]http://i48.tinypic.com/21envxs.png[/IMG] [IMG]http://i47.tinypic.com/122fbyc.png[/IMG] [/SPOILER] [SPOILER="Player-Killing"][IMG]http://i49.tinypic.com/2llko6s.png[/IMG] [IMG]http://i49.tinypic.com/dn0bcy.png[/IMG][/SPOILER] [SPOILER="Summoning"][IMG]http://i49.tinypic.com/2lo2oav.png[/IMG] [IMG]http://i49.tinypic.com/fp8mfd.png[/IMG] [IMG]http://i49.tinypic.com/1evtkz.png[/IMG][/SPOILER] [/SPOILER] [/LIST][/LEFT][/FONT] [LEFT][SIZE="6"][COLOR="RoyalBlue"][FONT="Century Gothic"]Updates[/FONT][/COLOR][/SIZE][/LEFT] [FONT="Century Gothic"][SIZE="2"][COLOR="Gray"][LIST] [*]We will keep this post updated everyday. [*]27/5/12 - Project started [*]28/5/12 - Taverly Dungeon Npc's added [*]28/5/12 - New loadingscreen and titlebox added [*]29/5/12 - Pk Point Shop added [*]29/5/12 - Skilling areas added [*]29/5/12 - Removed all npc's and added only important npc's [*]29/5/12 - Revamped summoning [*]30/5/12 - Server up for beta testing [*]30/5/12 - Added new bank interface [*]30/5/12 - Started testing all combat weapons (melee) [*]31/5/12 - Added new loyalty titles [*]31/5/12 - Added ring of vigour and effects [*]31/5/12 - Cache autoupdater added [*]01/6/12 - Added new stafftab interface - credits to [USER]Joshua[/USER] [*]01/6/12 - Protect Item glitch fixed [*]01/6/12 - Pk point system adjusted and improved [*]01/6/12 - Full Request Help system added - credits to [USER]I'm A Jerk[/USER] [/LIST][/COLOR][/SIZE][/FONT] [FONT="Century Gothic"][SIZE="6"][CENTER][COLOR="RoyalBlue"] Feedback[/COLOR][/CENTER][/SIZE][/FONT] [COLOR="DeepSkyBlue"][CENTER][FONT="Century Gothic"][SIZE="3"]Please only give constructive criticism and also do not flame. This is our first project were working on, Thanks in advance[/SIZE][/FONT][/CENTER][/COLOR]
  18. How to change thse on a 317 Pi: [URL=http://imageshack.us/photo/my-images/829/swagg1.png/][IMG]http://img829.imageshack.us/img829/8711/swagg1.png[/IMG][/URL] To this?: [URL=http://imageshack.us/photo/my-images/252/swagg2.png/][IMG]http://img252.imageshack.us/img252/5127/swagg2.png[/IMG][/URL]
  19. Hey guys, I just started getting into server programming a few days ago. My friend told me the best base to start off with is PI so I downloaded RuneXero source. I like it and I understood it. What is getting me mad is that I've changed the starting location to my new one and I've changed the Lumby tele which is the home tele on the modern's mage book to the new home location. Problem is that when I saved everything and ran it. They didn't change they stayed the same locations. What's also weird is that I've changed the respawn area to a new one and that worked great but the others(starting location and lumby tele). Please help me out. I've tried everything even new coords. Thankyou. Btw, I'm using eclipse to run this server.
  20. Title ^ How would I remove the "attack" option, from one area in the wilderness.
  21. This means that the mapdata is absent for the area, correct?
  22. well, i had a little problem in my chatbox where you had to put your mouse down a couple lines in order to add friend/accept someones trade, fixed it and incase anyone else has this problem heres how you fix it. go into the client class of your client, and search for [CODE]buildChatAreaMenu(super.mouseY[/CODE] you'll see this: [CODE]buildChatAreaMenu(super.mouseY - 310);[/CODE] change the int around until its correct. i suggest typing ::dataon in your client and eyeballing how much the mouse Y coordinate is off.
  23. [IMG]http://runescape.salmoneus.net/assets/images/quests/lost-city/treespirit.png[/IMG] The place where you kill the tree spirit. Thanks in advance.
  24. General

    Home Area

    I am looking for a unique home, not commonly used or not used at all. An attractive area for space of players and banks also. I can't seem to find any eye catching enough for me to use. This is 317 maps not 508 or any higher. Thanks -General.
  25. OK, i added i believe 509 map area? [IMG]http://i42.tinypic.com/2s62a7d.png[/IMG] I added this onto my client file. client>sprites> and when i compiled, map area still the same? [IMG]http://i41.tinypic.com/rab5tz.png[/IMG] please help