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 /
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
-
Type "callheli" into console to make sure it works, first.
-
-
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.
-
/kit add xpboost
/kit authlevel 2(?) hide false npconly true xp XX
[DOUBLEPOST=1470012255][/DOUBLEPOST] -
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 } ..... }
-
Where are you calling loadimages?
It never works for me unless I do it from RCON. -
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.
-
Hey,
An example is as follows and the site to find address is here.
Click the item you want then copy the address of the larger icon to the top right of the item's page.
"
{
"DisplayName": "1 Supply Signal",
"URL": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106071621",
"ID": -1625468793,
"Amount": 1,
"Skin": 0,
"Cost": 15
}," -
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 pageAttached Files:
-
-
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?
-
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.
-
How do i have to type "loadimages" in the RCON console? Nothing happens when i just write "loadimages" :/
-
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. -
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
and could u give an URL example for any item pls?
-
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. -
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? -
[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?
-
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.