ServerRewards

Moved

Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018

5/5, 61 likes
  1. (23:44:18) | Oxide 2.0.2552 for Rust 1044.73 (1805)
     
  2. I was getting errors too but I went ahead and deleted my old config file and reloaded the plugin so a new file would generate. All I had to adjust was my settings in the new config and it worked for me. Maybe try deleting ur config and reload the plugin?
     
  3. If you have no players in game stop server then delete config then restart
    If you have players unload plugin by typing in rcon unload ServerRewards then delete config then type reload ServerRewards
     
  4. did that, no go, same errors. loadlocalimages also fails.
     
  5. if you have skype can you pm me
     
  6. After Update now getting this
    [Oxide] 02:14 [Error] ServerRewards plugin failed to compile!
    [Oxide] 02:14 [Error] ServerRewards.cs(1367,48): error CS1929: Type `Oxide.Core.Libraries.Covalence.IPlayerManager' does not contain a member `GetPlayer' and the best extension method overload `UnityEngine.ArgEx.GetPlayer(this ConsoleSystem.Arg, int)' requires an instance of type `ConsoleSystem.Arg'

    Got 2 servers with same version rust, oxide and rustio on them and same plugins onne gives the above error the other is working perfect. also tried copying all files from the working server but still same error
    Oxide version on both is Oxide 2.0.2552 for Rust 1044.73 (1805)
     
  7. Make sure you are running the latest plugin version
     
  8. Thanks, the server is working for the most part, time to sleep. will try again in the am.
     
  9. Hello.

    the plugin works fine, items, kit, commands, exchange, transfert, images..

    But in config file I have set :
    Code:
    "NPCDealers_Only": true,
    And it didn't work, the shop is available everywhere with /s, can you help me ?

    Full config :
    Code:
    {
      "Categories": {
        "Disable_Commands": false,
        "Disable_CurrencyExchange": false,
        "Disable_CurrencyTransfer": false,
        "Disable_Items": false,
        "Disable_Kits": false
      },
      "CurrencyExchange": {
        "Econ_ExchangeRate": 250,
        "RP_ExchangeRate": 1
      },
      "Messaging": {
        "MSG_Color": "<color=#939393>",
        "MSG_MainColor": "<color=orange>"
      },
      "Options": {
        "LogRPTransactions": true,
        "NPCDealers_Only": true,
        "Save_Interval": 10,
        "Use_PTT": true
      },
      "UI_Options": {
        "DisableUI_FadeIn": false,
        "ShowKitContents": true
      }
    }
     
  10. @mannot74 the /s is available all the time for admins even when you set NPC=true your players will only be able to access it via your designated NPC
     
  11. Check you data files to see if any of them only contain the word null. If so unload and delete them
    The GetPlayer call is not in the current version so I can pretty safely say you are not using the latest version
    /s is available to admins anytime whether 'NPCDealers_Only' is set to true or not
     
  12. I don't have testers !! lool, Thanks to you and to k1lly0u
     
  13. How would 1 add the command sil into the server rewards for 10 mins?
    [DOUBLEPOST=1477074370][/DOUBLEPOST]Also getting this error when trying to add new stuff to store, anybody got a fix for this?

    Code:
    (19:21:31) | [Oxide] 19:21 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.31' (KeyNotFoundException: The given key was not present in the dictionary.)
    (19:21:31) | [Oxide] 19:21 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.Int32,System.UInt32]].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.CreateItemEntry (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panelName, Int32 itemnumber, Int32 number) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.CreateItemsElement (Int32 page) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.CreateItemsUI () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.InitializeAllElements () [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. Killyou master
    I have all Updated And I am having this error when somebody open the Shop:

    Code:
    (16:52:27) | [Oxide] 16:52 [Error] Failed to call hook 'cmdStore' on plugin 'ServerRewards v0.3.31' (ArgumentException: An element with the same key already exists in the dictionary.)
    (16:52:27) | [Oxide] 16:52 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.ServerRewards+OUIData].Add (UInt64 key, Oxide.Plugins.OUIData value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.cmdStore (.BasePlayer player, System.String command, System.String[] args) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  15. k1lly0u updated ServerRewards with a new update entry:

    0.3.4

     
  16. So Nice !! i will try it now !
    [DOUBLEPOST=1477131959][/DOUBLEPOST]Ok, all works but:
    I dont understand this menu : 20161022121914_1.jpg

    And can we seel in Economics, not in RP ?

    More pics..

    20161022123104_1.jpg 20161022123137_1.jpg 20161022123144_1.jpg 20161022123151_1.jpg 20161022123157_1.jpg 20161022121914_1.jpg

    And I found a bug i think

    when I click on the buttons Items/Commands/sellItems and again click buttons Items or Commands or sellItems there is a bug with GUI and i need to reload SR for leave Shop..

    20161022123826_1.jpg 20161022123937_1.jpg
     
    Last edited by a moderator: Oct 22, 2016
  17. k1lly0u updated ServerRewards with a new update entry:

    0.3.41

     
  18. k1lly0u updated ServerRewards with a new update entry:

    0.3.42

     
  19. Would be nice if when selling multiple items and you click +10 or +100 it shows how many you are currently selling. No info there, easy to lose track how many of that item you are selling.

    Also getting this error
    Code:
    (12:38:32) | [Oxide] 09:37 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.ServerRewards+OUIData].Add (UInt64 key, Oxide.Plugins.OUIData value) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0(12:38:33) | [Oxide] 09:37 [Error] Failed to call hook 'OnUseNPC' on plugin 'ServerRewards v0.3.42' (ArgumentException: An element with the same key already exists in the dictionary.)(12:38:33) | [Oxide] 09:37 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.ServerRewards+OUIData].Add (UInt64 key, Oxide.Plugins.OUIData value) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.OpenStore (.BasePlayer player, System.String npcid) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknow
     
    Last edited by a moderator: Oct 22, 2016
  20. Is it possible to only have "Buy" only in Sales settings? Just don't want the sell part. So people can buy in stack.etc and use Economy for that?