Death Messages

Displays a server wide messages of deaths.

Total Downloads: 2,408 - First Release: May 23, 2015 - Last Update: Mar 8, 2018

5/5, 5 likes
  1. So i have this kill message right here --- Death Messages for Reign of Kings | Oxide
    how do i take out the part where it says if anybody kills an animal it says "username -- killed the server" how do i get rid of that?
     
  2. same error
     
  3. I will be back home in 6days
     
  4. Thank you !
     
  5. PaiN updated Death Messages with a new update entry:

    0.3

     
  6. I am getting a crazy amount of errors. I will PM you with the log.
     
  7. I will look into it.
     
  8. Try using the following, it should remove the errors. Worked for me :)
    Code:
    if (e.KillingDamage.DamageTypes.ToString().Contains("Slash","Bash","Pierce","Projectile"))
    That isn't exactly the way I have it on my death messages but if you are trying to show only player to player deaths then those are the only damage types associated. Siege damage might be needed but if it's a keg then it can cause issues since they have no owner after they are placed.
     
    Last edited by a moderator: Jan 15, 2016
  9. I thought about checking if the player or the victim is named Server .... bcs if someone kills a mob the victim name is Server :x
     
  10. Ah yea that was also something I added.
    Code:
    bool server = deathEvent.KillingDamage.DamageSource.Owner.IsServer;
    Before I just checked if the player name was Server but sometimes the server would decide to change it's name to Player for whatever reason. Using that line should help out. I ended up using a boolean to save space instead of referencing that entire line.

    P.S. I mentioned including those damage types because certain damage types don't have an owner such as Fire/Falling/Impact. Those could potentially cause issues with NRE errors.
     
  11. damage might be needed but if it's a keg then it can cause issues since
    I will update once i come back home
     
  12. PaiN updated Death Messages with a new update entry:

    0.4

     
  13. hey PaiN, thanx for the update!

    do you mind starting a conversation with me ? i have some questions and i am looking for an experienced coder!
     
  14. In a second :)
     
  15. This latest update made the plugin stop working, and it gave me a lot more errors. Eventually my server would not work until I removed it...
     
  16. I willbtry something else todsy.
     
  17. 10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    10:19 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
    10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    10:19 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
    10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  18. When this happens "?