Thread: [PI] Teletab Help

Results 1 to 7 of 7
  1. #1 [PI] Teletab Help 
    Registered Member
    Join Date
    Dec 2010
    Posts
    172
    Thanks given
    3
    Thanks received
    2
    Rep Power
    1
    Help Please!... i used this guide
    http://www.rune-server.org/runescape...-teletabs.html


    Everything worked fine and all until i saw that if i were clicking on the teletab to many times or fast it would just delete the teletab without teleporting

    EXAMPLE: I were in magebank tryed out the teleports above level 20: it dident teleport but it did delete the teletab??? Please help guys!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2010
    Posts
    172
    Thanks given
    3
    Thanks received
    2
    Rep Power
    1
    please help
    Reply With Quote  
     

  3. #3  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    add me on msn i can help [email protected]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    How about you convert it to this?
    Code:
    public boolean teleTabTeleport(int x, int y, int height, String teleportType){
                    if(c.inPits){
                    	c.sendMessage("You can't teleport during Fight Pits.");
                    } else if(c.getPA().inPitsWait()){
    	                c.sendMessage("You can't teleport during Fight Pits.");
                    } else if(c.duelStatus == 5){
    		c.sendMessage("You can't teleport during a duel!");
    	} else 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.");
    	} else if(System.currentTimeMillis() - c.teleBlockDelay < c.teleBlockLength){
    		c.sendMessage("You are teleblocked and can't teleport.");
    	} else if(!c.isDead && c.teleTimer == 0 && c.respawnTimer == -6){
    		if (c.playerIndex > 0 || c.npcIndex > 0)
    			c.getCombat().resetPlayerAttack();
    		c.stopMovement();
    		removeAllWindows();			
    		c.teleX = x;
    		c.teleY = y;
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    		c.faceUpdate(0);
    		c.teleHeight = height;
    		if(teleportType.equalsIgnoreCase("teleTab")) {
    			c.startAnimation(4731);
    			c.teleEndAnimation = 0;
    			c.teleTimer = 8;
    			c.gfx0(678);
    		}
    		return true;
    	}
    	return false;
    }
    and
    Code:
    if(itemId == 8007) {
    	if(c.getPA().teleTabTeleport(3214, 3425, 0, "teleTab"))
    		c.getItems().deleteItem(8007,c.getItems().getItemSlot(8007),1);
    }
    Ofcourse you'll need to re-indent that code.

    Instead of having the void return type (none), I have/had it return a boolean (true/false value) declaring whether the teleport is/was a success.
    When it is (return true the item will be deleted.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2010
    Posts
    172
    Thanks given
    3
    Thanks received
    2
    Rep Power
    1
    thx will try
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2010
    Posts
    172
    Thanks given
    3
    Thanks received
    2
    Rep Power
    1
    public boolean teleTabTeleport(int x, int y, int height, String teleportType){
    if(c.inPits){
    c.sendMessage("You can't teleport during Fight Pits.");
    } else if(c.getPA().inPitsWait()){
    c.sendMessage("You can't teleport during Fight Pits.");
    } else if(c.duelStatus == 5){
    c.sendMessage("You can't teleport during a duel!");
    } else 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.");
    } else if(System.currentTimeMillis() - c.teleBlockDelay < c.teleBlockLength){
    c.sendMessage("You are teleblocked and can't teleport.");
    } else if(!c.isDead && c.teleTimer == 0 && c.respawnTimer == -6){
    if (c.playerIndex > 0 || c.npcIndex > 0)
    c.getCombat().resetPlayerAttack();
    c.stopMovement();
    removeAllWindows();
    c.teleX = x;
    c.teleY = y;
    c.npcIndex = 0;
    c.playerIndex = 0;
    c.faceUpdate(0);
    c.teleHeight = height;
    if(teleportType.equalsIgnoreCase("teleTab")) {
    c.startAnimation(9597);
    c.teleEndAnimation = 632;
    c.teleTimer = 8;
    c.gfx0(1680);
    }
    return true;
    }
    return false;
    }




    This is my teletab ATM but wat about if i want to add

    if(c.Jail == true) {
    c.sendMessage("You can't teleport out of Jail!");
    return;
    }
    if(c.inJail() && c.Jail == true) {
    c.sendMessage("You can't teleport out of Jail!");
    return;
    }

    if(c.inFightCaves()) {
    c.sendMessage("You can't teleport out of this minigame!");
    return;

    }

    how do i add it then?? please i tried to add it in but im only getting errors please help
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2010
    Posts
    172
    Thanks given
    3
    Thanks received
    2
    Rep Power
    1
    or wait figured it out
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Teletab gfx.
    By Legacy` in forum Requests
    Replies: 0
    Last Post: 10-05-2010, 02:40 AM
  2. Teletab
    By Dennis in forum Requests
    Replies: 4
    Last Post: 06-18-2010, 09:26 PM
  3. 474 teletab GFX
    By Throat in forum Requests
    Replies: 0
    Last Post: 04-15-2010, 09:45 AM
  4. 562 teletab help
    By lolo in forum Help
    Replies: 2
    Last Post: 12-23-2009, 05:25 AM
  5. Teletab GFX
    By Viper in forum Requests
    Replies: 0
    Last Post: 08-07-2008, 07:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •