MONEY FOR GATHER (1.2.1)
[DOUBLEPOST=1448362873][/DOUBLEPOST]I edit the json file but has no effect,
does not change anything in the game.
Values and text chat not change.
Even leaving the empty file after the reload,
still works with some standard configuration,
you do not know where this pulling.
sorry for bad English

GatherRewards
Gives players money through Economics/ServerRewards for various actions (gathering, animal kills)
Total Downloads: 4,577 - First Release: Jan 12, 2015 - Last Update: Jun 10, 2018
- 5/5, 13 likes
-
i have a different question. i have added npc's in my server.for items buying and selling.but when im clicking that npc's without an item i can get money. how i can stop this?i dont want peoples steal my npc's money.
-
Wulf Community Admin
-
-
any updates get error when loading plugin
[DOUBLEPOST=1453251152][/DOUBLEPOST]Code:[Oxide] 6:51 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'money-for-gather v1.2.1' File: money-for-gather.lua Line: 182 attempt to call global 'GetEconomyAPI' (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 hookname, System.Object[][Oxide] 6:51 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'money-for-gather v1.2.1' File: money-for-gather.lua Line: 182 attempt to call global 'GetEconomyAPI' (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 hookname, System.Object[]
Last edited by a moderator: Jan 20, 2016 -
Wulf Community Admin
-
thanks there was 2 downloads in the forums here i used the second one all is working now.
-
-
Is there somewhere i can view all of the commands?
-
Wulf Community Admin
-
TY for quick response. -
Code:
Error] Failed to call hook 'OnDispenserGather' on plugin 'GatherRewards v2.0.0' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 7:31 PM [Debug] at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.GatherRewards.OnDispenserGather (.ResourceDispenser dispenser, .BaseEntity entity, .Item item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.GatherRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, 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
i keep getting this code, when i hit a tree of anysort, it sometimes causes me server to timeout -
Can someone help asap please
Code:[Oxide] 12:55 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'money-for-gather v1.2.1' File: money-for-gather.lua Line: 182 attempt to call global 'GetEconomyAPI' (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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Jan 30, 2016 -
what is the "Corpse"?
it's how much will the player lose if he will die?
oh and you can do that if someone will die he will lose money?
and if you can, and player kill player so the player that kill will get the money that the player that killed lose?
thank you.
edit:
when i kill animals, or taking resources it's not giving me any money.
please fixLast edited by a moderator: Feb 1, 2016 -
Code:void OnPlayerLoot(PlayerLoot lootInventory, BaseEntity targetEntity) { if (targetEntity is BasePlayer) { BasePlayer targetPlayer = (BasePlayer)targetEntity; var player = lootInventory.GetComponent("BasePlayer") as BasePlayer; var amount = config.Settings.Rewards[PluginRewards.Corpse]; if (player && amount > 0) { Economy.CallHook("Deposit", player.userID, amount); if (config.Settings.ShowMessages) { PrintToChat(player, string.Format(config.Messages[PluginMessage.ReceivedForLoot], amount, targetPlayer.displayName)); } } } }
-
wulf? you can update the plugin? the plugin broken, it's not giving any money.
-
Works for me i just installed it today.
Make sure you have economics installed. There was an update to the economics plugin a few hours ago here.
Economics for Rust | Oxide -
i will try the last update.
[DOUBLEPOST=1454384966,1454374020][/DOUBLEPOST]no,
it's still not working, i add the plugin GUI economy, this is the problem? -
Wulf Community Admin