Thread: Weird PVP Combat bug

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PP]Weird PVP Combat bug[PAYING] 
    Member
    Join Date
    Oct 2008
    Posts
    186
    Thanks given
    2
    Thanks received
    7
    Rep Power
    0
    Hi guys I've been recently working on a server and came to a really annoying problem with the player following within the combat.

    Here's two examples of what I am speaking of.


    - What it seems to be that the player is locating only the X-coords of the opponent.


    - Player keeps following but doesn't continue attacking like normal runescape. And yet stays within the X Coordinates of its opponent



    Comment and tell me what you guys think. Maybe I will get a vision out of your knowledge. Thank you
    Last edited by RuiN; 11-23-2013 at 05:23 AM. Reason: Paying!!!
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Morphine's Avatar
    Join Date
    Jul 2011
    Posts
    1,814
    Thanks given
    495
    Thanks received
    262
    Rep Power
    136
    bump
    Reply With Quote  
     

  4. #3  
    Member
    Join Date
    Oct 2008
    Posts
    186
    Thanks given
    2
    Thanks received
    7
    Rep Power
    0
    trump
    Reply With Quote  
     

  5. #4  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    it's your diagonal combat fix
    Reply With Quote  
     

  6. #5  
    Banned
    Join Date
    Nov 2013
    Posts
    64
    Thanks given
    16
    Thanks received
    14
    Rep Power
    0
    fix up your combat and the player following.
    Reply With Quote  
     

  7. #6  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Take a read through followPlayer method and Attack method
    Attached image
    Reply With Quote  
     

  8. #7  
    Member
    Join Date
    Oct 2008
    Posts
    186
    Thanks given
    2
    Thanks received
    7
    Rep Power
    0
    Thanks for replying, anyone else?
    Reply With Quote  
     

  9. #8  
    Member
    Join Date
    Oct 2008
    Posts
    186
    Thanks given
    2
    Thanks received
    7
    Rep Power
    0
    Forest gump
    Reply With Quote  
     

  10. #9  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Your path finding is really screwed, it seems that it looks for the x first then walks the y. You need it to take the shortest route and note walk horizontally... (unless it is a special circumstance e.g. behind a wall).

    With the pvp thing, it should stop combat when the opponent is not at a good distance, but resume when you catch up, thought most people spam click anyways.
    Reply With Quote  
     

  11. #10  
    hi


    Join Date
    Aug 2013
    Posts
    925
    Thanks given
    290
    Thanks received
    384
    Rep Power
    402
    It's most likely this in your attack player method.

    Code:
    /**
    * Checks if the player is not on the same X coord and Y coord and not using any 
    *range or mage
    */
    if (c.getX() != c2.getX() && c.getY() != c2.getY() && !c.usingOtherRangeWeapons && !c.getCombat().usingHally() && !c.usingBow && !c.usingMagic) {
    	c.faceUpdate(i+32768); //face the player
            c.getPA().stopDiagonal(c2.getX(), c2.getY());//move to a correct spot
    	return;
    }
    Reply With Quote  
     

Page 1 of 2 12 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. Weird PvP Bug
    By Jessee in forum Help
    Replies: 2
    Last Post: 06-25-2013, 10:30 PM
  2. Combat bug fix [final dev 2.6]
    By killamess in forum Tutorials
    Replies: 20
    Last Post: 07-31-2009, 02:34 PM
  3. [Shard] COMBAT BUG
    By pkdude4433 in forum Help
    Replies: 12
    Last Post: 07-30-2009, 12:54 PM
  4. weird player dialoge bug
    By R0cky 0wnz in forum Help
    Replies: 4
    Last Post: 06-17-2009, 10:25 PM
  5. Weird run error bug
    By Ziya in forum Help
    Replies: 2
    Last Post: 05-19-2009, 09:04 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
  •