@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)
- Called right after an item was added to a container
- Oxide API for Rust
*same as ItemCheck, but would only return true/false (green/red) to the panel. real ItemCheck still performed like before
Bank Manager [Unmaintained]
Discussion in 'Plugin Support' started by insane8472, Sep 6, 2015.
-
insane8472 updated Bank Manager with a new update entry:
1.1.3
-
insane8472 updated Bank Manager with a new update entry:
1.1.4
-
Great job bro... I test imediatly your addon .. And thank you for quickly work to add economic version ... xO
-
Still no fix for the ability to dupe items?
-
-
-
insane8472 updated Bank Manager with a new update entry:
1.1.5
-
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 -
-
-
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 -
-
insane8472 updated Bank Manager with a new update entry:
1.1.6
-
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.
-
-
so our clan is trying to use npc for the bank says we do not belong to any clan..
-
You did create a clan with the clans plugin with your friends on the server? I am having no problems with it.
-
this error is a problem?
When starting srv:
Code:[Oxide] 05:18 [Warning] Calling 'OnServerInitialized' on 'BankManager v1.1.6' took 2488ms [GARBAGE COLLECT]
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 -
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.