You have a few mistakes in your file that where causing errors here is the fix
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
Attached Files:
Last edited by a moderator: Jan 24, 2017 -
-
Loaded plugin ServerRewards v0.3.9 by k1lly0u
Failed to initialize plugin 'ServerRewards v0.3.9' (JsonReaderException: After parsing a value an unexpected character was encountered: Н. Path 'msgOutRewardsnpc', line 4, position 24.)
Unloaded plugin ServerRewards v0.3.9 by k1lly0u
No previous version to rollback plugin: ServerRewards -
-
Setting this up is extremely frustrating so I want to make it far more simple.
Could someone post a complete list of all itemid's associated to their image along with a zip of all images? This would make everyone's lives much easier. -
-
-
-
looking through most of the pages it would seem apparent to me that the overview could contain a ready made store where they can just tweak the prices or remove stuff they don't want. is the intention to challenge people or make life easier.
the overview has a little example -
The overview explains everything you need just some people are to lazy to read
-
Thanks
Resistance im trying it now and it seems to be working . what was i doing wrong in the json file ? but yeah everything works great . thanks man -
The overview is fantastic unless you want to show images for items. While I'm aware that there is a URL for items images, I'd prefer to show them locally, however it would make sense if all images were available in a zip of some type, or if a function exists that would pull the images from the server directory (if they exist there). There are no clear directions stating how to do this other than manually creating an icon directory and manually downloading each image individually.
It seems strange to me that a plugin as well developed as it is, does not have this capability or that the community is so resistant in explaining/assisting how to "easily" accomplish this.
I do realize that server ownership can be competitive, but my goal here is to make plugins like these easier to configure without unduly burdening the plugin creator. -
Prompt how to make sale of the goods not only for RP but also for Economics?
-
Code:
22:13 [Error] Failed to call hook 'AddPoints' on plugin 'ServerRewards v0.3.9' (DirectoryNotFoundException: Could not find a part of the path "C:\SERVICES\ni408486_2_SHARE\ftproot\rust\server\serverprofile\oxide\logs\ServerRewards - EarntRP_2017-01-26.txt".) 22:13 [Stacktrace] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0 at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0 at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.AddPoints (System.Object userID, Int32 amount) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.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
-
o
Guys it really is easy if you're willing to put in the time. Although I agree a ready made rewards Json would be useful for people just starting out with this plugin. Maybe you can get @Absolut to make his imagestore plugin work with it. It pulls all the default icons automagically for his mailbox plugin. -
I want the commands page to look like the items page, is it possible ?
and, how to add cooldowns to commands ?Last edited by a moderator: Jan 27, 2017 -
@Corrosive. Fine. If you don't want to help save 2-3 hours of work I'll do it and share it here.
-
Looking good @Corrosive I see you have put a lot of work into your server
-
Is there a ready made serverrewards_rewards.json with all items and skins?
-
any help for add point store RP im change all balance economics for rp and not work...
#region Points
private Points Bala;
private Timer PointsUpdater;
public class Balance
{
public int RefreshRate = 3;
public Points(int RefreshRate)
{
this.RefreshRate = RefreshRate;
}
public double GetPoints(string PlayerID)
{
var player = RustCore.FindPlayerByIdString(PlayerID);
if (player == null) return 0;
return (double)(Interface.Oxide.CallHook("StoreRp", player.userID) ?? 0.0);
}
all change balance for Points... and not work any idea? or autor plugin help me please? k1lly0u