DeathNotes

Moved

Total Downloads: 66,151 - First Release: Feb 14, 2015 - Last Update: May 13, 2018

4.98519/5, 270 likes
  1. if it works, upload it here in the thread, ppl can download it then.
     
  2. BaK

    BaK

    Will do, struggling to find animals to kill and test it! If I get it working before you, I'll post it.
     
  3. Tried it, but theres still,

    "bla killed a Stag.prefab with a Bolt Action Rifle from 90m."

    i edit plugin again and added

    attacker = attacker.Replace("prefab", "");

    after line 254

    just need another animal now for testing

    Edit: nope don't work :p
     
  4. it needs to be after line 309 lol
     
  5. Ah ok lol :D
    thought i had to add it in the attacker line :)

    Tried but still won't work. But why in the bodypart line? Oo
     
    Last edited by a moderator: Aug 7, 2015
  6. I think i got this Error due to the rename-thingy:
    btw: Is there a new Itemlist available anywhere?

    Code:
    [Oxide] 6:35 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 6:35 PM [Debug]  at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [Oxide] 6:35 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 6:35 PM [Debug]  at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Aug 7, 2015
  7. Code:
    8:36 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
    8:36 PM [Debug]   at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    
    sad
     
  8. As I said. Im not sure why you are getting these errors. everything is running fine for me. Until I can fix it, please use the latest .py version.
     
  9. Ok i will wait. Thanks!
     
  10. ty for reply
    got this error on EMPTY server
    strange...
     
  11. Thanks for the tip, this is not working.
    He is now in line 110, but that ".prefab" is still there behind the animal names.
     
  12. change in the config all the animals/weapons with .PREFAB after the names
    like this:
    {
    "ANIMALS": {
    "BEAR.PREFAB": "Bear",
    "BOAR.PREFAB": "Boar",
    "CHICKEN.PREFAB": "Chicken",
    "HORSE.PREFAB": "Horse",
    "STAG.PREFAB": "Stag",
    "WOLF.PREFAB": "Wolf"
    },
    and
    "TRAPS": {
    "BEARTRAP.PREFAB": "Snap Trap",
    "FLOOR_SPIKES.PREFAB": "Wooden Floor Spikes",
    "LANDMINE.PREFAB": "Landmine"
    },
    "WEAPONS": {
    "2HANDED_CLEAVER.WEAPON.PREFAB": "Salvaged Cleaver",
    "2HANDED_MACE.WEAPON.PREFAB": "Mace",
    "2HANDED_SWORD.WEAPON.PREFAB": "Salvaged Sword",
    "AK47U.WEAPON.PREFAB": "Assault Rifle",
    "BOLTRIFLE.WEAPON.PREFAB": "Bolt Action Rifle",
    "BONE_CLUB.WEAPON.PREFAB": "Bone Club",
    "BONEKNIFE.WEAPON.PREFAB": "Bone Knife",
    "CLEAVER.WEAPON.PREFAB": "Machete",
    "CROSSBOW.WEAPON.PREFAB": "Crossbow",
    "EOKA.WEAPON.PREFAB": "EOKA Pistol",
    "GRENADE.BEANCAN.DEPLOYED.PREFAB": "Beancan Grenade",
    "GRENADE.F1.DEPLOYED.PREFAB": "F1 Grenade",
    "HATCHET.WEAPON.PREFAB": "Hatchet",
    "HATCHET_STONE.WEAPON.PREFAB": "Stone Hatchet",
    "HUNTING.WEAPON.PREFAB": "Hunting Bow",
    "PICKAXE.WEAPON.PREFAB": "Pickaxe",
    "REVOLVER.WEAPON.PREFAB": "Revolver",
    "ROCK.WEAPON.PREFAB": "Rock",
    "ROCKET_BASIC.PREFAB": "Rocket",
    "SALVAGED_AXE.WEAPON.PREFAB": "Salvaged Axe",
    "SALVAGED_HAMMER.WEAPON.PREFAB": "Salvaged Hammer",
    "SALVAGED_ICEPICK.WEAPON.PREFAB": "Salvaged Icepick",
    "SAWNOFFSHOTGUN.WEAPON.PREFAB": "Pump Shotgun",
    "SEMI_PISTOL.WEAPON.PREFAB": "Semi-Automatic Pistol",
    "SMG.WEAPON.PREFAB": "Custom SMG",
    "STONE_PICKAXE.WEAPON.PREFAB": "Stone Pickaxe",
    "STONE_SPEAR.WEAPON.PREFAB": "Stone Spear",
    "SWORD.WEAPON.PREFAB": "Salvaged Sword",
    "THOMPSON.WEAPON.PREFAB": "Thompson",
    "TIMED.EXPLOSIVE.DEPLOYED.PREFAB": "Timed Explosive Charge",
    "TORCH.WEAPON.PREFAB": "Torch",
    "WATERPIPE.WEAPON.PREFAB": "Waterpipe Shotgun",
    "WOODEN_SPEAR.WEAPON.PREFAB": "Wooden Spear"
    }
     
  13. BaK

    BaK

    Patch to get this C# version working without ".prefab" in messages. Bit of a hack but it works.
     

    Attached Files:

  14. it seem i get this issue when i try to use your solution:
    [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
     
  15. @LaserHydra it works fine, but when an animal kills a person its shows up as a Wolf.prefab/bear.prefab how do i get this without the .prefab
     
  16. I cant fix it right now. Got no time for it sry. But BaK seems to got it fixed, aks him about it.
     
  17. BaK

    BaK

    Try this version, I've tidyed up the code a little. Still a bit of a hack, but it works.
     

    Attached Files:

  18. whenever a message is broadcasted by this or notifier the server laggs. any idea why?
     
  19. need help with this it will not work this is what I'm getting
    (22:06:13) | [Oxide] 5:06 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
    getting this error spamming all the time!
     

    Attached Files:

  20. even with the new file, it still shows the animal.prefab. . . . I made sure to remove all of the other instances of the original deathnotes plug in.