Jump to content

Search the Community

Showing results for tags 'location'.



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

  1. How to make an NPC walk to a specified location? i wanted npc walk to specified coords like npc.forceWalkRespawnTile(); but i want my coords! any can help me?
  2. Arix

    Location of some code

    Hey guys, This is just a quick question about where the code is that makes ores that are mined respawn. I'm asking this to people who might know it from their head, if not I'll look for myself. Edit: It's for revision 718 matrix (in case you didn't see the prefix) <3 thanksily
  3. So, Im using the rune evo v3 source and when you go into quest tab it shows skilling>basic skilling>Mining and im trying to change the mining teleport to somewhere else by changing the coords. I changed it and compiled but I still teleport to the same place? I edited skillingteleports.java and heres the code. I changed the coords to 3300 3300 but it wont change! public void run(int interfaceId, int componentId) { if (stage == 1) { if (componentId == OPTION_1) { sendOptionsDialogue("Basic Skilling", "Fishing", "Mining", "Agility", "Woodcutting", "More Options"); stage = 2; } if (componentId == OPTION_2) { sendOptionsDialogue("Advanced Skilling", "Mining: Lava Flow Mining", "Hunter: Puro-Puro", "Fishing: Living Rock Caverns", "Slayer: Fremmy Dungeon", "More Options"); stage = 3; } if (componentId == OPTION_3) { end(); } } else if (stage == 2) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2599, 3421, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3300, 3300, 0)); end(); } if (componentId == OPTION_3) { sendOptionsDialogue("Which Course?", "Gnome Agility", "Barbarian Outpost", "Go Back..."); stage = 7; } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3250, 3359, 0)); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Basic Skilling", "Runecrafting", "Summoning", "Hunter", "Farming", "Dungeoneering"); stage = 4; } } else if (stage == 3) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(LavaMine.Lava_Tele)); end(); } if (componentId == OPTION_2) { if (!player.getInventory().hasFreeSlots()) { end(); player.sendMessage("You need atleast 1 free slot to start Puro-Puro."); return; } end(); player.getControlerManager().startControler("PuroPuro"); } if (componentId == OPTION_3) { if (player.getSkills().getLevel(Skills.FISHING) < 90) { end(); player.sendMessage("<col=FF0000>You must be atleast 90 Fishing to go to LRC.</col>"); return; } player.getPackets().sendGameMessage("Talk to Hank for some fishing supplies!"); Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3640, 5138, 0)); end(); } if (componentId == OPTION_4) { if (player.getRights() == 0) { end(); player.sendMessage("You must be donator to access the new slayer dungeon!"); return; } player.getControlerManager().startControler("SlayerControler"); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Advanced Skilling", "Smithing: Artisan's Workshop", "RuneCrafting: RuneSpan", "Slayer: Kuradel's Slayer Tower", "Farming: Livid Farming"); stage = 5; } } else if (stage == 4) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2600, 3162, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2209, 5343, 0)); end(); } if (componentId == OPTION_3) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2526, 2916, 0)); end(); } if (componentId == OPTION_4) { player.getPackets().sendGameMessage("<col=FF0000>This has been replaced by Livid Farming. (See Advanced Skilling list)"); end(); } if (componentId == OPTION_5) { sendOptionsDialogue("Which Dungeon?", "Low Level", "Medium Level", "High Level", "[<col=FF0000>New</col>] Daemonheim"); stage = 6; } } else if (stage == 5) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3047, 3336, 0)); end(); } if (componentId == OPTION_2) { player.getPackets().sendGameMessage("Buy essence from the wizard to begin!"); Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3992, 6108, 1)); end(); } if (componentId == OPTION_3) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3428, 3539, 0)); end(); } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3238, 3350, 0)); end(); } } else if (stage == 6) { if (componentId == OPTION_1) { player.getControlerManager().startControler("Dungeoneering", 0); end(); } if (componentId == OPTION_2) { if (!player.getSkills().hasRequiriments(Skills.DUNGEONEERING, 60)) { player.sendMessage("You need atleast 60 Dungeoneering to enter Mid Level Dung."); return; } player.getControlerManager().startControler("Dungeoneering", 1); end(); } if (componentId == OPTION_3) { if (!player.getSkills().hasRequiriments(Skills.DUNGEONEERING, 99)) { end(); player.sendMessage("You need atleast 99 Dungeoneering to enter High Level Dung."); return; } player.getControlerManager().startControler("Dungeoneering", 2); end(); } if (componentId == OPTION_4) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3451, 3712, 0)); end(); } } else if (stage == 7) { if (componentId == OPTION_1) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2470, 3436, 0)); end(); } if (componentId == OPTION_2) { Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2541, 3548, 0)); end(); } if (componentId == OPTION_3) { sendOptionsDialogue("Basic Skilling", "Fishing", "Mining", "Agility", "Woodcutting", "More Options"); stage = 2; } } } [MENTION=15855]Over[/MENTION]ride public void finish() { // TODO Auto-generated method stub } }
  4. Where are the ingame audio sounds located? For example in the code I use: new Music(76, X, Y, X, Y), // Harmony 76 being the track id of harmony and that works fine but where is the music actually located? I wanted to add all the classic ones into the game. Thnx
  5. Does anyone have the coordinates for the chicken lair where the black dragons are located? I checked many coordinate lists and the coordinates did not work.
  6. Hi, I'm busy with a new rsps, but this is my first 614 ever. I had 317 before. I'm using the Spawnscape source, but how can I change the spawn location? Can't figure that out. lolking
  7. Hey guys, ridiculous question lol. How do I change the home location on a 719+ Server? It is usually in Entity.java but I have gone over it about 3 or 4 times and haven't found it. Thanks in advance! ~Poliwrath
  8. [B][U]Intro[/U][/B] I basically made this tutorial because I was tired of opening up winterlove based servers and seeing this: [CODE]public boolean isInPitRoom() { if((absX >= 2394 && absX <= 2408 && absY >= 5168 && absY <=5175)) return true; else return false; } public boolean isInPitGame() { if((absX >= 2371 && absX <= 2424 && absY >= 5125 && absY <=5167)) return true; else return false; } public boolean isInGW() { if((absX >= 2699 && absX <= 2769 && absY >= 5051 && absY <=5124)) return true; else return false; } public boolean isInApe() { if((absX >= 2760 && absX <= 2780 && absY >= 2790 && absY <=2810)) return true; else return false; } public boolean isInArena() { if((absX >= 2590 && absX <= 2602 && absY >= 8480 && absY <=9510)) return true; else return false; } public boolean isInAssault() { if((absX >= 2576 && absX <= 2623 && absY >= 3145 && absY <=3179)) return true; else return false; } public boolean isInJail() { if((absX >= 2928 && absX <= 2943 && absY >= 3275 && absY <=3291)) return true; else return false; } public boolean isInJail2() { if((absX >= 2926 && absX <= 2938 && absY >= 3274 && absY <=3292)) return true; else return false; } public boolean isInCity() { if((absX >= 2800 && absX <= 2893 && absY >= 9274 && absY <=9807)) return true; else return false; } public boolean isInQuest() { if((absX >= 2895 && absX <= 2930 && absY >= 9674 && absY <=710)) return true; else return false; } public boolean isInGraardor() { if((absX >= 2820 && absX <= 2870 && absY >= 3500 && absY <=3550)) return true; else return false; } public boolean isInPcGame() { if((absX >= 2624 && absX <= 2686 && absY >= 2560 && absY <=2625)) return true; else return false; }[/CODE] Seriously guys? Do you really think this is a good way to do something like this? Extremely messy and stupid imo. Where is the Object orientation that the Java language was designed for? [B][U]The Tutorial[/U][/B] This was originally designed for Runesource, so you'll be adding lots of new classes (yay, fun), if you are already using Runesource and you want to implement this, it shouldn't be hard at all to change the code. [B]Difficulty: 6/10 Knowledge Needed: How to add a new class, being able to read Java[/B] [B][U]Step 1: The Position Class[/U][/B] Originally by blake, re-edited by me for winterLove, this class can also be implemented in a lot of other situations (teleporting, getting the players position, etc.) [CODE]package server.world; /** * Represents the position of a player or NPC. * * @author blakeman8192 */ public class Position { private int x; private int y; private int z; /** * Creates a new Position with the specified coordinates. The Z coordinate * is set to 0. * * @param x * the X coordinate * @param y * the Y coordinate */ public Position(int x, int y) { this(x, y, 0); } /** * Creates a new Position with the specified coordinates. * * @param x * the X coordinate * @param y * the Y coordinate * @param z * the Z coordinate */ public Position(int x, int y, int z) { this.setX(x); this.setY(y); this.setZ(z); } /** * Sets the X coordinate. * * @param x * the X coordinate */ public void setX(int x) { this.x = x; } /** * Gets the X coordinate. * * @return the X coordinate */ public int getX() { return x; } /** * Sets the Y coordinate. * * @param y * the Y coordinate */ public void setY(int y) { this.y = y; } /** * Gets the Y coordinate. * * @return the Y coordinate */ public int getY() { return y; } /** * Sets the Z coordinate. * * @param z * the Z coordinate */ public void setZ(int z) { this.z = z; } /** * Gets the Z coordinate. * * @return the Z coordinate. */ public int getZ() { return z; } }[/CODE] Pretty much self explanatory. [B][U]Step 2: The GeometricRegion class[/U][/B] This class basically represents the square that we will be making to create the region. [CODE]package server.world; /** * Basically represents a square/rectangle, whatever you wanna call it. * * @author lare96 */ public class GeometricRegion { private Position southWest; private Position northEast; /** * Sets the two positions */ public GeometricRegion(Position southWest, Position northEast) { setSouthWest(southWest); setNorthEast(northEast); } /** * @return the northEast position */ public Position getNorthEast() { return northEast; } /** * @param northEast * the northEast position to set */ public void setNorthEast(Position northEast) { this.northEast = northEast; } /** * @return the southWest position */ public Position getSouthWest() { return southWest; } /** * @param southWest * the southWest position to set */ public void setSouthWest(Position southWest) { this.southWest = southWest; } } [/CODE] [B][U]Step 3: The Region class (Last one I swear!!)[/U][/B] [CODE]package server.world; import server.rs2.players.Player; /** * Contains all the locations, can also be used to get the name of a location * and determine if you are within a location * * @author lare96 */ public class Region { private Player p; /** * Constructor... we need this so we can create an instance and then get the * instance of this class in the Player class * * @param p * the player */ public Region(Player p) { this.p = p; } /** * Enum that holds the the values for a specified Region (Location) * * @author lare96 */ public enum Location { LUMBRIDGE(new GeometricRegion(new Position(3199, 3199), new Position(3265, 3296)), "Lumbridge"), LUMBRIDGE_SWAMP(new GeometricRegion(new Position(3145, 3160), new Position(3249, 3187)), "Lumbridge Swamp"); private GeometricRegion area; private String locationName; Location(GeometricRegion area, String name) { this.area = area; this.locationName = name; } public String getLocationName() { return locationName; } public GeometricRegion getGeometricPosition() { return area; } } /** * Checks if you're in a specified location * * @param region * The location * * @return if you are in the location specified or not */ public boolean isInLocation(Location region) { int x = p.getPosition().getX(); int y = p.getPosition().getY(); if (x > region.area.getSouthWest().getX() && x < region.area.getNorthEast().getX() && y > region.area.getSouthWest().getY() && y < region.area.getNorthEast().getY()) { return true; } return false; } /** * Gets the name of the Location you are currently in * * @return The name */ public String getLocation() { for (Location all : Location.values()) { if (isInLocation(all)) { return all.getLocationName(); } } return "an Unknown Location!"; } /** * Generates a random position in the specified region, good for maybe * teleporting a bunch of people to a random spot in a certain area, only * flaw is it doesn't account for objects and map data * * @param place * the place you want the player(s) to be teleported into * * @return the random position in the place */ public Position randomPosition(Location place) { Random r = new Random(); int x = Math.min(place.getGeometricPosition().getSouthWest().getX(), place.getGeometricPosition().getNorthEast().getX()); int x2 = Math.max(place.getGeometricPosition().getSouthWest().getX(), place.getGeometricPosition().getNorthEast().getX()); int y = Math.min(place.getGeometricPosition().getSouthWest().getY(), place.getGeometricPosition().getNorthEast().getY()); int y2 = Math.max(place.getGeometricPosition().getSouthWest().getY(), place.getGeometricPosition().getNorthEast().getY()); int randomX = r.nextInt(x2 - x + 1) + x; int randomY = r.nextInt(y2 - y + 1) + y; return new Position(randomX, randomY); } }[/CODE] [B][U]Step 4: Instances[/U][/B] Open your Player (Runesource) or Client (anything else wl based) class, and add this in: [CODe]private Region r = new Region(this); public Region getRegion() { return r; }[/CODE] And we are done :) it's that simple. [B][U]Step 5: Usage[/U][/B] I left two examples for you of how to implement a new Position. It's the same way you would do it in a winterlove. new Position(sw coords here), new Position(north east coords here). [B][U]Checking if you are in a certain Location[/U][/B] [CODe]if(getRegion().isInLocation(Location.LUMBRIDGE) { // do something }[/CODE] [B][U]Getting your current Location[/U][/B] [CODE]player.sendMessage("You are currently in "+getRegion().getLocation());[/CODE] [B][U]Teleporting to a random position in a specified area[/U][/B] [CODE]player.move(new Position(player.getRegion().randomPosition(Location.LUMBRIDGE));[/CODE] [B][U]Step 6: Notes[/U][/B] If you get any errors, look in the class that is throwing the error, I have documented some things that might throw errors based on server bases. This has been updated several times already, if you have any new ideas for this post below and I'll get too it asap. [U][B]Result:[/B][/U] [IMG]http://i891.photobucket.com/albums/ac113/zezimo52/mopar2-1.png[/img] [IMG]http://i891.photobucket.com/albums/ac113/zezimo52/mopar.png[/img] [B][U]Credits[/U][/B] blakeman8192 Thock321
  9. Not hard, but convenient. [CODE]/** * Location saving */ private WorldTile savedLocation;[/CODE] [CODE]/** * Saves a location. * [MENTION=75098]Para[/MENTION]m trash - save the location, or make it null. */ public void saveLocation(boolean trash) { if (trash) savedLocation = null; else if (!trash) if (controlerManager.getControler() != null) { return; } savedLocation = new WorldTile(getX(), getY(), getPlane()); }[/CODE] [CODE]/** * Returns the players saved location. * * @return - savedLocatiom */ public WorldTile getSavedLocation() { return savedLocation; }[/CODE] [CODE]/** * Teleports a player to their saved location * * [MENTION=75098]Para[/MENTION]m delayTime * - Time in which the player must be teleported * [MENTION=75098]Para[/MENTION]m event * - what you want to player to preform before the delay time * runs out * [MENTION=75098]Para[/MENTION]m timeEvent * - true if you want the event to run when the delaytime is * peaked */ public void sendToSavedLocation(final int delayTime, final Runnable event, final boolean timeEvent) { if (savedLocation == null) { return; } if (delayTime < 1) { try { lock(); setNextWorldTile(savedLocation); event.run(); unlock(); } catch (NullPointerException e) { unlock(); } } else if (delayTime > 0) { try { lock(); event.run(); WorldTasksManager.schedule(new WorldTask() { int delay; [MENTION=15855]Over[/MENTION]ride public void run() { if (delay == delayTime) unlock(); setNextWorldTile(savedLocation); unlock(); stop(); delay++; } }, 0, 1); } catch (NullPointerException e) { unlock(); } } }[/CODE] I included a runnable event in there if you want to run something before or while the teleport takes place. enjoy.
  10. Im using matrix client disturbed 667 source with 718 cache and the home teleport spell is set to edge how can i change it too a different area and also make a command ::home? Please dont like flame my thread that i shouldnt be coding a 667 if i cant figure this out Skype-santino.roma69 i have team-viewer
  11. I'm trying to find a way so I can call something like, [CODE]Object.getLocation().getX()[/CODE] but I can't find the right way to do it, or I don't know how to make something that will do it for me, I've tried using the [CODE]obj.getLocation().getX()[/CODE] from ObjectManager.java and that won't work. So if any one knows how to do this, please let me know! Thanks! (P.S. This is for the Object1PacketHandler.java to make a door work)
  12. Seasonsdawn

    Shop location

    Hey where do i change shop locations?
  13. Classes Affected: Player.Java Difficulty: 1/10 In Player.Java make a new boolean called "inName" Name = the location you want teleblocked..... for example.... if you wanted to teleblock your jail it would look like this... [code] public boolean inJail() { [/code] This makes the boolean which we will use later on.... Now..... you will add a line which will designate the area by using the coordinates within the area as follows... [code] if (absX > XXXX && absX < XXXX && absY > YYYY && absY < YYYY) { [/code] replace XXXX, and YYYY with the dimensions of your jail.... for example if your jail is the combat training portion of the tutorial island it would look like this : [code] if (absX > 3090 && absX < 3115 && absY > 9509 && absY < 9525) { [/code] Next we will add the line to declare the boolean as true and false... [code] return true; } return false; } [/code] "return true;" means that if the player is within the specified coordinates the boolean is true. "return false;" means if they are not within the coordinates the boolean is false. If you did it right the finished product should look like this. [code] public boolean inJail() { if (absX > 3090 && absX < 3115 && absY > 9509 && absY < 9525) { return true; } return false; } [/code]
  14. LegacyX

    Location?

    were is this location? Im going to use for donor zone. [IMG]http://i.imgur.com/LU2KP.png[/IMG] (Picture from RuneXero)
  15. Source: Drowning508
  16. kk im just looking for the coords to the altar of zaros so i can add curses anyone go codes?
  17. So i wanted to change my home location, i looked at this guide: [url]http://www.youtube.com/watch?v=gZxAuL839D8[/url] i followed everything on it.. but when i clicked home teleport, it brang me to the old home location? can anyone help me with this, we can teamview aswell!
  18. How do you change the home location in a blank RS2HD Source? I know it is in Entity.java but I searched for the code and it was not there.. I am afraid to insert the code randomly in the file because I don't want to mess up my first project :/
  19. Hey guys i am in need of some good opinions, where would a " runescape private server" player want a Donator Zone location to be at ? And what would you like to be in the shop(s) ?
  20. okai This tutorial will show you how to change stupid home Okai first you wanna change the home command if u want. Just do that by go into your commandpackethandler.java and change it not that hard.... Okai to change the place you login first time and the respawn place go to Src>Com>Rs2Hd>Model And look for entity.java Open it and search for Code: Now it should be at very top but if it isnt just search it. it should look like this Now replace the XXXX with your coords. AND BOOM. save then compile. then your done Hope it helped u
  21. hi. i was trying to code the bandos door.. and i thought that its the same as 562 l0ls (the location thing) so i did it and got 2 errors with player.getlocation i dont know what is the method in 317 can some 1 tell me it?? here is the error.. [CODE]src\server\model\players\ActionHandler.java:119: cannot find symbol symbol : method getLocation() location: class server.model.players.Client if (c.getLocation().getX() == 2851 && c.getLocation().getY() == 5333) { ^ src\server\model\players\ActionHandler.java:119: cannot find symbol symbol : method getLocation() location: class server.model.players.Client if (c.getLocation().getX() == 2851 && c.getLocation().getY() == 5333) { ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors Press any key to continue . . .[/CODE] thanks!
  22. Just something interesting I found while teleporting to random points. I noticed this isn't anywhere, even in the Zodiac's Location Coords list, so I finally found it and for whoever wants it or has been searching for it, your search is over! X =2452 Y =4469
×