Reign of Kings Something to prevent raiding

Discussion in 'Plugin Requests' started by will mcmanus, May 22, 2015.

  1. I would like something to be able to prevent raiding between the hours 1am and 9am when i have no admins on, just so people can build between this time.
     
  2. no m8 wartime doesnt do this, i want a plugin that prevent damage to bases that plugin doesnt, but big thx for your fast reply though.
     
  3. private void OnCubeTakeDamage(CubeDamageEvent cubeDamageEvent)
    {
    }

    With this hook it is 100% possible to do what you want. Maybe if you could provide more of your idea, I can help you craft a script.
     
  4. I was considering of closing the servr because my community were getting annoyed because they would come on the next day and there bases were destroyed, now if i could leave my server on and no ones base could be destroyed between the hours i chose it would be fantastic. that way people who came on during them hours would only be able to build
     
  5. It would be ashamed for you to lose your buddies. Here ya go! Let me know if you have any questions.

    Moderator edit: Please use the Plugins section for sharing plugins.
     
    Last edited by a moderator: May 24, 2015
  6. Add this under "OnEntityHealthChange":
    Code:
    if(e.Damage.Amount > 0 && (e.Entity.name.Contains("Sleep") || e.Entity.name.Contains("Crest"))) e.Damage.Amount = 0;
    
    That would make sleepers and crests impossible to damage.

    You can also disable ballista or trebuchet damage by

    Code:
    if(e.Damage.Damager.name.Contains("Trebuchet") || e.Damage.Damager.name.Contains("Ballista")) e.Damage.Amount = 0;
    
    Hope this helps, it might have some errors due to typos.. I'm not on visual studio right now haha
     
  7. Thanks Sydney, feel free to add and repost as WIP. thanks!
     
  8. wot
     
  9. Here is an update, this has more options such as Gametime vs Servertime attackng, and actions on rule break (warn,kick ban) with a warning counter to trigger the ban.

    Moderator edit: Please use the Plugins section for sharing plugins.
     
    Last edited by a moderator: May 24, 2015
  10. Thank you very much
     
  11. how i make area where no one cant set crest or block.thx to you now i have base what cant destroy.but i want to make no crest arena
    and shop:)
    [DOUBLEPOST=1448123623,1447886858][/DOUBLEPOST]
    use AttackSchedule plugin.i use that and ppl its able to raid or kos only night time.you can mod time that you want
     
  12. Hmm, where can I find this plugin which Hawthrone is talking about? he gave link here but moderator deleted it :/