ServerRewards

Moved

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

5/5, 61 likes
  1. k1lly0u updated ServerRewards with a new update entry:

    0.2.57

     
  2. @k1lly0u Thank you for Inventory count update! You are the man! :D
     
  3. So within the Config you have the slot for skin:

    I used the ID for the Special Edition AK47 V2 and added that so when someone purchases the item they get the skin. I now assume that the crash is due to maybe me not personally owning the skin? I thought that the system would work similar to other plugins that allow a random skin of items that have been approved for Rust.

    Now that I have the item within my player inventory it was a instant kick from server with my original posted errors.
     
  4. What ID did you put?
     
  5. 10138 is the skin ID for that weapon. I'm surprised it crashed you, usually if you put the wrong skin ID it just spawns a default item. It wouldn't be from not owning the skin, I don't own any weapon skins and I can use any skin in the game
     
  6. How do you get the proper skin ID?

    And ive been at a loss considering it crashed as soon as I hit the purchase button within the plugin. Once it did this I removed the item from the plugin so nobody else has the same issue. Now if I could figure out a way to reverse it without a complete wipe I would have someone else test the function
     
  7. -> Oxide API for Rust <- Post the problem in the forums, I'm sure someone will have a solution
     
  8. k1lly0u updated ServerRewards with a new update entry:

    0.2.6

     
  9. Thank you for adding the transfer system, much appreciated!
     
  10. Check the overview for hook update
     
  11. Thanks mate, working perfectly. I've got our vote plugin now adding RP for a successful server vote, on a side note, have just seen this pop up:

    Code:
    (21:18:54) | [Oxide] 21:17 [Error] Failed to run a 1.00 timer in 'ServerRewards v0.2.6' (KeyNotFoundException: The given key was not present in the dictionary.)
    (21:18:54) | [Oxide] 21:17 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,System.Double].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.GetPlaytimeClock (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+<DisplayPoints>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
  12. @k1lly0u got a problem with images on kits :( they were working but now I have like only white screen, uploaded them to many imagehosts ect but nothing helped, any suggestion how big they should be in max? I suppose fullhd arent good, also jpg or png ect? :) Items are working but other things not :(

    CtrlV.cz | Nejrychlejší ScreenShot a PrintScreen online
     
    Last edited by a moderator: Jul 10, 2016
  13. {
    "RewardKits": {},
    "RewardItems": {},
    "RewardCommands": {
    "1": {
    "Command": [
    "grantperm $player.name MagicCraft.able 3d"
    ],
    "Description": "MagicCraft Three days use [GradeFuel,GunPowder,Explosives,Timed,Survey,Rocket]",
    "Cost": 20
    }
    },
    "storedImages": {
    "999999999": {
    "0": 2940140341


    $player.name

    Clans Use is not working properly.

    Grunge Why?
     
    Last edited by a moderator: Jul 10, 2016
  14. {
    "RewardKits": {},
    "RewardItems": {},
    "RewardCommands": {
    "1": {
    "Command": [
    "grantperm $player.name MagicCraft.able 3d"
    ],
    "Description": "MagicCraft Three days use [GradeFuel,GunPowder,Explosives,Timed,Survey,Rocket]",
    "Cost": 20
    }
    },
    "storedImages": {
    "999999999": {
    "0": 2940140341


    $player.name

    Clans Use is not working properly.

    Grunge Why?
     
  15. Edit: After trying this and uploading the changed .cs file, I noticed that the message was the same. Not sure if the Dictionary Entry persists until the server restarts, or if the message is hidden somewhere else. Anyone with a suggestion?

    Got a request and tweak for people who are using the NPCDealers_Only flag to make people travel to the Rewards Vender. The stock message tells people to spend them 'using /s'. This won't work and could lead to confusion.

    A quick fix is to change the value of msgOutRewards1 which is on line 2049 (as of this comment - ver 0.2.6). Here is a snippit of my code from ServerRewards.cs (not the .json config file).
    Code:
      Dictionary<string, string> messages = new Dictionary<string, string>()
      {
      {"title", "ServerRewards: " },
      { "msgOutRewards1", "You currently have {0} unspent reward tokens! Spend them in the reward store by going to /Town." },
      {"msgNoPoints", "You dont have enough reward points" },
    
    My request is to add a second msgOutRewards for town only that auto-switches based on the value of NPCDealers_Only, or moving the message to the config file.
     
    Last edited by a moderator: Jul 10, 2016
  16. when i click in Itens

    Code:
    [Oxide] 12:51 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.2.6' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 12:51 [Debug]   at System.Collections.Generic.Dictionary`2[System.Int32,System.UInt32].get_Item (Int32 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.CreateItemEntry (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panelName, System.String itemname, Int32 itemnumber, Int32 amount, Int32 number) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.ItemElement (.BasePlayer player, Int32 page) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.cmdChangeElement (.Arg arg) [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 
     
  17. sorry posted in wrong section
     
  18. Plugin's broken, doesn't take poitns away upon purchase so people can buy stuff over and over.
     
  19. delete config and start fresh, fixed for a few of us