1. @insane8472 this hook you probably know already, but when i saw it, this plugin came to my mind.
    • function PLUGIN:OnItemAddedToContainer(container, item)
      ...
      end
    (noticed: "An entire stack has to be created, not just adding more wood to a wood stack for example" -> so its not accurate enough for the actual ItemCheck, but having a small panel, appearing somewhere on the screen, when bank is opened, showing green or red (bankable or not) for the last item added to the bank, after performing a "PreItemCheck" * would be a nice layout/ingame improvement)
    *same as ItemCheck, but would only return true/false (green/red) to the panel. real ItemCheck still performed like before
     
    Last edited by a moderator: Oct 18, 2016
  2. insane8472 updated Bank Manager with a new update entry:

    1.1.3

     
  3. insane8472 updated Bank Manager with a new update entry:

    1.1.4

     
  4. Great job bro... I test imediatly your addon .. And thank you for quickly work to add economic version ... xO
     
  5. Still no fix for the ability to dupe items?
     
  6. two versions back there was a fix for that. did that not work?
     
  7. Ah srry missed that. I'll give it a try thx
     
  8. insane8472 updated Bank Manager with a new update entry:

    1.1.5

     
  9. found a bug, maybe. when 2 or more players try an open the bank at the same time the plugin crashed using the NPC only
    here is the code it gave me. if that helps
    File: BankManager.lua Line: 1691 :

    at (wrapper managed-to-native) UnityEngine.Component:GetComponent (string)

    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

    (19:20:26) | [Oxide] 19:20 [Error] Failed to call hook 'ConsoleReload' on plugin 'RustCore v1.0.2655'

    File: BankManager.lua Line: 1691 :

    at (wrapper managed-to-native) UnityEngine.Component:GetComponent (string)

    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
    s
     
  10. That is when banks are closed/saved. I will have to take a look at it and get back to you.
     
  11. Not fixed. They may not be able to open it when close to another player but once it's opened people can come close to them. All they have to do is find the right kind of sloped ground and the 2nd person can break the open bank
     
  12. What is that? I fully reinstalled plugin, but it didnt help.
    [11/06/2016 18:28:06] [Oxide] 18:28 [Error] Failed to run a 0.50 timer
    File: BankManager.lua Line: 1524 attempt to get length of field 'Bank' (a nil value):
    at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
    at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
    at NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
    at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
    at LuaGeneratedClass1.CallFunction () [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    [11/06/2016 18:28:11] [Oxide] 18:28 [Error] Failed to call hook 'OnPlayerLootEnd' on plugin 'BankManager v1.1.5'
    File: BankManager.lua Line: 1697 attempt to get length of field 'Bank' (a nil value):
    at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
    at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
    at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
    at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, 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
     
  13. i dont get that, how exactly can they do what? steal stuff from other bank accounts? what about the duplication thing?
     
  14. insane8472 updated Bank Manager with a new update entry:

    1.1.6

     
  15. Is it real to make that player can use only one slot, then buy (economics) yet one, and use two, but another slots must be blocked. I cant setting the config for this. thanks.
     
  16. Yes, make sure to enable economics and set PlayerInitialSlots to 1. The prices are up to you. If you want to limit them to only 2, set the PlayerMaxSlots to 2.
     
  17. so our clan is trying to use npc for the bank says we do not belong to any clan..
     
  18. You did create a clan with the clans plugin with your friends on the server? I am having no problems with it.
     
  19. this error is a problem?
    When starting srv:
    Code:
     [Oxide] 05:18 [Warning] Calling 'OnServerInitialized' on 'BankManager v1.1.6' took 2488ms [GARBAGE COLLECT]
    when reloading plugin:
    Code:
    (05:37:55) | [Oxide] 05:37 [Warning] Calling 'OnServerInitialized' on 'BankManager v1.1.6' took 2348ms [GARBAGE COLLECT]
    (05:38:03) | [Oxide] 05:38 [Warning] Calling 'OnEntityTakeDamage' on 'BankManager v1.1.6' took average 2372ms

    I was looting the bank tru a NPC and some players "push me" and my loot windows crashes then Bank was not avaible anymore until I reset the server... can this be fixed?


    Currently I sets the permissions but normal players can not let the stuff on the bank, they interact the NPC and the items come back to their inventories without any storing on bank.
     
    Last edited by a moderator: Nov 11, 2016
  20. The OnServerInitialized message is normal when loading the plugin since it takes a few seconds to check the item configuration.

    I will work on the pushing problem or moving too far from the bank box problem today.

    Players can only bank items that you allow configured in the settings. If not, it is returned to them.