Search the Community
Showing results for tags 'tele'.
Found 18 results
-
glory only tele's 20 below like a tab.. how can i make it so it goes 20-30 PI base
-
Hey guys, I am trying to create a ::tele command that only the owner can use that takes him anywhere. I know how to do a tele command that takes a player to a specific spot like ::home but how do I make one where I can type ::tele xxxx yyyy z and it take me there?
-
Guys i have been looking everywhere and cannot find this. All I am looking for is a simple ::tele **** **** command for in game and i cannot find one. If anyone can help me I'm on a 317 PI server. I really need this, Thanks in advanced.
-
I feel like im missing something somewhere, but i don't see it and neither does eclipse... When the person hits the skill tele button it pulls up the dialogue fine, but no matter what option they choose, it takes them to the falconry(hunter minigame) tele. [CODE] package com.rs.game.player.dialogues; import com.rs.Settings; import com.rs.cache.loaders.NPCDefinitions; import com.rs.game.WorldTile; import com.rs.game.minigames.CastleWars; import com.rs.game.player.Skills; import com.rs.game.player.content.Magic; import com.rs.game.player.controlers.FightCaves; import com.rs.game.player.controlers.FightKiln; public class SkillTeleports extends Dialogue { private int npcId; [MENTION=15855]Over[/MENTION]ride public void start() { npcId = (Integer) parameters[0]; sendEntityDialogue(SEND_2_TEXT_CHAT, new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "Time for some skilling, Eh?" }, IS_NPC, npcId, 9827); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (stage == -1) { sendEntityDialogue(SEND_1_TEXT_CHAT, new String[] { player.getDisplayName(), "Yup, Gotta get the comp cape..." }, IS_PLAYER, player.getIndex(), 9827); stage = 1; } else if (stage == 1) { sendOptionsDialogue("What skill will you do?", "Hunter", "Mining", "WoodCutting", "Fishing", "More Options"); stage = 2; } else if (stage == 2) { if (componentId == OPTION_1) { if(player.getEquipment().getWeaponId() != -1 || player.getEquipment().getShieldId() != -1) stage = 1; sendNPCDialogue(npcId, 9827, "Please remove your weapon and shield first, or they will be deleted."); return; }else if(player.getEquipment().getWeaponId() == -1 || player.getEquipment().getShieldId() == -1) { player.getControlerManager().startControler("Falconry"); }else if (componentId == OPTION_2) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(4382, 5912, 2)); else if (componentId == OPTION_3) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3306, 5289, 0)); else if (componentId == OPTION_4) Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2862, 2584, 0)); [/CODE] thats the part that teles them, any ideas?
-
if (clientCommand) { if (cmd[0].equals("tele")) { cmd = cmd[1].split(","); int plane = Integer.valueOf(cmd[0]); int x = Integer.valueOf(cmd[1]) << 6 | Integer.valueOf(cmd[3]); int y = Integer.valueOf(cmd[2]) << 6 | Integer.valueOf(cmd[4]); player.setNextWorldTile(new WorldTile(x, y, plane)); return true; } THIS IS WHATS IN MY COMMAND FOLDER This is what it says in the cmd when i type the command when im on the server : ERROR! THREAD NAME: New I/O worker #1 java.lang.ArrayIndexOutOfBound***ception: 3 at com.rs.game.player.content.commands.Administrator. processCommand(Admi nistrator.java:758) at com.rs.game.player.content.Commands.processCommand (Commands.java:81) at com.rs.net.decoders.WorldPacketsDecoder.processPac kets(WorldPacketsDe coder.java:1552) at com.rs.net.decoders.WorldPacketsDecoder.decode(Wor ldPacketsDecoder.ja va:288) at com.rs.net.ServerChannelHandler.messageReceived(Se rverChannelHandler. java:98) at org.jboss.netty.channel.SimpleChannelHandler.handl eUpstream(SimpleCha nnelHandler.java:95) at org.jboss.netty.channel.DefaultChannelPipeline.sen dUpstream(DefaultCh annelPipeline.java:563) at org.jboss.netty.channel.DefaultChannelPipeline.sen dUpstream(DefaultCh annelPipeline.java:558) at org.jboss.netty.channel.Channels.fireMessageReceiv ed(Channels.java:26 8) at org.jboss.netty.channel.Channels.fireMessageReceiv ed(Channels.java:25 5) at org.jboss.netty.channel.socket.nio.NioWorker.read( NioWorker.java:91) at org.jboss.netty.channel.socket.nio.AbstractNioWork er.processSelectedK eys(AbstractNioWorker.java:373) at org.jboss.netty.channel.socket.nio.AbstractNioWork er.run(AbstractNioW orker.java:247) at org.jboss.netty.channel.socket.nio.NioWorker.run(N ioWorker.java:35) at org.jboss.netty.util.ThreadRenamingRunnable.run(Th readRenamingRunnabl e.java:102) at org.jboss.netty.util.internal.DeadLockProofWorker$ 1.run(DeadLockProof Worker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source) at java.lang.Thread.run(Unknown Source)
-
My web dev who is admin status wants this feature and is obsessed with it. Where do I even go to in order to let him be able to use this feature?
-
I want to say beforehand, these aren't my codes, if you want the snippet, here it is. [url]http://www.runelocus.com/forums/showthread.php?76318-PI-Adding-Teletabs-the-right-way[/url] Here is the code I am using [CODE]public void teleTab(String teleportType) { if(c.duelStatus == 5) { c.sendMessage("You can't teleport during a duel!"); return; } if (c.playerRights > 2 ) { if(c.inWild() && c.wildLevel > Config.NO_TELEPORT_WILD_LEVEL) { c.sendMessage("You can't teleport above level "+Config.NO_TELEPORT_WILD_LEVEL+" in the wilderness."); return; } } if(System.currentTimeMillis() - c.teleBlockDelay < c.teleBlockLength) { c.sendMessage("You are teleblocked and can't teleport."); return; } if(!c.isDead && c.teleTimer == 0 && c.respawnTimer == -6) { if (c.playerIndex > 0 || c.npcIndex > 0) c.getCombat().resetPlayerAttack(); c.stopMovement(); removeAllWindows(); c.npcIndex = 0; c.playerIndex = 0; c.faceUpdate(0); c.teleHeight = 0; c.startAnimation(4731); c.teleTimer = 9; c.teleGfx = 678; c.teleEndAnimation = 0; if(teleportType.equalsIgnoreCase("varrock")) { c.teleX = 3214; c.teleY = 3424; c.getItems().deleteItem(8007 ,c.getItems().getItemSlot(8007), 1); } if(teleportType.equalsIgnoreCase("lumbridge")) { c.teleX = 3222; c.teleY = 3222; c.getItems().deleteItem(8008 ,c.getItems().getItemSlot(8008), 1); } if(teleportType.equalsIgnoreCase("falador")) { c.teleX = 2965; c.teleY = 3380; c.getItems().deleteItem(8009 ,c.getItems().getItemSlot(8009), 1); } if(teleportType.equalsIgnoreCase("camelot")) { c.teleX = 2757; c.teleY = 3477; c.getItems().deleteItem(8010 ,c.getItems().getItemSlot(8010), 1); } if(teleportType.equalsIgnoreCase("ardy")) { c.teleX = 2659; c.teleY = 3308; c.getItems().deleteItem(8011 ,c.getItems().getItemSlot(8011), 1); } } }[/CODE] This is the error [IMG]http://i.imgur.com/sob76.png[/IMG] Sorry for the noob question, i'm new to PI. Please don't troll or answer with stupid responses, thanks :3
-
How do I make it where if you relog your hit points go to normal and if you were teleblocked that goes away?
-
Can someone tell me how to make a tele command?!?!?!?!? or ::staffzone i dont get it at all! -Project
-
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.
-
Ok so ive looked for guides, but I need one that can also do height? Im making a staffzone and its 4 levels up so I need a height inside the command, but i cant find one.
- 3 replies
-
- commandpihelp
- make
-
(and 1 more)
Tagged with:
-
Hey just added a donor telle it looks like this [CODE]if (playerCommand.startsWith("dzone")) { c.getPA().startTeleport(2899, 3555, 0, "modern"); }[/CODE] how do i make it for only donors can tele there?
-
Okay so in the magic spellbook the home teleport, how do I change that to a different location? Please help and also will it change for all lunars,ancients and normal? Thanks in advance!