ServerRewards

Moved

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

5/5, 61 likes
  1. This is not the file I uploaded above I posted the above to give you a idea on how to do it and the reason why its not working right as each one needs a different id you have many using the same id
     
  2. It works ! 94 item max
     
  3. Cant seem to figure out how to add pages to the kit menu. I have more than 10 kits and I need another page. Its probably something simple, but it would greatly help out. Thanks
     
  4. Hi every, i've got trouble with this plugin, not all image was loading when i did "loadimages". I've try multipe time and every time some image does not load, but not the same
    Snaggy - easy screenshots
    Any suggestion ?
     

    Attached Files:

  5. The info you have in that file does not belong to that file it belongs to the DeathNotes.json
     
  6. Oups, this is the right file x)
     

    Attached Files:

  7. Not possible, it was made to support 1 item (with variable amount) If you want to give more than 1 item create kits
    You need to unload the plugin before replacing data files, otherwise when the plugin saves its data it will overwrite it

    The highest amount of items is actually 2,147,483,647 but good luck creating that many

    Add 1 more kit, somehwhere along the line I changed the amount per page to 10 from 11 and forgot to change all the variables :p Ill fix it next update

    Like I mentioned in the overview, if you have trouble loading certain images then they are most likely timing out before downloading. Try getting them from a different source.
     
  8. If download thoses images then i upload on my serv, can i set a relative path ?
     
  9. Negative, it needs to be from a URL. Try and find a source closer to your location
     
  10. Okey thank you, i will find other source :)
     
  11. You need to use smaller images this is why some are not loading for you
    I fixed 4 in your file
    This is how you get a smaller image say you want the Research Table first go to this link Research Table
    You will see the image of the table right click this image, then click view image it will bring up the url of
    http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160129014240
    This is the url that you need now you do this for each item in the file I have done 4 in the uploaded file for you, you need to do the rest once you have filled in all the correct urls then upload the file to your data folder and run the loadimages command in rcon
    And here is the rock your first one
    http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061532
     

    Attached Files:

  12. what the purpose of that?

    Code:
      "RewardCommands": {},
      "storedImages": {
        "999999999": {
          "0": 2940140341
        },
        "3506021": {
          "0": 2830698098
        },
        "776005741": {
          "0": 3550545815
        },
        "-388967316": {
          "0": 981760998
        },
        "-2118132208": {
          "0": 3871646620
        },
        "-1775234707": {
          "0": 2146521800
        },
        "3343606": {
          "0": 3836117028
        },
        "146685185": {
          "0": 2517583537
        },
        "2123300234": {
          "0": 2345695540
        },
        "-55660037": {
          "0": 1445141191
        },
        "-930579334": {
          "0": 3961083295
        },
        "-1009492144": {
          "0": 3015023342
        },
        "698310895": {
          "0": 2698043796
        },
        "456448245": {
          "0": 3602637007
        },
        "-1625468793": {
          "0": 2531013300
        },
        "109552593": {
          "0": 1277544350
        },
        "1213686767": {
          "0": 721806460
        },
        "1229879204": {
          "0": 2328984574
        },
        "516382256": {
          "0": 2164427065
        },
        "-465236267": {
          "0": 3727211361
        },
        "498591726": {
          "0": 1796010591
        },
        "-578028723": {
          "0": 38332114
        },
        "-1745053053": {
          "0": 385673995
        },
        "1045869440": {
          "0": 3010871958
        },
        "193190034": {
          "0": 3389188457
        },
        "649603450": {
          "0": 2049462669
        },
        "563023711": {
          "0": 1778280662
        }
      }
    }
     
  13. its info you get when you do the loadimage command
     
  14. That's not entirely true. The full size images are not much bigger and they look a lot better on the UI. Ive only ever used the full size images and never had a issue but I think it all comes down to how fast your machine can pull them from the source
     
  15. i have an issue changeing exchange rate. i would like the exchange to be 100 coins - 10 rp
    my config:

    {
    "Disable_Commands": false,
    "Disable_CurrencyExchange": false,
    "Disable_Items": false,
    "Disable_Kits": false,
    "ExchangeRate": 100,
    "MSG_Color": "<color=#939393>",
    "MSG_DisplayEvery": 100,
    "MSG_MainColor": "<color=orange>",
    "MSG_OutstandingPoints": true,
    "Points_Invites": 50,
    "Points_Referrals": 50,
    "Points_Time": 25,
    "PT_Point_Interval": 5,
    "Save_Interval": 10,
    "Use_Playtime": true,
    "Use_Referrals": true
    }
     
  16. I find pulling the smaller images has less load on the server so helps players
     
  17. You currently have exchangerate set to 100 to 1 rp. just change the value to 10. It's simple math really.


    I find that since loadimages only runs once; your statement is invalid. Unless your running your server on a P4 you really shouldn't have issues with thumbnails, regardless of size... Evan a P4 can parse 17 lines of code efficiently though,, so i doubt it would slow that down either. Large buildings in rust are far worse than any of these clean byte code plugins. Please think before you speak, and go misleading other admins with bad advice; let alone arguing with the plugin dev. lol.
     
  18. Thanks for your advice.
    I changed to "ExchangeRate": 10. Now, with your match, the issue still remain. 10 coins become 1 Rp. I would like the Rp value to be increased into 10.
    question is. is it even possible to make the Rp to 10 ? :p
     
  19. The short answer is No; not simply through the config. though I'm sure you could add the code, or use a command to achieve this instead.
    [DOUBLEPOST=1463949215][/DOUBLEPOST]How to add a Command to the reward store
    To add a command use the chat command to add a console command with variables.
    ex. /rewards add command <name> <command> <cost> - <name> is the name in store, <command> is the chat command you wish to run, <cost> is the price in RP. Once that is complete you can add a description of the command through the datafile.

    One example of a command is "say RockOn!, $player.name!" which will make the player say RockOn! :p

    The current variables you can use in a command are;
    Code (Text):
    $player.name - Player display name
    $player.id - Player Steam ID
    $player.x, $player.y, $player.z - Vector3 coordinates
    ** If you want more variables please request them in the support thread

    If I understand this correctly, it's capable of running any of the gambit of console commands. So combine this with .give, and your economics variables. and you've got a working command to do exactly what you need. If not, well; you know where to request this feature be added, and have a +1 from me ;)