1. insane8472 submitted a new resource:

    Player Bank - Allows players to deposit and withdraw items from a bank.

    Read more about this resource...
     
  2. Item names change periodically, stuff gets added/removed etc. How do you compensate?
     
  3. Simply change the item names in your configuration. That is all that's needed.
     
  4. Why not use like "Timed Explosive Charge" then create a function that compares that string until it finds matches in the itemlist, then it'd never have to be edited
     
  5. we need a full list of items in the config please D: ill post if i can do it / most of it
    [DOUBLEPOST=1441734651][/DOUBLEPOST]list of item short names - Oxide API for Rust
    going to be adding almost everything to my config so will dump here when done :D
     
  6. waiting for the dumb _:D just added it now. think its a great thing for instead of my safezone rooms for vip .
    and with that , a question. cane you make it possible to split permissions from use in 2 ( or customizeable more) groups?
    with different settings what., who can deposit?
    Normal user, VIP config // ?
     
  7. I am currently working on changes and will have an update out in the next few days, if all goes well. It will add all the items to the config file on load. Also on each load or reload, it will check for new items, add them and remove any invalid or duplicate items. The items will each be on their own line, for example:

    "wood:0:0:2:1000"
    "rifle.ak:0:0:2"

    0 = off or no, 1 = on or yes

    The first variable is obviously the item name, the second is if the item can be deposited or sent, the third is if the blueprint of the item can be deposited or sent (if applicable), the fourth is the max deposit (how many times the item can be deposited) and the final (for resources only) is how big of a stack can be deposited or sent.

    I will also change the permissions to include bank.all, bank.deposit and bank.withdraw.
     
  8. I wrote this huge config out just this second....

    Anyways, the link is below! (too big for the post apparently)

    superhalor Dump.txt
    [DOUBLEPOST=1441738105][/DOUBLEPOST]
    See above ^
     
  9. {
    "item": "flare"" <<<---- error load cause the second of " that xD haha but still great. thank you!
    "maxdeposit": "1",
    "maxstack": "1000"
    },


    ( Edit: well he dont want the whole item tho :D )
     
  10. I just figured a bunch of errors, forgot to validate and made pasting errors.... But I did it in one sitting! xD

    New link!

    decamasity Dump.txt
    [DOUBLEPOST=1441806078,1441742327][/DOUBLEPOST]
    Just use my above link in .cfg and update?
     
  11. It's not that easy, wish it was.
     
  12. insane8472 updated Player Bank with a new update entry:

    1.0.1

     
    Last edited by a moderator: Sep 10, 2015
  13. Hi there, getting couple of errors when players using the bank. It does not to be happen with all players.

    Code:
    [9/11/2015 9:24:04 PM] [Oxide] 9:24 PM [Error] Failed to call hook 'cmdBank' on plugin 'PlayerBank v1.0.1'
    File: PlayerBank.lua Line: 893 invalid arguments to method call:
      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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [9/11/2015 9:24:10 PM] [Oxide] 9:24 PM [Error] Failed to call hook 'cmdBank' on plugin 'PlayerBank v1.0.1'
    File: PlayerBank.lua Line: 893 invalid arguments to method call:
      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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [9/11/2015 9:24:25 PM] [Oxide] 9:24 PM [Error] Failed to call hook 'cmdBank' on plugin 'PlayerBank v1.0.1'
    File: PlayerBank.lua Line: 893 invalid arguments to method call:
      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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  14. Did you delete your oxide/data/PlayerBank.json file before updating? The old file is incompatible.

    This file contains all players banked items, take the necessary precautions to ensure they do not loose their items.
     
    Last edited by a moderator: Sep 12, 2015
  15. It would be cool if there was a gui to run the whole ban system instead of commands
     
  16. insane8472 updated Player Bank with a new update entry:

    1.0.2

     
  17. Hello!

    I did a clean install and get a warning:

    (09:31:03) | [Oxide] 10:27 AM [Warning] CallHook 'OnServerInitialized' on plugin 'PlayerBank v1.0.2' took: 1849ms
     
  18. You will get that warning everytime you load the plugin. Alot of item checking is done when the plugin is first loaded. It is just a warning, not an error.
     
  19. Thank you!

    Are you planning to do GUI for this plugin?
     
  20. Sometime, can't say when.