Jump to content

Shield 1.1.2

$15.00
   (1 review)
Message added by YaMang -w-,

You Need Help? join discord!

https://discord.gg/DTQuEE7neZ

Backup Config File !!

Message added by YaMang -w-,

This plugin is in the process of being renewed.

(Plug-ins can be used, but some functions may be limited or errors may occur.)

1 Screenshot

  • 32.2k
  • 60
  • 52.14 kB
This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



Robis

Posted

any example how it works and looks with Custom Status Framework ?

YaMang -w-

Posted

11 hours ago, Robis said:

any example how it works and looks with Custom Status Framework ?

 

Robis

Posted (edited)

Thank you, and last question, its not going to mess with plugin https://umod.org/plugins/tea-modifiers ?

Sorry just need to make sure before i buy it, i noticed in config its using tea as short name

Edited by Robis
YaMang -w-

Posted

9 hours ago, Robis said:

Thank you, and last question, its not going to mess with plugin https://umod.org/plugins/tea-modifiers ?

Sorry just need to make sure before i buy it, i noticed in config its using tea as short name

yes no problem

Robis

Posted

Ok i got this plugin, just one question, what means "Debug": true  ? if i make it false, what happen ?

Robis

Posted (edited)

However this plugin not work for me at all.... even /shield /sd  commands not working

{
  "General Settings": {
    "Prefix": "<color=#00ffff>[ Shield ] - </color>\n",
    "SteamID": 0,
    "Commands": [
      "shield",
      "sd"
    ],
    "Permission": "shield.use",
    "Use Custom Status Framework?": true,
    "Debug": true
  },
  "Shield Settings": {
    "Connect Shield Amount (0 = notting)": 0.0,
    "Respawn Shield Amount (0 = notting)": 0.0,
    "Use UI?": true,
    "Max Shield": 100.0,
    "Disable Shield in Zone": [
      "0"
    ],
    "Shield UI Settings": {
      "Shield UI Background Color": {
        "Hex": "#000000",
        "Opacity (0 - 100)": 15.0
      },
      "Shield UI ProgressBar Color": {
        "Hex": "#5A8FEC",
        "Opacity (0 - 100)": 100.0
      },
      "Shield UI Offset Min": "-176.041 -282.5",
      "Shield UI Offset Max": "161.009 -257.5"
    },
    "Shield Charge Settings": {
      "Instant Charge Shield": false,
      "Charge Speed Shield": 1.0,
      "Charge Type Settings": {
        "Small Battery": {
          "Shield Item (shortname)": "maxhealthtea.advanced",
          "Shield Skin ID (workshop)": 2958805528,
          "Shield Charge Amount (don't max over)": 20.0
        },
        "Large Battery": {
          "Shield Item (shortname)": "maxhealthtea.advanced",
          "Shield Skin ID (workshop)": 2958807252,
          "Shield Charge Amount (don't max over)": 100.0
        }
      }
    },
    "Shield can take damage from": {
      "NPC (Animal)": true,
      "NPC (ScientistNpc)": true,
      "Same Clan or Team": true,
      "Bullet": true,
      "Explosive": true,
      "Fall": true,
      "Bleeding": true
    }
  },
  "Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 1
  }
}

 

qqq.png

qq.png

 

Failed to call hook 'OnItemAction' on plugin 'Shield v1.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shield.OnItemAction (Item item, System.String action, BasePlayer player) [0x00102] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.Shield.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003fd] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

Edited by Robis
Robis

Posted

4 minutes ago, Robis said:

However this plugin not work for me at all.... even /shield /sd  commands not working

{
  "General Settings": {
    "Prefix": "<color=#00ffff>[ Shield ] - </color>\n",
    "SteamID": 0,
    "Commands": [
      "shield",
      "sd"
    ],
    "Permission": "shield.use",
    "Use Custom Status Framework?": true,
    "Debug": true
  },
  "Shield Settings": {
    "Connect Shield Amount (0 = notting)": 0.0,
    "Respawn Shield Amount (0 = notting)": 0.0,
    "Use UI?": true,
    "Max Shield": 100.0,
    "Disable Shield in Zone": [
      "0"
    ],
    "Shield UI Settings": {
      "Shield UI Background Color": {
        "Hex": "#000000",
        "Opacity (0 - 100)": 15.0
      },
      "Shield UI ProgressBar Color": {
        "Hex": "#5A8FEC",
        "Opacity (0 - 100)": 100.0
      },
      "Shield UI Offset Min": "-176.041 -282.5",
      "Shield UI Offset Max": "161.009 -257.5"
    },
    "Shield Charge Settings": {
      "Instant Charge Shield": false,
      "Charge Speed Shield": 1.0,
      "Charge Type Settings": {
        "Small Battery": {
          "Shield Item (shortname)": "maxhealthtea.advanced",
          "Shield Skin ID (workshop)": 2958805528,
          "Shield Charge Amount (don't max over)": 20.0
        },
        "Large Battery": {
          "Shield Item (shortname)": "maxhealthtea.advanced",
          "Shield Skin ID (workshop)": 2958807252,
          "Shield Charge Amount (don't max over)": 100.0
        }
      }
    },
    "Shield can take damage from": {
      "NPC (Animal)": true,
      "NPC (ScientistNpc)": true,
      "Same Clan or Team": true,
      "Bullet": true,
      "Explosive": true,
      "Fall": true,
      "Bleeding": true
    }
  },
  "Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 1
  }
}

 

