ServerRewards

Moved

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

5/5, 61 likes
  1. Im having a hard time understanding this plugin. I must be stupid
    how do you make a reward claim?
    or a kit for rewards and the winner to claim it?
     
  2. Do you have the Required Dependencies: ImageLibrary
    And any of the Optional Dependencies if so what ones if you need help I give it over skype
     
  3. Yes I have the ImageLibrary installed. I have everything for the event. I also made the kit but when i log into the store it says no kit.
    Im not really sure what the RP is for. I just need some sort of reward system to auto give to the winner.
    I dont know if such thing exist.
     
  4. If it says no kit you might not of made any see my post here also read and follow the overview of this plugin
     
  5. Ok sweet. I see there should be a /claim reward or something but I cant see it in the overview.
    And does the points carry over from wipe?
     
  6. I managed to do the kit and got a return message like this: "You have added the kit store,available for 10 RP"
    But when I go to my store it says "There are currently no kits set up"

    I dont know what Im missing here.
    Do i need permission to be able to see the kits?
     
  7. I will pm you so you can send me some files
     
  8. can anyone explane how to add manually pictures ?
     
    Last edited by a moderator: Jun 30, 2018
  9. I am unable to sell items in my store. I believe everything is in order what am I missing?
     

    Attached Files:

  10. I believe the formatting of the reward_data.json file has changed. Here is from my working config:

    Code:
    "fridge_0": {
                "amount": 1,
                "category": 3,
                "cost": 10,
                "customIcon": null,
                "displayName": "Fridge",
                "isBp": false,
                "shortname": "fridge",
                "skinId": 0
            }
     
    Last edited by a moderator: Jun 30, 2018
  11. Figured it out now lol. Thanks!
     
    Last edited by a moderator: Jun 30, 2018
  12. how do i get the commands to work as they dont or where are they located so i can edit them to get them working
     
  13. Is it possible to add a new config for max daily usage?
     
  14. use cooldown maybe?
     
  15. I don’t see that option in the config.

    Or maybe a max per item. (Sold out)
    Max per person options.
     
  16. Oh my mistake, i'm confuse sorry...

    Its Quest have cooldown ^^
     
  17. Hello

    i've added command for buy extra tp to home, in reward_data.json:
    Code:
      "commands": {
        "ExtraHome": {
          "displayName": "Ajoute 5 TP pour /home",
          "description": "Ajoute 5 TP pour /home pour 1 mois. (Added 5 extras for home tp for 1 month)",
          "iconName": null,
          "commands": [
            "cm.say $player.name You have purchased 5 extras TP to home for 1 month.",
            "o.grant user $player.id nteleportation.rp 30d"
          ],
          "cost": 250
        }
      }
    in-game, nothing in command section...

    Code:
    /rewards list commands
    return :
    Code:
    Command ID: ExtraHome - Name Ajoute 5 TP pour /home - Cost: 250 - Description: Ajoute 5 TP pour /home pour 1 mois. (Added 5 extras for home tp for 1 month)" - Commands: cm.say $player.name You have purchased 5 extras TP to home for 1 month. and o.grant user $player.id nteleportation.rp 30d
     
    If i'l try to edit:
    Code:
    /rewards edit command ExtraHome
    return:
    Code:
    /rewards edit kit <ID> <cost|description|name|icon> "info here"
    Unable to find a reward command with that name
    Code:
    /rewards remove command ExtraHome
    => work

    I've try this:
    Code:
    /rewards add command TestCommand "say Hey!, $player.name!" 1
    in data file, its good but in-game, same, nothing displayed... (server restarted)

    Oxide are updated
    Using latest verson of ServerRewards plugin
    Server restarted

    Edit;
    Code:
    o.unload ServerRewards
    delete plugin and deleted /data/ServerRewards folder.

    Restart server

    Load plugin
    Code:
    [ServerRewards] All UI elements have been successfully generated!
    Loaded plugin ServerRewards v0.4.65 by k1lly0u
    Ingame:
    Code:
    rewards add command "ExtraHomeTP" "o.grant user $player.id nteleportation.rp 30d" 250
    
    and
    Code:
    rewards edit command ExtraHomeTP 250 "Ajoute 5 TP pour /home pour 1 mois" TPHomeExtra add
    
    restart server.

    Nothing displayed in command tab...
     
    Last edited by a moderator: Jul 5, 2018
  18. Im completely clearing the player_data.json and giving all the players 0 RP, but it won't take the RP away.
     
  19. How do I give a non admin permission to this plugin?
     
  20. Should I be able to check and set RP of sleepers?
    sr check SleepersPlayerName

    If yes, then it does not work currently for me: it returns the noPlayers found message instead in line 1487.
    Do you get the same result?

    For me it fails because line 1478 equals null:
    Code:
        var targets = covalence.Players.FindPlayers(arg);
        ...
        if ((targets.ToArray()[0].Object as BasePlayer) != null) // line 1478
            return targets.ToArray()[0].Object as BasePlayer;
        else
        {
            if (player != null)
            {
                SendMSG(player, msg("noPlayers", player.UserIDString));
                return null;
            }
            else return msg("noPlayers"); //line 1487
            }
        }
    
    I checked the contents of targets-array using string.join(" ", targets) and I can see it is of length 1 and contains the sleeper I searched for, and it is of type RustPlayer. But converting this object to BasePlayers results in null.

    Anyone knows why or how this can be fixed?