Killing Only At Night

Players can only kill each other at night

Total Downloads: 938 - First Release: Jun 1, 2015 - Last Update: Jun 1, 2015

5/5, 1 like
  1. CrZy submitted a new resource:

    Killing Only At NIght - Players can only kill each other at night

    Read more about this resource...
     
  2. Just a suggestion could it be possible to do the same with the blocks so they can only damage at night as i have a rp server and people are unable to defend there bases during the day.

    (( other than that the mod is perfect ))
     
  3. or set a option so you can turn off and on dmg and day ?
     
  4. So they deal 0 damage if they attack a player during day?
     
  5. yes
     
  6. can I switch to pvp during day and not at night?
    [DOUBLEPOST=1433188253][/DOUBLEPOST]or also a option to set maybe control the amout of time there is no pvp like for 10 minutes from every hour.
    [DOUBLEPOST=1433203097,1433188042][/DOUBLEPOST]Players are now rope my and dragging the other players into the water and drowning them during the day
     
  7. +. Author, change the configuration on the murder day, and not night.
     
  8. I would love it if a player could stop destroying blocks in the day also.

    Also would like it if only the Current King could by-pass this !
     
  9. receive this error in log
    Code:
    6:10 PM [Warning] [Night Killing Only] Night Killing Only : New configuration file created.
    6:10 PM [Warning] [Night Killing Only] Night Killing Only : The configuration file was updated!
    6:15 PM [Error] Failed to call hook 'OnEntityHealthChange' on plugin 'Night Killing Only' (NullReferenceException: Object reference not set to an instance of an object)
    6:15 PM [Debug]   at Oxide.Plugins.NightKillOnly.OnEntityHealthChange (CodeHatch.Networking.Events.Entities.EntityDamageEvent damageEvent) [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
    6:15 PM [Error] Failed to call hook 'OnEntityHealthChange' on plugin 'Night Killing Only' (NullReferenceException: Object reference not set to an instance of an object)
    6:15 PM [Debug]   at Oxide.Plugins.NightKillOnly.OnEntityHealthChange (CodeHatch.Networking.Events.Entities.EntityDamageEvent damageEvent) [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 
     
  10. I too would love to see this added to the plugin. This plugin is awesome, and works great. I just have people who raid during the day, and can't be stopped.

    Had to unload the mod just so people could protect their stuff during the day, and now I am having to deal with people crying KOS during the day. So if you could add in the no block damage during the day, or you could add in the ability for another mod to take control.

    I have been trying to use the WarTracker plugin, and it is pretty cool, but if someone declares war on another person during the day they still can't be killed. They have to wait for it to turn night. The other plugin stops people from raiding (sometimes .. still a work in progress) unless they are in a declared war.

    Thanks
     
  11. Is there anyway i can have only the writing in the chat.
    Not the kos thing.
    We only want the automated message come up.
    Anyway we can do this with this plugin?
     
  12. Should be simple enough to edit the plugin yourself and remove or at least make it skip the code that alternates day and night protection.
     
  13. I've been messing around with this plugin lately and can't figure out how to set a specific time for night to end. Which is odd, since setting the time for when night begins was really easy to identify in the script.

    if (TimeBlock == GameClock.TimeBlock.Dusk && GetCurrentHour() < 21)
    return true;

    So 21 is the number on the game clock, and sure enough, if I change that value in the script to anything else it changes when night time begins.

    But I don't see any line that controls when night ends.

    The default script ends nighttime at 6 on the game clock yet that number is nowhere to be found. I thought perhaps the night time is timed from when it begins, but even if I make night time begin earlier it still ends at 6.

    By 6 the sun is already high in the sky, and I'd love to cut it back to 4.

    I know it must be something easy I'm missing. Would anyone be willing to explain which line edits the end time?
     
  14. Well that line says GameClock.TimeBlock.Dusk so maybe looking for something like GameClock.TimeBlock.Dawn most likely?
     
  15. Id love it for someone to add the ability for this to work with the jail plugin.. So instead of just blocking damage it sends the person to jail for x minutes instead.
     
  16. I edited the plugin to disable the day time godmode
     
  17. Hello all basically I have installed the plugin and I get the error message " failed to hook onentityhealthchange " how can I fix this?
     
  18. Wulf

    Wulf Community Admin

    Please provide your full oxide/log.
     
  19. Loving this plugin makes rp servers much easier to manage,

    I do have 1 request, Is it possible to set a designated area "in my case an arena" to always be KOS, so that gladiator events can be held any time of the day?

    Maybe mark an area to add it to exceptions from kos night.

    Thanks for the plugin!
     
  20. So does this fit with the wartracker? I mean does this means that you cant go to war in daytime? Coz it doesnt take damagae