qqq.png

qq.png

Failed to call hook 'OnItemAction' on plugin 'Shield v1.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shield.OnItemAction (Item item, System.String action, BasePlayer player) [0x00102] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.Shield.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003fd] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

YaMang -w-

Posted

12 hours ago, Robis said:

Failed to call hook 'OnItemAction' on plugin 'Shield v1.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shield.OnItemAction (Item item, System.String action, BasePlayer player) [0x00102] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.Shield.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003fd] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

sorry check now!

 

need help join discord!
https://discord.gg/DTQuEE7neZ

YaMang -w-

Posted

On 5/1/2023 at 12:04 AM, Robis said:

Failed to call hook 'OnItemAction' on plugin 'Shield v1.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shield.OnItemAction (Item item, System.String action, BasePlayer player) [0x00102] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.Shield.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003fd] in <d3757a1302e24fa48580d620119d905c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

last version download !

Robis

Posted

i tried.... looks like working, but 

Name = mainUI,
                Parent = "Hud",

                Components =
                {
                    new CuiImageComponent
                    {
                        Color = HexToColor(_config.shieldSettings.shieldUISettings.BackgroundColor.Hex, _config.shieldSettings.shieldUISettings.BackgroundColor.Opacity)
                    },
                    new CuiRectTransformComponent
                    {
                        AnchorMin = "0.5 0.5",
                        AnchorMax = "0.5 0.5",

                        OffsetMin = _config.shieldSettings.shieldUISettings.OffsetMin,
                        OffsetMax = _config.shieldSettings.shieldUISettings.OffsetMax
                    }

INSTANTLY INCORRECT..... NEVER EVER create plugins with base positioning in a center. OTHERWISE it change position when player change user interface settings.... AnchorMin = "0.0 0.0", STICKS WITH USER INTERFACE CHANGES FRIENDLY

Robis

Posted

Tried to fix positioning but something not matching in config

OffsetMin = "-176.041 -282.5",
OffsetMax = "161.009 -257.5",

can you fix it ?

Persona

Posted

Hi. 
Is it possible to tie a shield to an armor item? If so, will the shield work on the created armor?

YaMang -w-

Posted

8 hours ago, Persona said:

Hi. 
Is it possible to tie a shield to an armor item? If so, will the shield work on the created armor?

Are you talking about making the shield work when wearing certain armor?

Persona

Posted

Exactly, I would like to give a shield to Metal Chest Plate

YaMang -w-

Posted

28 minutes ago, Persona said:

Exactly, I would like to give a shield to Metal Chest Plate

Currently not possible.

papi

Posted (edited)

Tried to fix positioning but something not matching in config

OffsetMin = "-176.041 -282.5",
OffsetMax = "161.009 -257.5",

can you fix it ?

 

Youre changing offsets not the anchor points

Edited by papi
YaMang -w-

Posted

On 4/30/2023 at 11:33 PM, Robis said:

Ok i got this plugin, just one question, what means "Debug": true  ? if i make it false, what happen ?

You can ignore it. for test

1 hour ago, papi said:

Tried to fix positioning but something not matching in config

OffsetMin = "-176.041 -282.5",
OffsetMax = "161.009 -257.5",

can you fix it ?

 

Youre changing offsets not the anchor points

sorry worng update use last version!

1.0.5

artitboonrerk

Posted

Hi

is it possible to separate recharge shield independent on each permissions, or class 

i run PVE server it look fun if some of player can have this extra feature.

thanks

YaMang -w-

Posted

15 minutes ago, artitboonrerk said:

Hi

is it possible to separate recharge shield independent on each permissions, or class 

i run PVE server it look fun if some of player can have this extra feature.

thanks

We plan to separate the maximum capacity according to the 1.1.0 version.

  • Like 1
TheRiddledNote

Posted

hi, is it possible to add the option to make the shields both craftable and lootable? Im on a hybrid server  and this way might be more fair for pvp.

YaMang -w-

Posted

1 hour ago, TheRiddledNote said:

hi, is it possible to add the option to make the shields both craftable and lootable? Im on a hybrid server  and this way might be more fair for pvp.

If you come to Discord, I think need more feedback.

TheRiddledNote

Posted

19 minutes ago, YaMang-w- said:

If you come to Discord, I think need more feedback.

sure, what is your discord sir?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.