1. Ok for this but if invotory is full , where the item will be ? .. And need to choice a amount for each item on game .. ex : 100$/ C4 placed in bank 40$/ weapons placed etc...
    When your mod offer this config.. i Download this and placed on my server ..
    Think you for your job :D
     
  2. job? :p i am not the developer of this plugin, i have made 0 sharable plugins so far ^^
    i am just getting started with c# and this plugin is a .lua.. so anything i say is just a suggestion
     
  3. i get this error sometimes, i think its on disconnects:

    [Error] Failed to run a 0.50 timer

    File: BankManager.lua Line: 946 Object reference not set to an instance of an object:

    at PlayerLoot.SendUpdate () [0x00000] in <filename unknown>:0

    at PlayerLoot.SendImmediate () [0x00000] in <filename unknown>:0

    at StorageContainer.PlayerOpenLoot (.BasePlayer player) [0x00000] in <filename unknown>:0

    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
     
  4. players detected a bug, where they could keep pressing 'e' (use NPC banker) and somehow it doublicated their items.
    could this be what causes my errors? Anyone else having such a problem?
     
  5. The error is related to spamming the npc. I will have that fixed soon.

    I can add economics, but we need to come up with something. I can make it cost when opening and/or closing the bank. The way the plugin works, it is impossible to track when someone adds or removes something from the bank. To that end, I can also have it cost per item stored when the bank is closed, but this method would charge them again for existing items not just new items. Ideas?
     
  6. if its not possible to use the time at all, i would suggest to first just add a price to open the bank (if balance too low, bank doesnt open), that might already prevent most npc spaming :p
    further you could maybe make smaller and bigger accounts available.. or that players could simply buy slots up to a max
     
  7. If there was a hook, called on "item placed in box" or "item removed from playerinventory", you could make the itemcheck instantly, so unbankable items would be shown red or jump back to your inv right away.
    -> this would prevent, having to open bank over and over again, when trying to store items which are not allowed. That would be hardcore smooth ;)
     
  8. hy i can not open teh BnakManager press Key E if i look to the npc, error is

    (18:05:12) | [Oxide] 18:05 [Error] Failed to call hook 'OnUseNPC' on plugin 'BankManager v1.1.1'

    File: BankManager.lua Line: 1481 Argument cannot be null.

    Parameter name: key:

    at System.Collections.Generic.Dictionary`2[System.String,Oxide.Core.Libraries.UserData].TryGetValue (System.String key, Oxide.Core.Libraries.UserData& value) [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.Permission.GetUserData (System.String id) [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.Permission.UserHasPermission (System.String id, System.String perm) [0x00000] in <filename unknown>:0

    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
    [DOUBLEPOST=1476720730][/DOUBLEPOST]
    id did it this way - a empty tuna can is 1 coin in economics. A NPC can buy and sell tuna can's, the empty tuna cans can you store in the Warehouse (BankManager) ... done and you can trade tuna cans and maybe you can find them.
     
    Last edited by a moderator: Oct 17, 2016
  9. insane8472 updated Bank Manager with a new update entry:

    1.1.2

     
  10. THANKS!
     
  11. Welcome. Working on economics playing with different ideas. Will get it done as soon as possible.
     
  12. so got everything setup. but when i walk up to the npc an press E nothing happens, how do i get it to work when pressing E?
     
  13. Make sure whatever you named the npc is the same in the config.
     
  14. thank you. that worked
     
  15. thank you insane8472, awesome stuff!
    keep going man, i enjoy to see how this plugin is evolving :)
     
  16. (21:40:58) | [Oxide] 21:41 [Warning] Calling 'OnPlayerLootEnd' on 'BankManager v1.1.2' took 1358ms [GARBAGE COLLECT]

    (21:42:36) | [Oxide] 21:42 [Error] Failed to call hook 'OnPlayerLootEnd' on plugin 'BankManager v1.1.2'

    File: BankManager.lua Line: 1050 :

    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

    (21:43:23) | [Oxide] 21:43 [Error] Failed to call hook 'ConsoleReload' on plugin 'RustCore v1.0.0'

    File: BankManager.lua Line: 1050 :

    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

    (21:43:30) | [Oxide] 21:43 [Info] Loaded plugin Bank Manager v1.1.2 by InSaNe8472
     
  17. What did you do or what event causes the error? How can I replicate it?
     
  18. why? are you saying, you cannot just read any random errors and fix them instantly? tztz.. xD
     
  19. when some players open the bank.. a box sound being destroyed. after that the plugin will not work. i then need to reload it. sorry i did not put this above

    here is the config...... took the items out to keep the massage shorter

    {
    "Clan": {
    "Cooldown": "3",
    "Enabled": "false",
    "KeepDurability": "true",
    "MaxBank": "15",
    "MinMembers": "3"
    },
    "CustomPermissions": [
    {
    "Items": [
    "wood:1:3:2000"
    ],
    "MaxBank": "20",
    "MaxShare": "20",
    "Permission": "bankmanager.vip1"
    },
    {
    "Items": [
    "wood:1:3:3000"
    ],
    "MaxBank": "30",
    "MaxShare": "30",
    "Permission": "bankmanager.vip2"
    }
    ],
    "Defaults": {
    "ForceUpdate": "false",
    "Items": [
    "Ammunition:0:2:1000:0:2:1000",
    "Attire:0:2:1000:0:2:1000",
    "Construction:0:2:1000:0:2:1000",
    "Food:0:2:1000:0:2:1000",
    "Items:0:2:1000:0:2:1000",
    "Medical:0:2:1000:0:2:1000",
    "Misc:0:2:1000:0:2:1000",
    "Resources:1:2:1000:1:2:1000",
    "Tool:0:2:1000:0:2:1000",
    "Traps:0:2:1000:0:2:1000",
    "Unknown:0:2:1000:0:2:1000",
    "Weapon:0:2:1000:0:2:1000"
    ]
    },
    "Items": [

    ],
    "NPC": {
    "CheckBuildingBlock": "false",
    "CheckOnGround": "false",
    "CheckRadius": "false",
    "ClanBankName": "player bank",
    "Enabled": "false",
    "MustInteract": "true",
    "PlayerBankName": "player bank"
    },
    "Settings": {
    "BuildingBlocked": "true",
    "Cooldown": "3",
    "Enabled": "true",
    "Ground": "false",
    "KeepDurability": "true",
    "MaxBank": "15",
    "MaxShare": "10",
    "MessageSize": "12",
    "PerformItemCheck": "true",
    "Radius": "5",
    "ShareEnabled": "true",
    "Tier": "-1",
    "UsePermissions": "false"
    }
    }
     
  20. so using the npc called "player bank" should open both the normal and the clan bank, while players must interact with the npcs and the whole thing is not even enabled? i never tried anything like that, but i would at least expect some errors ;)

    What does "Tier": "-1" do? does anybody know? insane8472 any idea? :p