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
  1. 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
     
  2. 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.
     
  3. Wulf

    Wulf Community Admin

    Are you sure you are using this plugin, not Robbery?
     
  4. im using it too.omg i didnt look at that plugin.
     
  5. 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[]
    [DOUBLEPOST=1453252728][/DOUBLEPOST]ok i downlode the plugin listed in the chat here for temp fix but no rewards no chat messages is there a perm i need?
     
    Last edited by a moderator: Jan 20, 2016
  6. Wulf

    Wulf Community Admin

    Check your logs to make sure it is loaded. There is no permission needed.
     
  7. thanks there was 2 downloads in the forums here i used the second one all is working now.
     
  8. Hi. Have same problem. Would you help me find proper link?
     
  9. Is there somewhere i can view all of the commands?
     
  10. Wulf

    Wulf Community Admin

    Which commands? This plugin doesn't have any.
     
  11. I need to disable money from looting bodies. Sleeping players are a way of getting infinite money.
    TY for quick response.
     
  12. 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
     
  13. 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
  14. 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 fix :)
     
    Last edited by a moderator: Feb 1, 2016
  15. If you do not want infinite money on sleeping player loot remove this from the file GatherRewards.cs

    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));
                        }
                    }
                }
            }
     
  16. wulf? you can update the plugin? the plugin broken, it's not giving any money.
     
  17. 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
     
  18. yeah i know, i installed the economy, and it's not working.
    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?
     
  19. Wulf

    Wulf Community Admin

    I'll take a look shortly.