Hi, the store is empty and i can't add anything, the command "/rewards add item 2" doenst work
what i'm doing worong?
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.9' (KeyNotFoundException: The given key was not present in the dictionary.)
(15:27:13) | Image loading fail! Error: Recv failure: Connection was reset
(15:27:13) | [ServerRewards] Saved image data
(15:27:22) | 89.98.50.5:59594/76561198297343042/DutchManiac joined [ -
Sorry if this has been asked already, Is there a way to add custom Categories? Like instead of it saying Items i could make it 2 different Sets Clothing and Weapons?
-
How do i go about putting skinned items into the store if i dont actually own the skinned item to have it in my hands ? im trying to set the store up and have the tempered AK as an item in the store but i dont know how to do this
Also no matter what i do my serverewards_rewards.json still stays empty
Code:{ "RewardKits": {}, "RewardItems": {}, "RewardCommands": {} }
Last edited by a moderator: Jan 23, 2017 -
"57": {
"DisplayName": "Assault Rifle",
"URL": "https://s26.postimg.org/kdcrwh1qh/Assault_Rifle_icon.png",
"ID": -1461508848,
"Amount": 1,
"Skin": 0, <------------ This is where you put the skin ID
"Cost": 400,
"TargetID": 0
Make sure you save your rewards file it resets if you fail to do it correctly. -
So replace
Code:{ "RewardKits": {}, "RewardItems": {}, "RewardCommands": {} }
Code:"57": { "DisplayName": "Assault Rifle", "URL": "https://s26.postimg.org/kdcrwh1qh/Assault_Rifle_icon.png", "ID": -1461508848, "Amount": 1, "Skin": 10138, "Cost": 400, "TargetID": 0
-
You add items via the chat command then add the skin ID in the file. You could copy the code I sent you but you would have to change the number "57" since they are added from 0.
-
ok i get what your saying , just add normal items then go back in and add the skid ID . Thanks for help and ill try it out tomorrow .
-
Last edited by a moderator: Jan 23, 2017
-
Okay guessing I be wont get a reply on my question....Good to know.
-
-
@Resistance anything about the overlaping issue ?
-
-
@Resistance I have assigned /s to a key, when i press the key again i want to close it instead of open it again, overlaping it infinetly if i keep pressing.
Last edited by a moderator: Jan 24, 2017 -
-
@Resistance I know is not working thats why im posting this, the bind key works but what i was asking for if is to hard to code so it closes when it is already open ? because players will try to close it with the same key that they have openned it!
-
-
@k1lly0u any possibility of adding this "close if already open" feature on a near future ? -
loadimages
[ServerRewards] Saved image data
[ServerRewards] Saved player data
Saved 20,387 ents, serialization(0.02), write(0.03), disk(0.00) totalstall(0.10).
Saving complete
> reload ServerRewards
[ServerRewards] Saved player data
Unloaded plugin ServerRewards v0.3.9 by k1lly0u
Loaded plugin ServerRewards v0.3.9 by k1lly0u
[ServerRewards] Couldn't load reward data, creating new datafile
[ServerRewards] Creating and storing all UI elements to cache
[ServerRewards] All UI elements created successfully!
[ServerRewards] Saved image data
[DOUBLEPOST=1485241308][/DOUBLEPOST]Also it says there are currently no items set up . but this is my cfg file
Code:{ "RewardKits": {}, "RewardItems": { "0": { "DisplayName": "Gears", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/7/72/Gears_icon.png", "ID": 98228420, "Amount": 5, "Skin": 0, "Cost": 50, "TargetID": 0 }, "1": { "DisplayName": "Metal Blade", "URL": "http://vignette4.wikia.nocookie.net/play-rust/images/9/9b/Metal_Blade_icon.png", "ID": 1567404401, "Amount": 5, "Skin": 0, "Cost": 10, "TargetID": 0 }, "2": { "DisplayName": "Metal Pipe", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/4/4a/Metal_Pipe_icon.png", "ID": -1057402571, "Amount": 5, "Skin": 0, "Cost": 20, "TargetID": 0 }, "3": { "DisplayName": "Assault Rifle", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/a/a1/Tempered_AK47_icon.png/revision/latest?cb=20161207184924", "ID": -1461508848, "Amount": 1, "Skin": 10138, "Cost": 400, "TargetID": 0 }, "4": { "DisplayName": "Rifle Body", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/0/08/Rifle_Body_icon.png", "ID": 1939428458, "Amount": 5, "Skin": 0, "Cost": 30, "TargetID": 0 }, "5": { "DisplayName": "Road Signs", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/a/a5/Road_Signs_icon.png", "ID": -847065290, "Amount": 5, "Skin": 0, "Cost": 10, "TargetID": 0 }, "6": { "DisplayName": "Rope", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/1/15/Rope_icon.png", "ID": 3506418, "Amount": 5, "Skin": 0, "Cost": 10, "TargetID": 0 }, "7": { "DisplayName": "Sewing Kit", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/2/29/Sewing_Kit_icon.png", "ID": -419069863, "Amount": 5, "Skin": 0, "Cost": 20, "TargetID": 0 }, "8": { "DisplayName": "SMG Body", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/d/d8/SMG_Body_icon.png", "ID": -2092529553, "Amount": 5, "Skin": 0, "Cost": 30, "TargetID": 0 }, "9": { "DisplayName": "Metal Spring", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/3/3d/Metal_Spring_icon.png", "ID": 1835797460, "Amount": 5, "Skin": 0, "Cost": 40, "TargetID": 0 }, "10": { "DisplayName": "Tarp", "URL": "http://vignette4.wikia.nocookie.net/play-rust/images/1/12/Tarp_icon.png", "ID": 3552619, "Amount": 5, "Skin": 0, "Cost": 10, "TargetID": 0 }, "11": { "DisplayName": "Large Medkit", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/9/99/Large_Medkit_icon.png", "ID": -789202811, "Amount": 1, "Skin": 0, "Cost": 50, "TargetID": 0 }, "12": { "DisplayName": "Semi Automatic Body", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/a/ac/Semi_Automatic_Body_icon.png", "ID": 1223860752, "Amount": 5, "Skin": 0, "Cost": 30, "TargetID": 0 }, "13": { "DisplayName": "Anti-Radiation Pills", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/0/0e/Anti-Radiation_Pills_icon.png", "ID": 1685058759, "Amount": 5, "Skin": 0, "Cost": 50, "TargetID": 0 }, "14": { "DisplayName": "Candy Cane", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/2/2c/Candy_Cane_icon.png", "ID": 523409530, "Amount": 5, "Skin": 0, "Cost": 20, "TargetID": 0 }, "15": { "DisplayName": "M92 Pistol", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/4/43/M92_Pistol_icon.png", "ID": 371156815, "Amount": 1, "Skin": 0, "Cost": 20, "TargetID": 0 }, "16": { "DisplayName": "LR-300 Assault Rifle", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/d/d9/LR-300_Assault_Rifle_icon.png", "ID": -1716193401, "Amount": 1, "Skin": 0, "Cost": 20, "TargetID": 0 }, "17": { "DisplayName": "M249", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/c/c6/M249_icon.png", "ID": 193190034, "Amount": 1, "Skin": 0, "Cost": 500, "TargetID": 0 }, "18": { "DisplayName": "Rocket Launcher", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/0/06/Rocket_Launcher_icon.png", "ID": 649603450, "Amount": 1, "Skin": 0, "Cost": 50, "TargetID": 0 }, "19": { "DisplayName": "Supply Signal", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/2/24/Supply_Signal_icon.png", "ID": -1625468793, "Amount": 1, "Skin": 0, "Cost": 500, "TargetID": 0 }, "20": { "DisplayName": "4x Zoom Scope", "URL": "http://vignette4.wikia.nocookie.net/play-rust/images/9/9c/4x_Zoom_Scope_icon.png", "ID": -141135377, "Amount": 1, "Skin": 0, "Cost": 250, "TargetID": 0 }, "21": { "DisplayName": "Weapon Lasersight", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/8/8e/Weapon_Lasersight_icon.png", "ID": 516382256, "Amount": 1, "Skin": 0, "Cost": 150, "TargetID": 0 }, "22": { "DisplayName": "Silencer", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/9/9f/Silencer_icon.png", "ID": 1213686767, "Amount": 1, "Skin": 0, "Cost": 100, "TargetID": 0 }, "23": { "DisplayName": "Weapon Flashlight", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/0/0d/Weapon_Flashlight_icon.png", "ID": 1229879204, "Amount": 1, "Skin": 0, "Cost": 200, "TargetID": 0 } "24": { "DisplayName": "5.56 Rifle Ammo", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/4/49/5.56_Rifle_Ammo_icon.png", "ID": 815896488, "Amount": 100, "Skin": 0, "Cost": 80, "TargetID": 0 }, "25": { "DisplayName": "HV Pistol Ammo", "URL": "http://vignette4.wikia.nocookie.net/play-rust/images/e/e5/HV_Pistol_Ammo_icon.png", "ID": -422893115, "Amount": 100, "Skin": 0, "Cost": 80, "TargetID": 0 }, "25": { "DisplayName": "Code Lock", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/0/0c/Code_Lock_icon.png", "ID": -975723312, "Amount": 1, "Skin": 0, "Cost": 350, "TargetID": 0 }, "26": { "DisplayName": "Armored Double Door", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/c/c1/Armored_Double_Door_icon.png", "ID": -933236257, "Amount": 1, "Skin": 0, "Cost": 500, "TargetID": 0 }, "27": { "DisplayName": "Armored Door", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/b/bc/Armored_Door_icon.png", "ID": -1571725662, "Amount": 1, "Skin": 0, "Cost": 250, "TargetID": 0 }, "28": { "DisplayName": "Tool Cupboard", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/5/57/Tool_Cupboard_icon.png", "ID": 1257201758, "Amount": 1, "Skin": 0, "Cost": 100, "TargetID": 0 }, "29": { "DisplayName": "High External Stone Gate", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/8/85/High_External_Stone_Gate_icon.png", "ID": -1779401418, "Amount": 1, "Skin": 0, "Cost": 450, "TargetID": 0 }, "30": { "DisplayName": "Reinforced Window Bars", "URL": "http://vignette1.wikia.nocookie.net/play-rust/images/e/eb/Reinforced_Window_Bars_icon.png", "ID": -402507101, "Amount": 1, "Skin": 0, "Cost": 80, "TargetID": 0 }, "31": { "DisplayName": "Hunting Bow", "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/2/25/Hunting_Bow_icon.png", "ID": -853695669, "Amount": 1, "Skin": 0, "Cost": 10, "TargetID": 0 }, "32": { "DisplayName": "High Velocity Arrow", "URL": "http://vignette3.wikia.nocookie.net/play-rust/images/e/e5/High_Velocity_Arrow_icon.png", "ID": -1280058093, "Amount": 1, "Skin": 0, "Cost": 5, "TargetID": 0 }, "33": { "DisplayName": "Low Grade Fuel", "URL": "http://vignette4.wikia.nocookie.net/play-rust/images/2/26/Low_Grade_Fuel_icon.png", "ID": 28178745, "Amount": 100, "Skin": 0, "Cost": 300, "TargetID": 0 } }, "RewardCommands": {} }
-
I have a problem...
I set the ServerRewards GUI only for NPCs...
I set one NPC as NPCLOOT and only SELLS, then ppl can only sell in that NPC,
but when you open/use the Npc the first windows in gui is KITS even though I dont select any Kit.
Its possible to take as first windows only SELL in a SELL NPC ?
My config for that NPC:
Code:"2022712442": { "X": -1687.398, "Z": -1722.102, "ID": 2.0, "NPCID": "2022712442", "isCustom": true, "itemList": [], "kitList": [], "commandList": [], "allowExchange": false, "allowTransfer": false, "allowSales": true