Jump to content

Search the Community

Showing results for tags 'teleporting'.



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

  1. Alright guys, I've never seen this problem so I figured I'd mention it and see if anyone knows what the problem might be. Every time someone on my server teleports, their client freezes... Anyone know what might cause this?
  2. [url]http://prntscr.com/6qnb56[/url] can someone tell me what is wrong with these codes? It compiles perfectly, but in-game it does nothing..
  3. Hello again, After failing with implement a custom interface, i decided too look into what interfaces already existed. I found one id "156". Now im new to interfacing and i having been looking for solutions too my problem for over 4 hours now. I'm not sure what i am doing wrong. I basically wan't to teleport using the textlines within the scroll. [CODE] else if (interfaceId == 156) { //Teleports player.getPackets().sendIComponentText(156, 5, "<col=D71212>My server name | Teleports"); player.getPackets().sendIComponentText(156, 7, "<col=F7FE2E>Combat Training"); player.getPackets().sendIComponentText(156, 8, "<col=D71212>-----------------------"); player.getPackets().sendIComponentText(156, 9, "<col=2E2EFE>Rock Crabs"); player.getPackets().sendIComponentText(156, 10, "<col=2E2EFE>Yaks"); player.getPackets().sendIComponentText(156, 11, "<col=2E2EFE>Hill Giants"); player.getPackets().sendIComponentText(156, 12, "<col=2E2EFE>Hellhounds"); switch (componentId) { case 0: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2323, 3794, 0)); player.getPackets().sendGameMessage( "<col=000079><img=4>Welcome to Yaks, "+player.getDisplayName()); break; case 1: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2706, 3718, 0)); player.getPackets().sendGameMessage( "<col=000079><img=4>Welcome to Rock Crabs, "+player.getDisplayName()); break; case 2: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3118, 9849, 0)); player.getPackets().sendGameMessage( "<col=000079><img=4>Welcome to Hill Giants, "+ player.getDisplayName()); break; case 3: Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2871, 3794, 0)); player.getPackets().sendGameMessage( "<col=000079><img=4>Welcome to Hellhounds, "+player.getDisplayName()); break; } }[/CODE] I do use the same text changing component in a previous field, but i'm unsure how i could add the command already inside a break where it is situated. [CODE] case 8: // Teleports player.getPackets().sendIComponentText(156, 5, "<col=D71212>My server name | Teleports"); player.getPackets().sendIComponentText(156, 7, "<col=F7FE2E>Combat Training"); player.getPackets().sendIComponentText(156, 8, "<col=D71212>-----------------------"); player.getPackets().sendIComponentText(156, 9, "<col=2E2EFE>Rock Crabs"); player.getPackets().sendIComponentText(156, 10, "<col=2E2EFE>Yaks"); player.getPackets().sendIComponentText(156, 11, "<col=2E2EFE>Hill Giants"); player.getPackets().sendIComponentText(156, 12, "<col=2E2EFE>Hellhounds"); player.getInterfaceManager().sendInterface(156); break; [/CODE] That is also initiated by a custom interface. If you think you can help i can send the full file contents if needed. Thank you! Ps: Sorry if what im saying is hard to understand.
  4. This can be done slighly better, but this is a better way of handling teleporting. first go to player.java and add this: [code] public boolean isTeleporting = false; [/code] now in client.java go to process() and remove all these [code] if (teleTimer > 0) { teleTimer--; if (!isDead) { if (teleTimer == 1 && newLocation > 0) { teleTimer = 0; getPA().changeLocation(); } if (teleTimer == 5) { teleTimer--; getPA().processTeleport(); } if (teleTimer == 9 && teleGfx > 0) { teleTimer--; gfx100(teleGfx); } } else { teleTimer = 0; } } [/code] then add this class remember to change the [COLOR="#FF0000"]packaging and imports[/COLOR] [spoiler=TeleportHandler] [code] package org.rs2server.entity.players.content; import org.rs2server.Config; import org.rs2server.entity.players.*; import org.rs2server.event.*; public class TeleportHandler { /** * normal teleport * @param player * @param x - X coordinates to go to * @param y - Y coordinates to go to * @param h - H height to go to */ public static void normalTeleport(final Client player, final int x, final int y, final int h){ if(!canTeleport(player)){ return; } cancelTradeAndDuel(player); player.isTeleporting = true; player.startAnimation(714); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { player.gfx100(308); container.stop(); } @Override public void stop() { } }, 1); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { player.startAnimation(715); player.getPA().movePlayer(x, y, h); container.stop(); } @Override public void stop() { player.isTeleporting = false; } }, 3); } /** * Ancient teleport * @param player * @param x - X coordinates to go to * @param y - Y coordinates to go to * @param h - H height to go to */ public static void ancientTeleport(final Client player, final int x, final int y, final int h){ if(!canTeleport(player)){ return; } cancelTradeAndDuel(player); player.isTeleporting = true; player.startAnimation(1979); player.gfx0(392); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { player.getPA().movePlayer(x, y, h); container.stop(); } @Override public void stop() { player.isTeleporting = false; } }, 3); } /** * tab teleport * @param player * @param x - X coordinates to go to * @param y - Y coordinates to go to * @param h - H height to go to */ public static void tabTeleport(final Client player, final int x, final int y, final int h, final int itemId){ if(!canTeleport(player)){ return; } cancelTradeAndDuel(player); player.isTeleporting = true; player.startAnimation(4731); player.gfx0(678); player.getItems().deleteItem(itemId, 1); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { player.getPA().movePlayer(x, y, h); container.stop(); } @Override public void stop() { player.isTeleporting = false; player.startAnimation(65535); } }, 2); } /** * This process checks everything to see if the player can teleport */ public static boolean canTeleport(Client player){ if(isDead(player)){ return false; } if (isDueling(player)) { return false; } if(isTeleBlocked(player)){ return false; } if(isTeleporting(player)){ return false; } if(wildyLevelCheck(player)){ return false; } else return true; } /** * Checks if the player is dead * @param player * @return */ public static boolean isDead(Client player){ return player.isDead; } /** * Checks to see if the player is dueling * @param player */ public static boolean isDueling(Client player){ if (player.duelStatus == 5) { player.sendMessage("You can't teleport during a duel!"); return true; } else return false; } /** * Checks if the player is teleblocked */ public static boolean isTeleBlocked(Client player){ if (System.currentTimeMillis() - player.teleBlockDelay < player.teleBlockLength) { player.sendMessage("You are teleblocked and can't teleport."); return true; } else return false; } /** * Checks to see if the player is already teleporting * @param player * @return */ public static boolean isTeleporting(Client player){ return player.isTeleporting; } /** * Cancels the trade and duel */ public static void cancelTradeAndDuel(Client player){ if (player.duelStatus >= 1 && player.duelStatus <= 4) { Client o = (Client) PlayerHandler.players[player.duelingWith]; player.duelStatus = 0; o.duelStatus = 0; o.getTradeAndDuel().declineDuel(); player.getTradeAndDuel().declineDuel(); } } /** * Checks to see if player is under level 20 in the wild */ public static boolean wildyLevelCheck(Client player){ if (player.inWild() && player.wildLevel > Config.NO_TELEPORT_WILD_LEVEL) { player.sendMessage("You can't teleport above level " + Config.NO_TELEPORT_WILD_LEVEL + " in the wilderness."); return true; } else return false; } } [/code] [/spoiler] go to walking.java and add this: [code] if(c.isTeleporting == true){ //c.sendMessage("you cannot run while teleporting"); return; } [/code] IF I HAVE MISSED ANYTHING COMMENT IT i will now give you an example of how the teleporting works: go to itemClick.java and add these [code] if(itemId == 8007){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.VARROCK_X, Config.VARROCK_Y, 0, itemId); } if(itemId == 8008){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.LUMBY_X, Config.LUMBY_Y, 0, itemId); } if(itemId == 8009){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.FALADOR_X, Config.FALADOR_Y, 0, itemId); } if(itemId == 8010){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.CAMELOT_X, Config.CAMELOT_Y, 0, itemId); } if(itemId == 8011){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.ARDOUGNE_X, Config.ARDOUGNE_Y, 0, itemId); } if(itemId == 8012){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.WATCHTOWER_X, Config.WATCHTOWER_Y, 0, itemId); } if(itemId == 8013){ if(TeleportHandler.isTeleporting(c)){ return; } else TeleportHandler.tabTeleport(c, Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, itemId); } [/code]
  5. Okay, so this is my first time doing this, changing the teleports in the spellbook to make a "City Teleport" which different cities to choose from... I've wrote this and when I click on the teleport and the options come up, but when I click on any city it just will not teleport me there.... I don't think the case number has anything to do with that does it?? Help will be EXTREMELY appreciated because I REALLLLLY need to get this working ASAP!! [CODE] case 50253: case 4146: c.dialogueAction = 120111; c.getDH().sendOption5("Lumbridge", "Varrock", "Falador", "Camelot", "Edgeville"); //c.teleAction = 4; break; case 102010: // Lumbridge c.getPA().spellTeleport(3222, 3219, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); // Modern }else { if(c.playerMagicBook == 2) { c.setSidebarInterface(6, 29999); // Lunar }else { c.setSidebarInterface(6, 12855); // Ancient } } break; case 102011: // Varrock c.getPA().spellTeleport(3211, 3425, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); // Modern }else { if(c.playerMagicBook == 2) { c.setSidebarInterface(6, 29999); // Lunar }else { c.setSidebarInterface(6, 12855); // Ancient } } break; case 102012: // Falador c.getPA().spellTeleport(2965, 3379, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); // Modern }else { if(c.playerMagicBook == 2) { c.setSidebarInterface(6, 29999); // Lunar }else { c.setSidebarInterface(6, 12855); // Ancient } } break; case 102013: // Camelot c.getPA().spellTeleport(2757, 3478, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); // Modern }else { if(c.playerMagicBook == 2) { c.setSidebarInterface(6, 29999); // Lunar }else { c.setSidebarInterface(6, 12855); // Ancient } } break; case 102014: // Edgeville c.getPA().spellTeleport(3093, 3493, 0); if(c.playerMagicBook == 0) { c.setSidebarInterface(6, 1151); // Modern }else { if(c.playerMagicBook == 2) { c.setSidebarInterface(6, 29999); // Lunar }else { c.setSidebarInterface(6, 12855); // Ancient } } break;[/CODE]
  6. Whatsup guys, I'm not sure if this whas already released but i just created it for my own project today. [B]What does this do?[/B] It closes your Teleport Interface after teleporting. I thought about this because its verry annoying when u are using a Pking teleport and you are bridding you need to close the tab first before u can attack someone. Ok so here we go: Find your button ID For Example ID: 176146 Go to your Clickingbuttons and find that Button and it will look like this: [code] case 176146: c.getPA().spellTeleport(3366, 3266, 0); break;[/code] So you can see it doesnt do anything, it only teleports you to that location but it doesnt close the Interface. Under the coords add this: [code] c.setSidebarInterface(6, c.playerMagicBook == 0 ? 1151 : c.playerMagicBook == 1 ? 12855 : c.playerMagicBook == 2 ? 16640 : 12855);[/code] What this do: It checks what spellbook the player is using> 0,1 or 2. So when you clicked on the teleport it gets you back to your spellbook. So your button will not look like this: [code] case 177215: c.getPA().spellTeleport(3303, 9375, 0); c.setSidebarInterface(6, c.playerMagicBook == 0 ? 1151 : c.playerMagicBook == 1 ? 12855 : c.playerMagicBook == 2 ? 16640 : 12855); break; [/code] Thanks for using my snippet^^. Remco
  7. So recently on my rsps i just got it so when you click lets say a vine or stairs it will teleport you to the correct location. The issue is i want you to be able to click the vine or stairs depending on what side your on to bring you back. Say i go through a door, Since it only teleports me to one side there is no way to get to the other side other then making a portal. I heard someone you gotta do a code like if blank so and so is blah blah, the current way im doing it is> case (object ID) c.getPA().moveplayer(xxxx, yyyy,h); c.sendmessage(""); break; so yeah try to explain it the best you can to me
  8. Need help fixing broken stairs option at dung , so it teleports me below the stairs. I am using rscally matrix thing source. Thanks, Kevin Bowers [IMG]http://img24.imageshack.us/img24/7136/brokenstairs.jpg[/IMG]
  9. Hey when ever i do ::Home or another commands for a tele it works on my owner account with player rights level 3 but when ever i make a new acc and try to tele it dosent do any thing it just stays there here my code thats in my commands whats wrong or is it in another file i gotta change somthing please help somone [CODE]if (playerCommand.equalsIgnoreCase("home") && !c.inWild()) { c.getPA().startTeleport(3087, 3496, 0, "modern"); }[/CODE]
  10. This will show you a basic way of creating a 5-way teleporting tab. It will teleport you to one of these 5 spots at random. Pretty basic. [COLOR="#FF0000"]PLEASE DON'T FLAME, I'M ONLY TRYING TO HELP![/COLOR] [B]Step one:[/B] Click [URL="http://itemdb.biz"]HERE[/URL] and find an item to use. I choose "Rellekka tablet" itemid: 18812. So, if its not already coded to do something, when you click 'Break' it shouldn't do anything. Open up ClickItem.java. (src\server\model\players\packets) Now before you do anything look at the top of the script and find: [CODE]package server.model.players.packets; import server.model.players.Client; import server.model.players.PacketType;[/CODE] ADD "[COLOR="#0000FF"]import server.util.Misc;[/COLOR]" underneath that to make it look like this: [CODE]package server.model.players.packets; import server.model.players.Client; import server.model.players.PacketType; import server.util.Misc;[/CODE] Then find: [CODE] if (itemId[/code] Once you find a match, see if it has the LAYOUT like this: [CODE] if (itemId == 2528) { c.getPA().showInterface(2808); }[/code] Underneath that (or something similar) we're going to start our code; I'll show you the full code, then I'll go through and explain it. So here is the full code for the Relleka Tablet: [CODE] if (itemId == 18812) { //Relleka Tablet ID if (Misc.random(5) == 1) { c.getPA().startTeleport(3093, 3493, 0, "modern"); //edgeville c.sendMessage("The random city teleport, teleported you to Edgeville."); } else if (Misc.random(5) == 2) { c.getPA().startTeleport(3210, 3424, 1, "modern"); //varrock c.sendMessage("The random city teleport, teleported you to Varrock."); } else if (Misc.random(5) == 3) { c.getPA().startTeleport(2757, 3477, 0, "modern"); //camelot c.sendMessage("The random city teleport, teleported you to Camelot.); } else if (Misc.random(5) == 4) { c.getPA().startTeleport(2964, 3378, 1, "modern"); //falador c.sendMessage("The random city teleport, teleported you to Falador."); } else if (Misc.random(5) == 5) { c.getPA().startTeleport(3222, 3218, 1, "modern"); //lumbridge c.sendMessage("The random city teleport, teleported you to Lumbridge."); } c.getItems().deleteItem(18812, 1); }[/code] Ok if you added this it would give you a 1:5 chance of teleporting to Falador, Lumbridge, Camelot, Varrock, or Edgeville. I don't know if I said that right but, yes. So lets explain the code. [EXPLANATION IN [COLOR="#FFA07A"]ORANGE[/COLOR].] [Spoiler=STEPBYSTEP] [CODE] if (itemId == 18812) {[COLOR="#FF8C00"]//If the itemId is equal to 18812 (Relleka Tablet) then[/COLOR][/code] [code] if (Misc.random(5) == 1) { [COLOR="#FF8C00"]//if a random number out of 5 is equal to 1 then[/COLOR][/code] [code] c.getPA().startTeleport(3093, 3493, 0, "modern"); [COLOR="#FF8C00"]//start teleport on modern magic-book to Edgeville[/COLOR][/code] [code] c.sendMessage("The random city teleport, teleported you to Edgeville.");[COLOR="#FF8C00"] //Send Message to Player "The random city teleport, teleported you to Edgeville.[/COLOR]"[/code] [code] } else if (Misc.random(5) == 2) { [COLOR="#FF8C00"]// ELSE If the random number out of 5 is equal to 2 then[/COLOR][/code] [code] c.getPA().startTeleport(3210, 3424, 1, "modern"); [COLOR="#FF8C00"]//start teleport on modern magic-book to Varrock[/COLOR][/code] [code] c.sendMessage("The random city teleport, teleported you to Varrock."); [COLOR="#FF8C00"]//Send Message to Player "The random city teleport, teleported you to Varrock."[/COLOR][/code] [code] } else if (Misc.random(5) == 3) {[COLOR="#FF8C00"] //ELSE if the random number out of 5 is equal to 3 then[/COLOR] [/code] [code] c.getPA().startTeleport(2757, 3477, 0, "modern"); [COLOR="#FF8C00"]// start teleport on modern magic-book to Camelot[/COLOR] [/code] [code] c.sendMessage("The random city teleport, teleported you to Camelot.); [COLOR="#FF8C00"]//Send Message to Player "The random city teleport, teleported you to Camelot."[/COLOR][/code] [code] } else if (Misc.random(5) == 4) { [COLOR="#FF8C00"]// if a random number out of 5 is equal to 4 then[/COLOR] [/code] [code] c.getPA().startTeleport(2964, 3378, 1, "modern"); [COLOR="#FF8C00"]// start teleport on modern magic-book to Falador [/COLOR][/code] [code] c.sendMessage("The random city teleport, teleported you to Falador."); [COLOR="#FF8C00"]//Send Message to Player "The random city teleport, teleported you to Falador."[/COLOR] [/code] [code] } else if (Misc.random(5) == 5) { [COLOR="#FF8C00"]//if the random nuber out of 5 is 5 then[/COLOR] [/code] [code] c.getPA().startTeleport(3222, 3218, 1, "modern"); [COLOR="#FF8C00"]//start teleport on modern magic-book to Lumbridge[/COLOR] [/code] [code] c.sendMessage("The random city teleport, teleported you to Lumbridge."); [COLOR="#FF8C00"]//Send Message to Player "The random city teleport, teleported you to Lumbridge."[/COLOR] [/code] [code] } c.getItems().deleteItem(18812, 1); [COLOR="#FF8C00"]//This deletes item after clicked![/COLOR] }[/code][/spoiler]
  11. This means that the mapdata is absent for the area, correct?
  12. okay so I have made a ::shops section it is in the same section as the teleporting spell. when I click the spell Monster Teleport > island it takes me to the island but its not the same as when I teleport using the command BELOW heres my problem When I teleport using [CODE]if (playerCommand.equals("shops") && c.playerRights >= 0) { c.getPA().movePlayer(2896, 2727, 12); }[/CODE] i ALSO TRIED [CODE] if (playerCommand.equals("shops") && c.playerRights >= 0) { c.getPA().startTeleport(2896, 2727, 12, "modern"); }[/CODE] the command works fine.. but I do not see the NPC's that were placed when i used the spell teleport Idk if you understand I got it ! I used [CODE]c.getPA().spellTeleport(2895, 2727, 0);[/CODE] #I can team viewer
  13. hey guys this is my code and it gives me errors can any 1 help [code] case 58847://home doors if(player.getLocation().getX() == 4096 && player.getLocation().getY() == 4934) { player.tele(4096, 4931, 0); } else player.WalkTo().GoTo(player, 4096, 4934); } else if(player.getLocation().getX() == 4096 && player.getLocation().getY() == 4931) { player.tele(4096, 4934, 0); } else player.WalkTo().GoTo(player, 4096, 4931); } break;[/code]
  14. nvm it wasnt compiling it dir facepalm me lol
  15. Hi, does anyone knows when to click an object and when u click that object it teleports you to a place does anyone know how to add it?
×