Is there anyway you can use this with EasyVote to give players who voted RP?
ServerRewards
Moved
Total Downloads: 14,032 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
-
-
When i try to sell something, that only appears if i have it in the inventory, there are a possibility to always see it? (i mean to know what can i sell)
Thanks. -
so how do this plugin work? How do you actually receive rp points, is there any config that allows you to edit how easy or how hard it is to receive the points, because i only see that u can edit whats in the store rather than how u actually get the points itself
-
-
NEVERMIND I AM BLIND AS FUCK, i never even noticed the exchange tab lolLast edited by a moderator: Jul 6, 2017 -
hello how can i remove the the old rewarddeale icons from the lustymap? there are now 4 dealers but i only have 1
-
Have a error:
Failed to call hook 'OnUseNPC' on plugin 'ServerRewards v0.4.54' (KeyNotFoundException: The given key was not present in the dictionary.)
(21:43:03) | at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+UIPanel,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+Category,System.Collections.Generic.Dictionary`2[System.Int32,Oxide.Game.Rust.Cui.CuiElementContainer]]]].get_Item (System.String key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards+UIManager.AddUI (.BasePlayer player, UIPanel type, Category subType, Int32 pageNumber, System.String npcId) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 -
-
-
This made it work for me.
Could be because npc locks the use key?
Not sure what's going on but I guess it's something like that. -
Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.4.54' (NullReferenceException: Object reference not set to an instance of an object)
(13:58:42) | at Oxide.Plugins.ServerRewards.CreateAllElements () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 -
Different error..
Maybe 'reload ServerRewards' and then try again?
looks like there was something wrong while loading the plugin, kinda..
Meanwhile I will check the source, maybe there is a thing that can be fixed. -
I reinstall ServerRewards and HumanNPC. Then add a new NPC modify it, NPC-End and /srnpc add.
This is a new error:
Failed to call hook 'OnUseNPC' on plugin 'ServerRewards v0.4.54' (KeyNotFoundException: The given key was not present in the dictionary.)
(14:11:03) | at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+UIPanel,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+Category,System.Collections.Generic.Dictionary`2[System.Int32,Oxide.Game.Rust.Cui.CuiElementContainer]]]].get_Item (System.String key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards+UIManager.AddUI (.BasePlayer player, UIPanel type, Category subType, Int32 pageNumber, System.String npcId) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 -
OK, so I've added some debugging info and some attempts to fix the nullrefs, could you try the attached file and put the full output of 'reload ServerRewards' to this thread please?
Attached Files:
-
-
(15:00:41) | Waiting for another application to stop using script: ServerRewards
(15:00:42) | Reload requested for plugin which is already loading: ServerRewards
(15:00:44) | ServerRewards was compiled successfully in 2031ms
(15:00:44) | Unloaded plugin ServerRewards v0.4.54 by k1lly0u
(15:00:44) | Loaded plugin ServerRewards v0.4.54 by k1lly0u
(15:00:44) | [ServerRewards] Image Lib Found
(15:00:44) | [ServerRewards] Created first new element (With default NULL values)
(15:00:44) | [ServerRewards] npcData =
Oxide.Plugins.ServerRewards+NPCData
-
(15:00:44) | [ServerRewards] npcData.npcInfo =
System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.ServerRewards+NPCData+NPCInfo]
-
(15:00:44) | [ServerRewards] npcData.npcInfo.count =
0
-
(15:00:44) | [ServerRewards] npcData.npcInfo.FirstOrDefault().ToString() =
[, ]
-
(15:00:44) | [ServerRewards] All UI elements have been successfully generated!
I could open the Reward shop without error
[DOUBLEPOST=1499606179][/DOUBLEPOST]Stop ... error found.
The shop is blank with the NPC.
With / s the shop is available.
[DOUBLEPOST=1499606331][/DOUBLEPOST]Reload Serverreward WITH /srnpc add
(15:17:56) | Unloaded plugin ServerRewards v0.4.54 by k1lly0u
(15:17:56) | Loaded plugin ServerRewards v0.4.54 by k1lly0u
(15:17:56) | [ServerRewards] Image Lib Found
(15:17:56) | [ServerRewards] Created first new element (With default NULL values)
(15:17:56) | [ServerRewards] npcData =
Oxide.Plugins.ServerRewards+NPCData
-
(15:17:56) | [ServerRewards] npcData.npcInfo =
System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.ServerRewards+NPCData+NPCInfo]
-
(15:17:56) | [ServerRewards] npcData.npcInfo.count =
1
-
(15:17:56) | [ServerRewards] npcData.npcInfo.FirstOrDefault().ToString() =
[1367130150, Oxide.Plugins.ServerRewards+NPCData+NPCInfo]
-
(15:17:56) | [ServerRewards] All UI elements have been successfully generated! -
That is correct, the NPC is empty.
What you need to do now is /srnpc loot
then modify the npc by clicking what should be available through the npc -
Big Thanks -
@k1lly0u : Any location you might wish to receive a PR or .patch?