Thread: All rings are teleporting.

Results 1 to 2 of 2
  1. #1 All rings are teleporting. 
    Registered Member
    Join Date
    Sep 2013
    Posts
    27
    Thanks given
    13
    Thanks received
    0
    Rep Power
    11
    What I did was the following, I kind of copied the command to the teleports of COMP cape and added in a RING.

    But what is happening is that this command is running on all rings and I wanted for a specific ring ...

    In other words, a ring that has more than 2 options ends up also teleporting ...
    But that's not what I want, I want this teleporter to work on just ONE UNIQUE and SPECIFIC ring.


    Can someone give you quick help?

    ----------------------------------------------------------------------------------------------------------------------------------------------
    else if (componentId == 33) {
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) {
    if (player.isLocked() || player.getControlerManager().getControler() != null) {
    player.getPackets().sendGameMessage("Você não pode sair dessa area usando esse teleporte.");
    }

    WorldTasksManager.schedule(new WorldTask() {
    int timer;
    @Override
    public void run() {
    if (timer == 0) {
    player.setNextGraphics(new Graphics(2670));
    player.setNextAnimation(new Animation(3254));
    }
    if (timer == 1) {
    player.setNextWorldTile(new WorldTile(0000, 0000, 0));
    }
    if (timer == 2) {
    player.setNextGraphics(new Graphics(2671));
    player.setNextAnimation(new Animation(3255));
    }
    timer++;
    }
    }, 0, 1);
    return;
    }
    }

    if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET) {
    if (player.isLocked() || player.getControlerManager().getControler() != null) {
    player.getPackets().sendGameMessage("Você não pode sair dessa area usando esse teleporte.");
    return;
    }

    WorldTasksManager.schedule(new WorldTask() {
    int timer;
    @Override
    public void run() {
    if (timer == 0) {
    player.setNextGraphics(new Graphics(2670));
    player.setNextAnimation(new Animation(3254));
    }
    if (timer == 1) {
    player.setNextWorldTile(new WorldTile(0000, 0000, 0));
    }
    if (timer == 2) {
    player.setNextGraphics(new Graphics(2671));
    player.setNextAnimation(new Animation(3255));
    }
    timer++;
    }
    }, 0, 1);
    return;
    }

    if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) {
    if (player.isLocked() || player.getControlerManager().getControler() != null) {
    player.getPackets().sendGameMessage("Você não pode sair dessa area usando esse teleporte.");
    return;
    }

    WorldTasksManager.schedule(new WorldTask() {
    int timer;
    @Override
    public void run() {
    if (timer == 0) {
    player.setNextGraphics(new Graphics(2670));
    player.setNextAnimation(new Animation(3254));
    }
    if (timer == 1) {
    player.setNextWorldTile(new WorldTile(0000, 0000, 0));
    }
    if (timer == 2) {
    player.setNextGraphics(new Graphics(2671));
    player.setNextAnimation(new Animation(3255));
    }
    timer++;
    }
    }, 0, 1);
    return;
    }

    --------------------------------------------------------------------------------------------------------------------------------------------------------
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2019
    Posts
    7
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    The issue is resolved.
    Reply With Quote  
     

  3. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. All clients are being well.. Read please.
    By Nadroj m4 in forum Help
    Replies: 0
    Last Post: 03-06-2011, 11:53 PM
  2. Replies: 13
    Last Post: 08-11-2010, 09:44 PM
  3. Replies: 3
    Last Post: 09-14-2009, 06:38 AM
  4. Replies: 19
    Last Post: 05-26-2009, 11:26 PM
  5. All ports Are blocked !!!!! READ
    By pkownage135 in forum Hosting
    Replies: 2
    Last Post: 05-24-2009, 06:38 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •