Thread: Combat bug

Results 1 to 10 of 10
  1. #1 Combat bug 
    Registered Member
    Join Date
    Nov 2021
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hi all,

    I'm new to rsps development and I've recently started helping at another server.
    it's a 718 and it has this weird bug with combat that when 2 players are both attacking 2 different NPCs when in the same area one of the 2 players gets dragged to the NPC that the other player is attacking and starts attacking that same NPC as well... I don't know if that made sense if not please let me know and I'll provide some video to show what I mean.

    Now since I'm new to rsps development I have no idea where to start looking for this.. any help is welcome!

    VIDEO:
    https://imgur.com/a/ZuYak5R

    Thanks, Nals
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,761
    Thanks given
    703
    Thanks received
    692
    Discord
    View profile
    Rep Power
    519
    Huh... are you in a multi-area? If one of the 2 NPCs does an AOE/attacks the other player that wasn't attacking it, then the other player might auto-retaliate back even if he's attacking something.
    Project thread
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2021
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hi!

    Yes but I don't see why the NPC would attack another player while it is attacking one already? This happens everywhere even at rock crabs for example.
    I added a video link in the original post that may clear up what I mean.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2017
    Posts
    73
    Thanks given
    8
    Thanks received
    26
    Rep Power
    13
    Could be a player routing error. It seems that the game routes every player, possibly only nearby, to the npc that is attacked. Check your methods for attacking npc's. It should only be routing the player who is attacking not everyone.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2021
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    And do you think it's a problem caused by the player attacking the NPC or the NPC reacting to the player attacking it? Sorry fairly new to this so I'm trying to find my way through this
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Mar 2015
    Age
    30
    Posts
    1,329
    Thanks given
    203
    Thanks received
    321
    Discord
    View profile
    Rep Power
    0
    Quote Originally Posted by Nals View Post
    Hi!

    Yes but I don't see why the NPC would attack another player while it is attacking one already? This happens everywhere even at rock crabs for example.
    I added a video link in the original post that may clear up what I mean.
    because the npc is in multi area zone and the combat script of that npc is for nearby target, try to remove the combat script of that npc and check if its still the same.
    Reply With Quote  
     

  7. #7  
    Mug Club


    Join Date
    Jul 2011
    Age
    27
    Posts
    1,938
    Thanks given
    528
    Thanks received
    937
    Discord
    View profile
    Rep Power
    409
    This looks like prime Matrix entity-extending-worldtile error to be honest. Add a hashcode definition to your entity/player/npc classes so the game doesn't think just because two entities are standing on the same tile they are identical.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2021
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hi, thanks for answering, I don't really know how to do this though so if you could show me that would be great...
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Mar 2015
    Age
    30
    Posts
    1,329
    Thanks given
    203
    Thanks received
    321
    Discord
    View profile
    Rep Power
    0
    Quote Originally Posted by Nals View Post
    Hi, thanks for answering, I don't really know how to do this though so if you could show me that would be great...
    i have some free time today maybe i can help you with this problem
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2021
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by CABLE View Post
    i have some free time today maybe i can help you with this problem
    Yes would be great I have send you a pm on discord
    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. SS - combat bug?
    By Swifty in forum Help
    Replies: 7
    Last Post: 06-09-2010, 02:11 PM
  2. insanity combat bug!
    By Romania Clan in forum Help
    Replies: 3
    Last Post: 06-03-2010, 10:52 PM
  3. [562] help with npc combat bug please...
    By darkness in forum Help
    Replies: 4
    Last Post: 11-07-2009, 06:32 PM
  4. Combat bug fix [final dev 2.6]
    By killamess in forum Tutorials
    Replies: 20
    Last Post: 07-31-2009, 02:34 PM
  5. [Shard] COMBAT BUG
    By pkdude4433 in forum Help
    Replies: 12
    Last Post: 07-30-2009, 12:54 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •