Thread: 317 - Npc Damage to Player - Server or Client Unsure

Results 1 to 5 of 5
  1. #1 317 - Npc Damage to Player - Server or Client Unsure 
    Donator

    Join Date
    Apr 2016
    Posts
    143
    Thanks given
    23
    Thanks received
    13
    Rep Power
    33
    Many people run into that major problem that they just can't seem to fix and I found a couple yet this problem seems to be a bit more major.

    When you attack a player you start your hit then the NPC hits you and you see a hit marker of lets say (134) and then you take notice at your hp which is now 722/990. This being noticed means that the damage is almost applied twice or something. Any help would be worth it in the end! Thank you!

    If you need to see the problem to identify where it takes place let me know im going to say this would be in npchandler, combatass, rangeinfo, meleeinfo, magicinfo, or one of the following so please let me know if I need to post anything to help out.

    Update; I found out that it's over all hits because when people use overloads the same issue is happening. It would completely kill the player that uses an overload.
    Last edited by Six Echo; 08-15-2016 at 04:16 PM. Reason: Updated
    Spoiler for Looking for a Unique 317?:

    Attached image
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Debug where it calculate the hits and also make sure to not have it being told to hit twice.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Apr 2016
    Posts
    143
    Thanks given
    23
    Thanks received
    13
    Rep Power
    33
    Update; I found out that it's over all hits because when people use overloads the same issue is happening. It would completely kill the player that uses an overload.
    Spoiler for Looking for a Unique 317?:

    Attached image
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by freedomplay View Post
    Update; I found out that it's over all hits because when people use overloads the same issue is happening. It would completely kill the player that uses an overload.
    So make sure under your dealDamage method that it's not being called twice.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Donator

    Join Date
    Apr 2016
    Posts
    143
    Thanks given
    23
    Thanks received
    13
    Rep Power
    33
    Fixed, thank you. It was being called again if in another if statement that wasn't needed.
    Spoiler for Looking for a Unique 317?:

    Attached image
    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. Replies: 29
    Last Post: 02-27-2015, 11:29 PM
  2. Adding Npc Poisoning To Your Server
    By Core in forum Snippets
    Replies: 27
    Last Post: 04-10-2010, 09:49 PM
  3. [508]adding npc's to my server[508]
    By emoscape.servegame in forum Help
    Replies: 5
    Last Post: 11-01-2008, 01:45 AM
  4. Replies: 20
    Last Post: 05-28-2008, 12:37 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
  •