Thank you a lot ^^

GatherRewards
Gives players money through Economics/ServerRewards for various actions (gathering, animal kills)
Total Downloads: 4,549 - First Release: Jan 12, 2015 - Last Update: Jun 10, 2018
- 5/5, 13 likes
-
-
getting this message since last update of RUST and current Oxide version :
Code:[Oxide] 9:17 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'MoneyForGather' File: money-for-gather.lua Line: 146 attempt to index field 'Initiator' (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
-
-
Wulf Community Admin
-
-
hi , any chance to get an updated version of this plugin ? horses ar not included , also reward for killing animals does not work also ore gather does not work , only for wook . thanks
-
Wulf Community Admin
-
excellent news , waiting for it
-
Wulf Community Admin
Here's something for now. It'll likely receive changes before the actual release yet. Corpse/player rewards aren't working currently in this.
-
-
Wulf Community Admin
-
Code:if(attacker:ToPlayer() ~= nil) then player = attacker:ToPlayer() userdata = API:GetUserDataFromPlayer(player) animal = entity.corpseEntity local distance = player:DistanceTo(entity); local amount = 0 if animal:lower():match("bear") then amount = math.min(math.floor(tonumber(self.Config.Settings.BearKillAmount) * distance), self.Config.Settings.MaxDeposit) userdata:Deposit(amount) if self.Config.Settings.GatherMessagesEnabled == "true" then self:SendMessage(player, self.Config.Messages.OnAnimalKill:format(amount, "bear")) print("$$$$$$$$$$ Охота: " .. amount .. " за bear.") end
I tried to write a bear instead of a bear.prefab - is not working -
Wulf Community Admin
-
Code:
{ "Messages": { "ReceivedForGather": "Vous avez reçu {0} for gathering {1}.", "ReceivedForKill": "Vous avez reçu {0} Pour avoir tué {1}.", "ReceivedForLoot": "Vous avez reçu {0} for looting {1}." }, "Settings": { "Rewards": { "Bear": 25, "Boar": 25, "Chicken": 25, "Corpse": 25, "Horse": 25, "Ore": 0, "Stag": 25, "Wolf": 25, "Wood": 0 }, "ShowMessages": true } }
-
Wulf Community Admin
Another version to test, I added a null check at one point to prevent some errors from Economics.
-
just what is this version that I took so I do not see at all what the problem
[DOUBLEPOST=1441172685,1441148141][/DOUBLEPOST]Hello wulf you know how I could do for the player earns money thank you for your answer -
Wulf Community Admin
-
yes i still problems. I install the plugin shop if players win not money it is useless to have this plugin
français
oui jai encore des problèmes. j'ai installer le plugin shop si les joueurs gagner pas de l'argent ça sert à rien d'avoir ce plugin
[DOUBLEPOST=1441174381][/DOUBLEPOST]I think I found the problem is when I pass the values "Wood": 0 "Ore": 0,Attached Files:
-
-
Wulf Community Admin