Thread: Teleport Stuck in old region

Results 1 to 7 of 7
  1. #1 Teleport Stuck in old region 
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    How would I fix this.



    In the picture, I actually teleported home but the region didn't update. It happens on occasion.
    Reply With Quote  
     

  2. #2  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    518
    Thanks given
    21
    Thanks received
    7
    Discord
    View profile
    Rep Power
    59
    Post your teleport method being used here please
    Reply With Quote  
     

  3. #3  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    25
    Posts
    4,432
    Thanks given
    892
    Thanks received
    1,525
    Rep Power
    3228
    It happens when ranging/maging npcs and then teleporting right as you shoot. Common on every server I ever been on.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    518
    Thanks given
    21
    Thanks received
    7
    Discord
    View profile
    Rep Power
    59
    Quote Originally Posted by Zivik View Post
    It happens when ranging/maging npcs and then teleporting right as you shoot. Common on every server I ever been on.
    So I am guessing, in the teleport method, you would just make it stop attacking before actually teleporting eh?
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    Quote Originally Posted by Zivik View Post
    It happens when ranging/maging npcs and then teleporting right as you shoot. Common on every server I ever been on.
    zivik my teleportation method shows resetting of player attack. and i tried what you said but couldn't get the glitch to occur. any ideas :\?

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    		if(c.completedPin == false && c.myPin.length() > 0) {
    		c.Pin();
    		return;
    		}
    		if (c.respawnEvent != false) {
    			return;
    
    		}
    		if (c.shouldSetPin == true) {
    			c.getDH().sendDialogues(15001, 0);
    			return;
    		}
    
    		if (c.safeTimer > 0) {
    			c.sendMessage("You cannot teleport while pking, that's noobish.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.inF2p()) {
    			c.sendMessage("The only way out is death or victory.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.f2pWaitingRoom()) {
    			c.sendMessage("Please leave through the ladder exit.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.mustremoveequipment) {
    			c.getPA().closeAllWindows();
    			return;
    
    		}
    		if (!c.chosenstarter) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You must understand the rules before playing.");
    			return;
    		}
    		InterfaceEvent.getInstance().startInterfaceEvent(c);
    		c.canDepositAll = false;
    
    		if (c.inPits || inPitsWait()) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport during fight pits!");
    			return;
    		}
    		if (PestControl.isInGame(c)) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport from a Pest Control Game!");
    			return;
    		}
    		if (c.inTrade) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport in a trade.");
    			return;
    		}
    
    		if (c.duelStatus == 5) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport during a duel!");
    			return;
    		}
    		if (c.isInJail()) {
    			removeAllWindows();
    			c.sendMessage("@[email protected] can't escape from here! Be patient.");
    			return;
    		}
    		if ((c.inWild() && c.wildLevel > Config.NO_TELEPORT_WILD_LEVEL && c.playerRights != 3)) {
    			c.getPA().closeAllWindows();
    			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. @[email protected] can use ::untb!");
    			return;
    		}
    		if (!c.isDead && c.teleTimer == 0) {
    			if (c.playerIndex > 0 || c.npcIndex > 0)
    				c.getCombat().resetPlayerAttack();
    			c.stopMovement();
    			removeAllWindows();
    			c.usingSpecial = false;
    			c.teleX = x;
    			c.teleY = y;
    			c.npcIndex = 0;
    			c.playerIndex = 0;
    			c.faceUpdate(0);
    			c.teleHeight = height;
    			if (c.underAttackBy > 0 || c.underAttackBy2 > 0) {
    			}
    			if (teleportType.equalsIgnoreCase("modern")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    			if (teleportType.equalsIgnoreCase("spiritTree")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    
    			if (teleportType.equalsIgnoreCase("ancient")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    
    		}
    	}
    update:

    i've added

    Code:
     if(c.teleTimer > 0) {
    	return;
    }
    under all //range hit delay or //range hit damage and //magic hit damage via the combatassistant class. hoping it will work will be waiting for your response
    Reply With Quote  
     

  6. #6  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    518
    Thanks given
    21
    Thanks received
    7
    Discord
    View profile
    Rep Power
    59
    Quote Originally Posted by McG Rawest View Post
    zivik my teleportation method shows resetting of player attack. and i tried what you said but couldn't get the glitch to occur. any ideas :\?

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    		if(c.completedPin == false && c.myPin.length() > 0) {
    		c.Pin();
    		return;
    		}
    		if (c.respawnEvent != false) {
    			return;
    
    		}
    		if (c.shouldSetPin == true) {
    			c.getDH().sendDialogues(15001, 0);
    			return;
    		}
    
    		if (c.safeTimer > 0) {
    			c.sendMessage("You cannot teleport while pking, that's noobish.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.inF2p()) {
    			c.sendMessage("The only way out is death or victory.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.f2pWaitingRoom()) {
    			c.sendMessage("Please leave through the ladder exit.");
    			c.getPA().closeAllWindows();
    			return;
    		}
    		if (c.mustremoveequipment) {
    			c.getPA().closeAllWindows();
    			return;
    
    		}
    		if (!c.chosenstarter) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You must understand the rules before playing.");
    			return;
    		}
    		InterfaceEvent.getInstance().startInterfaceEvent(c);
    		c.canDepositAll = false;
    
    		if (c.inPits || inPitsWait()) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport during fight pits!");
    			return;
    		}
    		if (PestControl.isInGame(c)) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport from a Pest Control Game!");
    			return;
    		}
    		if (c.inTrade) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport in a trade.");
    			return;
    		}
    
    		if (c.duelStatus == 5) {
    			c.getPA().closeAllWindows();
    			c.sendMessage("You can't teleport during a duel!");
    			return;
    		}
    		if (c.isInJail()) {
    			removeAllWindows();
    			c.sendMessage("@[email protected] can't escape from here! Be patient.");
    			return;
    		}
    		if ((c.inWild() && c.wildLevel > Config.NO_TELEPORT_WILD_LEVEL && c.playerRights != 3)) {
    			c.getPA().closeAllWindows();
    			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. @[email protected] can use ::untb!");
    			return;
    		}
    		if (!c.isDead && c.teleTimer == 0) {
    			if (c.playerIndex > 0 || c.npcIndex > 0)
    				c.getCombat().resetPlayerAttack();
    			c.stopMovement();
    			removeAllWindows();
    			c.usingSpecial = false;
    			c.teleX = x;
    			c.teleY = y;
    			c.npcIndex = 0;
    			c.playerIndex = 0;
    			c.faceUpdate(0);
    			c.teleHeight = height;
    			if (c.underAttackBy > 0 || c.underAttackBy2 > 0) {
    			}
    			if (teleportType.equalsIgnoreCase("modern")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    			if (teleportType.equalsIgnoreCase("spiritTree")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    
    			if (teleportType.equalsIgnoreCase("ancient")) {
    				c.startAnimation(4731);
    				c.gfx0(1228);
    				c.teleTimer = 9;
    				c.teleEndAnimation = 715;
    			}
    
    		}
    	}
    update:

    i've added

    Code:
     if(c.teleTimer > 0) {
    	return;
    }
    under all //range hit delay or //range hit damage and //magic hit damage via the combatassistant class. hoping it will work will be waiting for your response
    Did it work?
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    Quote Originally Posted by FiveRiverFlo View Post
    Did it work?
    bro i have no idea add it and tell me. i cannot figure out how to force the bug to happen. but if u add my code we might be able to figure out if its fixed
    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. [Z508]Cant teleport out in multi area
    By Socket Head in forum Help
    Replies: 3
    Last Post: 09-05-2009, 10:19 PM
  2. > 255 players in the region
    By Chachi in forum Help
    Replies: 40
    Last Post: 08-16-2009, 11:18 PM
  3. I am known as a god in some regions.
    By ♒☪ℜ♆۞ß☭ℜ♄☠♒ in forum The Red Carpet
    Replies: 2
    Last Post: 04-30-2009, 05:32 PM
  4. Stuck in the air help!
    By Sick Max in forum Help
    Replies: 5
    Last Post: 01-25-2009, 02:28 AM
  5. ::stuck in wildy and modroom.
    By anc13nts in forum Help
    Replies: 4
    Last Post: 08-05-2008, 07:26 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
  •