ProtectedZone

Allows the easy addition of zones that have many options like noPvP, NoBuild, noDamage, etc

Total Downloads: 358 - First Release: Oct 5, 2017 - Last Update: Jul 20, 2018

5/5, 3 likes
  1. It was working last night for me, what specifically is it not doing?
    It should not allow you to kill animals /Villagers in the zone. I tested it on villagers and deer and moose
    Admins can kill them unless you have the setting AdminCanKill set to false in the config
    Also check your data file and make sure ZoneNoPVE was added to each zone, and its set to true(if you modified the old data file).

    If all of the above is ok, what other flags do you have set in the zone?
     
  2. I cannot kill villager in the zone, but villager can kill me. And nosleeperdamage works some buggy, it's false but sleepers invulnerable.
     
    Last edited by a moderator: Oct 9, 2017
  3. That's the way I set it up, you cant kill them, but they can kill you, why would you want them to not kill you? I assume you would set it up so the player cant kite them into a zone and kill them, and not be killed, or if you just don't want the wildlife killed.
    I could set up something that ends up being a totally safe zone, depending on the flags used, if that seems like something needed.
    As far as the sleepers, that might have gotten messed up with everything else I did, I will check it when I get home tonight.

    Thanks for checking it out! :)
     
  4. If villagers can kill me, why i cannot? If i cannot, i must be invulnerable for villagers too, because villagers go to zone and fright everyone.
    It's be nice if villagers (and other mobs) just TP out of zone if they going in.
     
  5. So I know there is not a lot of people following this thread yet, but I will ask the question anyway.
    Is there a need to keep the nopve flag as is? Meaning the player in that zone cannot kill the NPCs, but they can kill the player? Or should we just go ahead and make nopve a safe zone from NPCs, no damage from or to wildlife/Villagers.
    The alternative is just to make a safezone flag, that does this, and leave nopve as is, I am just not sure its necessary to do so, and I dont know that I would ever use it.
     
  6. Just safezone. For what you need that villager damage you, and you not can?
     
  7. Mordeus updated ProtectedZone with a new update entry:

    1.1.1

     
  8. Can you add notreedamage? Trees have damage in zones.
    And if it possible to reset UIs for some objects in zone (to prevent theft of wood from torches for example).
     
    Last edited by a moderator: Oct 10, 2017
  9. I have not tried to do anything like this yet, is it actually possible to do this? Using eventmanager perhaps?
    I want to start working on a no looting plugin, which I would use the code for this plugin as well, put I dont see a hook in oxide I can use, like a OnLoot() for example.

    In the assembly I found this, among other things like it:
    Code:
    public void OnOpenContainer()
            {
                EventManager.CallEvent(new ContainerOpenEvent(this));
            }
    But I haven't played around with it yet, have you or anyone else been successful with this?
     
  10. I don't know if did this someone do but we must try.
     
    Last edited by a moderator: Oct 10, 2017
  11. is there a way to setup a cube? like an z,x,y seems to be just a circle atm?
     
  12. Currently no...
    The way it currently works is it checks your distance from x,z and the radius setting is what determines the edge of the zone. This, of course, makes a circle.
    I do realize it would work much better as a square in some cases, but i really don't know how to accomplish that the way its written atm. However I have an idea on how I could write the whole zone plugin differently, improving the way zones work, but I have not even tested it yet so I don't want to elaborate on it just yet, but it may solve that problem.
    I am currently working on some major updates coming out for this(finally figured out how to teleport sleepers out of a zone, added an API and more) and a new AntiLoot plugin which I will release when the new version of oxide is released(requires a new hook), so after that I will take a look at a few things, but no promises on a "cube" zone.. :)
     
    Last edited by a moderator: Nov 10, 2017
  13. thanks for the Speedy reply. Looking forward to seeing what you come up with. Cubes are the way to go :) perhaps you can get some ideas from the prison plugin coding. it has the cubes for setting up prison cells :)
     
  14. Mordeus updated ProtectedZone with a new update entry:

    1.2.0

     
  15. would you be willing to add me on steam?
     
  16. Sure, I don't use the friends part much, so don't be surprised if I don't reply to a message very fast. :)
     
  17. no worries i sent you a message :p
     
  18. ** ProtectedZone has a conflict with the LevelSystem Plugin, you have to set "useNametag": false in the LevelSystem config to get them to work together**
     
    Last edited by a moderator: Nov 15, 2017
  19. Mordeus updated ProtectedZone with a new update entry:

    1.2.1

     
  20. nice. i will give it a try later