ServerRewards

Moved

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

5/5, 61 likes
  1. I migrated my files to a new server and only some of the images are working now. Which is weird. As far as I know, nothing changed. It's just the first page that has issues though. I did the whole loadimages thing too. All the pages other than the first one load just fine.

    Screenshot
     
  2. [request] random reward added to the plugin / config

    Code:
      "RewardItems": {
        "0": {
          "DisplayName": "Mystery Box",
          "URL": "http://salemwiki.info/images/1/1a/Mystery_Box_icon.png",
          "Amount": 2,
          "RandomList": 821258270 188900688 336551612  324040353 97513422, (crappy example I'm a noob)
          "Cost": 3
     
  3. UGH I have trouble EVERY wipe with these @(!$* images! I have the local Icons folder, all the files names are set (I saved my jSON data file).. I load the mod, loadlocalimages and NO flippin images showing up.. I dunno. So frustrating. I'm not getting ANY errors when I run loadlocalimages.. it says Saved rewards/permissions data (3 times).. but my images are all white. :\

    EDIT..

    JESUS ok.. loadlocalimages literally took TWENTY MINUTES to actually generate the icons properly.. but it eventually started working. I am just too impatient I guess.. I expected it to be like.. you know.. pretty much instant. But it literally took like 20 minutes.. I had given up then checked /s some time later and the images were working.
     
    Last edited by a moderator: Sep 1, 2016
  4. Image links don't work after update?
     
  5. Is it possible to make a command baught in the command store is happening to the user buying it?
    For example adding the player to a permissions group or teleport him to a location specified in the command?

    it doesnt work with $player.name
     
  6. they do
     
  7. ok, it works, i just forgot the "!".


    Can i use a Rcon Console for those commands? Because some commands i want to use work only in a Rcon Console...
     
  8. On a scale of 1-10 (10 being redesigning the entire code, 1 being adding one line of code), how difficult would it be to add the option to create 2 or more Vendor menus? That is, I give NPC A, menu 1 of items players can purchase, and I give NPC B menu 2 of items players can purchase. That way you can sell certain items through one NPC and other items through another?
     
  9. Code:
    [Oxide] 22:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 22:19 [Debug]   at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.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
    [DOUBLEPOST=1472930488][/DOUBLEPOST]If you set "Disable_Kits": true,
    Kit section is still visible. After you enter /s - see exception above.
     
  10. Can you explain what you mean by the exclamation mark?
    I also use Server Rewards in this way in the Vendor "Command" list. Is it: $player.name!
    ????

    I don't believe the exclamation mark is required, I think in the example, its just so the exclamation mark appears after the players name.

    Someone correct me if I am wrong please.
     
    Last edited by a moderator: Sep 3, 2016
  11. I just wrote $player.name instead of $player.name! i forgot the >> ! <<

    Any possibility to use the command as an ingame command fulfilled by an admin / a rcon console
     
  12. So the exclamation mark is obligatory? Are you sure? So what if I used $player.id instead of .name? Would I have to write: $player.id! ??
     
  13. Is it possible to setup multiple shops around the map if so could someone please help me with it because im having numerous problems, Please send me a PM and i'll replay with my teamspeak, Thanks in advance
     
  14. Yeah man. Its easy, just create multiple NPCs at your various locations, and then go up to the NPC you want to add, look at him and then type:

    /srnpc add

    That should do it. If you're asking about the same question I asked above:
    Then as far as I know, so far, the answer is no. You cannot create multiple Vendor "menus", all vendors will have the exact same menu with the exact same list of items to purchase.
     
  15. So that means if i do various location for different categorys to make them sell different stuff they will all just have the same shit like if i so /rewards )i changed the command name btw to bring up the gui ) they will only see whats in there?
     
  16. I think I understand your question... so yes thats right. The "server rewards vendor" menu is only ONE. When you add stuff to buy to the "Vendor Menu", you know the menu that pops-up when players go to buy stuff, there is only THAT ONE. You can't have more than one. So you can't for example be like "OK NPCA only sells Guns, so I'll make a Gun menu with only gun items and then NPCB will only sell Food, so I'll make a Food menu with only food in it." That doesn't exist, unfortunately. I would love to see that in this mod, because I too would like to set up multiple NPCs with DIFFERENT menus and DIFFERENT items to purchase etc.
     
  17. :/ hopfully a bunch of Devs can get together and do this cause that would be lit asf
     
  18. Yeah that's why asked how difficult it would be to implement it. I'm no dev, I've only dabbled in programming and programming some Rust stuff, but it doesn't seem THAT hard. However, I could be completely mistaken. They may get around to it.
     
  19. I am trying to make it so players can buy a teleport to a certain location... this is what I entered into chat:

    /rewards add command "Power Plant" "teleport.topos $player.name -532 32 -397" 200

    It successfully adds the command and I even verified it in the json file. NOW when I use the store to buy this command it does nothing except take my points. When I do the command manually in the console (teleport.topos NavyChief -532 32 -397) I teleport. Is it possible the prefix [God] is causing this?? What might be causing this??
     
  20. The devil is in the details. I think your issue is with your quotations. Honestly, my best piece of advice is to avoid using the in-game chat commands. Its tedious and you can mess up.
    Go to your servers Oxide folder --> Data --> ServerRewards_Rewards.json and look at the file. Scroll down to where your commands are, and see how its in put in there. How it should look is something like this:

    Code:
     "Power Plant": {
          "Command": [
            "teleport.topos $player.name -53 32 -397"
             ]
    Also are you sure the coordinates don't need to have commas in-between them or something? Best thing is go to that file, paste what you have here and we can see whats going on. Second thing to do is go to the overview page and carefully re-read it and look at the example code provided by the Dev.

    SUPER IMPORTANT NOTE!!!!!
    Make a copy of your "serverrewards_rewards.json" file BEFORE YOU EVEN TOUCH IT. If you mess up the configuration, and restart the plugin via the oxide.reload command, and it detects an error, it will completely wipe your configuration file and start all over from scratch. PLEASE PLEASE PLEASE back that shit up. I'm speaking from experience.