Thread: [PI] Teleport takes too long

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1 [PI] Teleport takes too long 
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399


    Does anyone have that problem in Duel Arena?

    Like it takes like 4 seconds to actually tele out and show reward interface by then i can click challenge other and it keeps me in duel arena without giving me rewards

    What I want to fix: In the GIF one player kills the other player and when the player that is dead he is still int he areana doing the emote and the player that killed him can now right click him and Challenge him. Thus leaving the player that killed him stuck in duel arean.


    REP+++
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    May 2010
    Posts
    1,550
    Thanks given
    92
    Thanks received
    154
    Rep Power
    0
    Checkout duelVictory() in TradeAndDuel.


    I can't seem to find it but I'm sure you will have hope.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2010
    Posts
    44
    Thanks given
    0
    Thanks received
    2
    Rep Power
    5
    Looks fine to me, I don't see why that's a problem

    gives more time for people to type out flame messages because they lost xD
    Reply With Quote  
     

  4. #4  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399
    Quote Originally Posted by Falador View Post
    Checkout duelVictory() in TradeAndDuel.


    I can't seem to find it but I'm sure you will have hope.
    If I did that, then there wouldn't be a winner?
    Reply With Quote  
     

  5. #5  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399
    Bump will repp
    Reply With Quote  
     

  6. #6  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399
    Can someone help please?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    In tradeandduel.java search:
    Code:
    public void duelVictory() {
    And you'll see:
    Code:
    c.freezeTimer = 3;
    Change to:
    Code:
    c.freezeTimer = 1;
    It will make it so after the victory it only waits 1 second, then it teleports back.
    Reply With Quote  
     

  8. #8  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399
    Quote Originally Posted by jakehop22 View Post
    In tradeandduel.java search:
    Code:
    public void duelVictory() {
    And you'll see:
    Code:
    c.freezeTimer = 3;
    Change to:
    Code:
    c.freezeTimer = 1;
    It will make it so after the victory it only waits 1 second, then it teleports back.
    this is my duel vic

    Code:
    	public void duelVictory() {
    		Client o = (Client) Server.playerHandler.players[c.duelingWith];
    		if(o != null) {
    			c.getPA().sendFrame126(""+o.combatLevel, 6839);
    			c.getPA().sendFrame126(o.playerName, 6840);
    			o.duelStatus = 0;
    		} else {
    			c.getPA().sendFrame126("", 6839);
    			c.getPA().sendFrame126("", 6840);
    		}
    		c.duelStatus = 6;
    		c.getCombat().resetPrayers();
    		for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    		c.getPA().refreshSkill(3);
    		duelRewardInterface();
    		c.getPA().showInterface(6733);
    		c.getPA().requestUpdates();
    		c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    		c.getPA().showOption(3, 0, "Challenge", 3);
    		c.getPA().createPlayerHints(10, -1);
    		c.canOffer = true;
    		c.duelSpaceReq = 0;
    		c.duelingWith = 0;
    		c.getCombat().resetPlayerAttack();
    		c.duelRequested = false;
    	}
    Reply With Quote  
     

  9. #9  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,778
    Thanks given
    18
    Thanks received
    39
    Rep Power
    399
    still looking for help guys :X
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2008
    Posts
    58
    Thanks given
    0
    Thanks received
    0
    Rep Power
    20
    Would you mind posting the instances of which duelVictory is called?
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

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. Replies: 8
    Last Post: 08-23-2009, 05:30 AM
  2. Find out how long it takes to do something
    By Cascade in forum Tutorials
    Replies: 7
    Last Post: 05-16-2009, 11:22 AM
  3. Haven't made one in a long long time
    By Karma in forum Showcase
    Replies: 4
    Last Post: 10-17-2008, 02:14 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
  •