ServerRewards

Moved

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

5/5, 61 likes
  1. Well you did not read the overview then... Anyway will give you a hint, to shop you are using console commands and consolle commands never start with /
     
  2. Ok, but is the cooldown player system on HeliControl will work with the console command?
     
  3. Type "callheli" into console to make sure it works, first.
     
  4. Again, read overview of both plugins how to do it....
     
  5. Thanks Mate, yeah I am already running that one with a couple of XP quests but would also like to offer my players the option of "buying" XP through the rewards.

     
  6. Hmmmmmm.... You could create a kit that gives XP, sell the kit. Another workaround would be to install the XP control plugin/mod and sell the command. Kit would be muuuch easier.
    /kit add xpboost
    /kit authlevel 2(?) hide false npconly true xp XX
    [DOUBLEPOST=1470012255][/DOUBLEPOST]
    lol, thanks Brko. This is what ive been fucking up. I was trying /pm for the private message hah. Except im not sure if the console command is just pm. Code digging time! Id still love for a max amount of an item to be set on the rewards shop. Like 10 Thompsons, once the last one has been sold it leaves the rewardshop list/menu.
     
  7. The updates should have fix this I assume but I'm still having problems with the images loading from URLs. Tried reloading plugin and "loadimages". Is it a problem with the URLs having a sub-domain?

    Code:
    {
      "RewardKits": {},
      "RewardItems": {
        "0": {
          "DisplayName": "Bolt Action Rifle",
          "URL": "http://cdn.chaos-rust.com/chaos-rust/icons/Bolt_Action_Rifle_icon.png",
          "ID": -55660037,
          "Amount": 1,
          "Skin": 0,
          "Cost": 12
        }
    .....
    }
     
  8. Where are you calling loadimages?
    It never works for me unless I do it from RCON.
     
  9. Can someone point me where I can download the images and what sizes they need to be? I try to screenshot area copy them but do not get good images and I guess the wrong sizes. I could use all of them and cant seem to track down a place to get them. My kits will not display no matter what size I make the pictures as well.
     
  10. Items
    Click on the link to open the image you want so say you want the blot action
    And this is where you get the ID Oxide API for Rust and Skin further down the page
     

    Attached Files:

  11. Is there a way to inhibit players from using the /s command and only allowing them to access the store at NPC Vendors? Or will blocking the /s command via permissions also block the ability for them to interact with NPC vendors?
     
  12. Ok thanks, I was wondering about that vignette address that kept showing everywhere, I have a lot of images to look up, sigh...wish I could just down a zip then I could place the files locally on hard drive. I wonder if looking up images is better locally on disc or having to connect and rely on wiki's servers image files.
     
  13. How do i have to type "loadimages" in the RCON console? Nothing happens when i just write "loadimages" :/
     
  14. I guess maybe the links aren't right or the config doesn't check out?
    Did you validated it? (google JSON validator or verifier).

    Also, did you unload the plugin before editing the config?

    I literally just type 'loadimages' into RustAdmin console - That was the only way it would work for me.
     
  15. Well how do i unload the plugin?:S Im not quiet sure what its meant to unload a plugin because im not used to that :D and could u give an URL example for any item pls?
     
  16. Oh...ok.
    Every time you do a manual edit to any config or data file, the plugin must be unloaded first *as far as I know.
    I'm no expert...not by a long way, but that's my experience.


    So in console you'd want to do oxide.unload ServerRewards, then check the output to make sure it unloads.
    Then do your edits.
    Then do oxide.load ServerRewards and you should see your changes reflected.
    Again, check the output to be sure it loaded, because a simple type error is enough to cause failure to compile.

    I've found that if you don't unload, the changes don't take. Presumably because the config is in memory/use? IDK.
     
  17. Thats not really necessary. You can just make the edits and then "reload" the plugin. Edit the config, save it and then in game console type: oxide.reload PluginName (don't type the plugin's extension, just the name).

    e.g.
    oxide.reload HumanNPC
    oxide.reload Build
    oxide.reload ServerRewards

    Protip*- Make sure you add plugins and do all the edits as the user who has permission to your Rust server. For example, I have my box setup so I don't do anything through root but a secondary user account. Make sure permissions are all the same or it'll cause errors and/or not load.

    But seriously, does anyone know if I can block the /s command for players, so it forces them to use the NPC Server Reward Vendors? I don't want players to be anywhere on the map and run /s to do reward purchases etc. I want them to physically go to a location where the NPC vendor is and do their shopping there. IS this possible?
     
  18. Thanks for the fast replies, i think u can change that under /oxide/config and then under ServerRewards. You have to set "NPCDealers_Only": false," to true, ive not tested it yet but maybe it works.
    [DOUBLEPOST=1470222679][/DOUBLEPOST]
    • Download and open your serverrewards_rewards.json in a text editor. Do i realy have to do that evrytime i add an URL and if thats the case, do i have to delete the old .json file after adding the new one?
     
  19. Personally, I've found that edit then reload hasn't always worked with every plugin.
    I'm pretty sure some have just reverted to the old config somehow.
    Maybe it's been user error but I've found unload/edit/load to be fool proof.

    No, you don't have to delete the original config each time.
    The new one should replace the old one.

    I use an FTP client with built in edit option so I don't manually download anything. I edit the file on the server.
    The one I use is cyberduck but I'm sure there are plenty of others.