Jump to content

gabrielfb22

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by gabrielfb22

  1. 2 minutes ago, Haruka Mayumi said:

    There's a good way to log players damage to monsters. but there's also another way for logging the players damage vs players. i just really don't know which one you are aiming. if logs between pvm or pvp. if you are focusin on pvm. you can just simply get the md->dmglog however if you want to take pvp damage logs you can do things on sd->dmglog

    I'm mainly trying to log the damage on a certain monster, but I'll try that!  So dmglog is a char-bound variable? Because the system I'm trying to implement is a damage rank on an instanced monster, so I was trying to get each character's damage on a certain mapflag or monster.

  2. 6 minutes ago, Haruka Mayumi said:


    i dunno what you are trying to achieve. because the damage logs have their own respective code like the mob_data->dmglog

    I was trying to log those on a sql table or either create a variable to be used on a script to store the damage (onto a certain mob or mapflag), but then I got lost on how to do that.

  3. On 6/4/2020 at 4:35 PM, Haruka Mayumi said:

    This is all about source.. you can start looking at pc.cpp/.hpp

    uint16 dmglog[DAMAGELOG_SIZE_PC]; ///target ids

    EDIT : however if you just want to get the damage log of a certain mob.. it's good to look at mob_dead function around mob.cpp ?

    Amazing, I'll take a look at that, thanks for the reply! 

     

    On 6/4/2020 at 4:35 PM, Haruka Mayumi said:

    This is all about source.. you can start looking at pc.cpp/.hpp

    uint16 dmglog[DAMAGELOG_SIZE_PC]; ///target ids

    EDIT : however if you just want to get the damage log of a certain mob.. it's good to look at mob_dead function around mob.cpp ?

    So, i took a look at the DAMAGELOG_SIZE_PC and it seems like it only stores players' IDs. Is that right? 

    Then I found the function pc_damage_log_add on pc.cpp, however I don't really get how it stores the damage and when pc_damage_log_clear is called, do you have any insight on that?

    Thanks once again.

  4. Greetings everyone,

    I've been trying to log damage numbers related to each character at a certain mapflag, however I've got no success at all. So I got the idea of logging the "Battle message" numbers on the chat instead of trying to mess around creating new src commands. Where would I be able to find those numbers on the server side? I gave a look at clif.c but still couldn't find out the logic behind it. Thanks in advance!

×
×
  • Create New...