AntiOfflineRaid

Moved

Total Downloads: 6,124 - First Release: Nov 17, 2015 - Last Update: Mar 1, 2018

5/5, 32 likes
  1. need to fix again
     
  2. Yup. This is the error I get:
    Code:
    [Oxide] 01:47 [Error] AntiOfflineRaid plugin failed to compile!
    [Oxide] 01:47 [Error] AntiOfflineRaid.cs(551,40): error CS1061: Type `BaseCombatEntity' does not contain a definition for `LookupShortPrefabName' and no extension method `LookupShortPrefabName' of type `BaseCombatEntity' could be found. Are you missing an assembly reference?
    
     
  3. fixed
    just change LookupShortPrefabName() to LookupPrefab().name
     
  4. Thank you!
     

    Attached Files:

  5. The configuration file is not being created upon restart or reload. How do I get the configuration file to be created?
     
  6. Anyone else not have player permissions for /ao working?? I've set: grant group default antiofflineraid.check but when a player checks it says no permissions. Works for admins tho, just not players. I am running oxide 2188, latest version..
     
  7. I have given the permission to use this plugin to all players using "grant group default antiofflineraid.protect" but its still not working. I have no errors in my log and im using the most recent version. Any idea at how to locate where the fault is?
     
  8. I love this plugin.

    I've got this running on my server and it seems to be working with one issue, there is no warning when someone attacks a protected structure. I've tested it by using a timed explosive on their wall shortly after they logged off (yes, I asked if I could first.) It took no damage, but there was no "This building protected 100%" warning.

    Here's what I've done.
    Got Oxide.Verstion 2.0.2191
    Got the fix from AntiOfflineRaid | Page 11 | Oxide
    Used Oxide.Grant group player antiofflineraid.protect (I think 'group default' may be better, but this is what I used)
    I have not given players permission to use /ao so they don't have antiofflineraid.check
    I checked the permissions using show perm antiofflineraid.protect and it all came out good.
    My config is almost default from 0.2.1 with the times adjusted a bit. ShowMessage is set to true but doesn't show the message.
     
  9. Calytic

    Calytic Community Admin Community Mod

  10. Calytic

    Calytic Community Admin Community Mod

  11. [08/01/2016 09:32:42] [Oxide] 09:32 [Debug] at Oxide.Plugins.AntiOfflineRaid.IsBlocked (.BaseCombatEntity entity) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.AntiOfflineRaid.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [08/01/2016 09:32:42] Initializing 82426 conditional models
     
  12. Is this working for anyone yet? Such a great idea for a plugin.
     
  13. Edit: correction.. Yes its working.. do you have permissions set?

    grant group default antiofflineraid.protect
     
  14. I tried it a couple weeks ago and nothing at all worked about it. I'll try it again then I suppose.
     
  15. Been using this plugin for 2 days now, seems to work fine for us.
     
  16. Been using this plug-in for months now and it's been working very well. There was a glitch weeks back with the GUI: the damage reduction worked, but the GUI failed to display a message. That seems to be fixed now.
    The only things to remember are:
    1. Need to set the permission. IMHO, the default should be on, but as long as you use grant group default antiofflineraid.protect everyone should be covered.
    2. Players need to be offline longer than the cool down (default: 10 minutes) before the protection kicks in.
    3. Players need to have been online after the plugin was installed in order for it to recognize them.
     
  17. G'day

    Just wondering if I change the 48 in the cofig to 24 will that set the time to 24 hours rather than 48? or would I need to change it in a lang file or somthing
     
  18. Nope, you only have to change it in the oxide/config/AntiOfflineRaid.json

    For example, the defaults are:
    Code:
    "damageScale": {
        "1": 0.2,
        "3": 0.35,
        "6": 0.5,
        "12": 0.8,
        "48": 1
    }
    
    Which means that after the cooldown, there 100% protection until the first time is met. At 1 hour it changes to 80% (or only 20% damage if that's easier to read). At 3 hours it changes to 65% protection (35% damage) and so on until at 48 hours the protection is effectively gone at 0% (100% damage).

    If you change the "48" to "24" the damage goes away after 24 hours.

    Where it has 'damageScale" you can change any of the value pairs. That is, you can change at what point the protection changes and what the new value will be. The layout is "hours":protection . There is nothing preventing you from tweaking the time or the protection level, and you can have more or less than the default 5 steps. I added an additional step "168":1.5, which means if a player hasn't been on for 168 hours (1 week) their base takes extra damage.

    Just remember to think through the steps so they go in a logical order, and don't forget the quote marks around the hours and the commas after each line (except the last one).
     
  19. Thank you for taking the time to answer this mate and in detail, I appreciate it.

    Dean.

     
  20. Thank you for maintaining this Calytic. I was curious if it'd be easy to add Friends support, like you did with clans? I have people on my server who purposely don't make clans, but use friends (for Rustio Map sharing benefit and other friends-related plugin benefits) who defend each other's bases when one of their "group" is offline.. and they get the protection since their friend is offline and they are not part of the same clan.