ServerRewards

Moved

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

5/5, 61 likes
  1. Hello! I can't set NPCs to sell items. May be a noob question and I missed something. But if not difficult please help
     

    Attached Files:

  2. You need to define items in the file 'reward_data.json' ( Though using the chat commands is easier. :) )

    Some example:
    Code:
    {
      "items": {
        "torch_0": {
          "shortname": "torch",
          "displayName": "Torch",
          "customIcon": null,
          "amount": 1,
          "cost": 2,
          "skinId": 0,
          "category": 6
        },
        "shoes.boots_0": {
          "shortname": "shoes.boots",
          "displayName": "Boots",
          "customIcon": null,
          "amount": 1,
          "cost": 250,
          "skinId": 0,
          "category": 5
        },
        "hoodie_0": {
          "shortname": "hoodie",
          "displayName": "Hoodie",
          "customIcon": null,
          "amount": 1,
          "cost": 150,
          "skinId": 0,
          "category": 5
        },
        "hat.beenie_0": {
          "shortname": "hat.beenie",
          "displayName": "Beenie Hat",
          "customIcon": null,
          "amount": 1,
          "cost": 75,
          "skinId": 0,
          "category": 5
        },
        "bandage_0": {
          "shortname": "bandage",
          "displayName": "Bandage",
          "customIcon": null,
          "amount": 3,
          "cost": 20,
          "skinId": 0,
          "category": 7
        }
      },
      "kits": {},
      "commands": {}
    }
     
  3. How to add/remove a NPC Reward Dealer
    • Stand infront of the NPC you wish to add or remove
    • Type '/srnpc add' to add or '/srnpc remove' to remove
    • You will then be prompted to "use" the NPC (default E)
    • The next NPC you "use" will be the one that is affected
    In short: stand in front of an NPC you want to use, tpye in chat /srnpc add then press E - That NPC then becomes the Rewards NPC.
     
  4. Hi. Excellent !! But I do not know why, I do not see pictures of items for sale.
     

    Attached Files:

    • ici.jpg
      ici.jpg
      File size:
      128.1 KB
      Views:
      30
  5. Yes, i have
     
  6. Did you also run both commands:

    workshopimages
    refreshallimages


    Then once that is done ~20 minutes depending on servers connection did you then do oxide.reload ServerRewards ?

    If I get missing images I just reload the plugin in question tbh
     
  7. Thx. For now, I have squares with written inside "no image found".
     
  8. Read the overview of both plugins carefully and follow what it says to do
     
  9. It's fine, thank you. Now I have the images :)
     
  10. I have the problem partially preserved... part of the goods is added to the NPC part no.


    P.S.

    I certainly understand that it is Sidorovich, but not to the same extent that would be part of the goods were and some not... Or maybe all the same to try to rename it, maybe it really is the magic of the name
     

    Attached Files:

  11. is there a way for players to select how many of an item they want to purchase instead of them having to repeatedly buy the same item over and over, if not could a feature like this be added, so you can select a quantity of items to purchase then press purchase.
     
  12. You can use the console command to add an item in bulk
    Code:
    rewards add item <shortname> <skinId> <amount> <cost>
    Code:
    rewards add item rifle.ak 0 999 2
    I'm having an issue with adding loot to an NPC. It seems that when I add a supply signal to the NPC, it doesn't show up in their menu. Using /s I can see it, just not on the NPC. I have used /srnpc loot to add the item. The same thing happens with Rocket launchers too. I can add others, although I haven't tested every item.

    My playtime also states I have been playing for 1 hour and 17 minutes, yet I have no RP?
     
  13. i type /srnpc addnad i dont see any npc anyone can help me pls ;D
     
  14. You need to add the NPC from the NPC mod first
    Code:
    /npc_add
     
  15. 0. Deleted old ImageLibraryStuff & Updated ImageLibrary - seems to work; only strange thing is the "Exception: ISteamUGC _ptr is null!" - message

    1. Unloaded ServerRewards
    2. Deleted config/ServerRewards.json
    3. Deleted all files in data/ServerRewards/
    4. installed ServerRewards v.0.4.55

    Result: Not Working

    Messages in Log:
    Code:
    (13:22:14) | Loaded plugin ServerRewards v0.4.55 by k1lly0u
    (13:22:14) | ExType: TypeInitializationException
    (13:22:14) | Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.4.55' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    (13:22:14) | at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.FirstOrDefault[Skinnable] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
      at Rust.Workshop.ApprovedSkinInfo..ctor (UInt64 WorkshopdId, System.String Name, System.String Desc, System.String ItemName) [0x00000] in <filename unknown>:0
      at Rust.Workshop.Approved..cctor () [0x00000] in <filename unknown>:0
    Additional:
    When doing /s ingame it says that i have to wait for ImageLibrary to finish processing images despite the shop shouldn't use any images from imagelibrary. (As i deleted all rewards previously)
     
  16. @k1lly0u Is there anyway the RP cap of 100K can be changed as a config option? I have a few players who have hit 100K gone over it and now it's rolled back to nothing.

    Only reason I ask is because a player asked me this today: (19:38:02) | [Better Chat] [VIP] [Player] [MYLAWN] [Assassin] [Murderer] [Fighter] xxshadyjxx: is there a way u can increase the max cap on rp when u hit 100k it rolls over and u lose it all...

    Cheers
     
  17. I'm having the same problem as @Cjmarkham

    I add items to the store then try to select them via an npc trader, however some of the items don't display from the trader but they do when using the /s command