I was wondering how could I grant a user an upgraded title command having after a user bought a title upgrade from Server Rewards plugin. There is a section within the plugin lets you initiate a command, and I want when a user purchases it, it changes their original title from Peasant -> Player through another plugin Better Chat.
Here is what I have within the data file.
"commands": {
"Peasant Title": {
"displayName": "Peasant Title",
"description": "Set your title to have a [Peasant]!",
"iconName": null,
"commands": [
"chat user add (this is the part where I suppose to use an actual player name or 64 steam ID) peasant"
],
"cost": 10000
}
ServerRewards
Moved
Total Downloads: 14,028 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
Hello,
How to make a command spawn a horse in front of the person who has just paid?
The $ player.id or $ player.name do not seem to work.
Code:"commands": { "Spawn a Horse": { "displayName": "Spawn a Horse", "description": "Horse", "iconName": "http://9.png", "commands": [ "spawn horse $player.id" ], "cost": 100 }
-
How to delete the message with each connection?
"MsgOutRewards1" -
Hello
kit list return my kit => ok (kit for test with npconly true)
add a npc, i'm looking him
Code:/rewards add kit Basic Basic 250
Code:You have added the kit Basic, available for 150 rp
edit: Solved...Last edited by a moderator: May 28, 2018 -
How would i save my shop list thru wipes? so tired of adding items every time
-
Is there any way for wiping everyone's Reward Points at once, without having to remove everyone's reward points individually?
-
-
@k1lly0u Could you please add "Cooldown" feature? I want to add some console commands like "callheli $player.id" but I need a cooldown for it. So player can't spam it. (I can limit helicopters on the map to 1 but, you know what I mean. A cooldown feature would be awesome for any other thing)
-
Server rewards is no longer working.
Code:(21:44:22) |Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.4.64' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0 at Oxide.Plugins.ServerRewards+UIManager.AddUI (BasePlayer player, Oxide.Plugins.ServerRewards+UIPanel type, Oxide.Plugins.ServerRewards+Category subType, System.Int32 pageNumber, System.String npcId) [0x0011d] in <8c0ba4a7e12a460692e6f5c3adaf8d3e>:0 at Oxide.Plugins.ServerRewards+UIManager.SwitchElement (BasePlayer player, Oxide.Plugins.ServerRewards+UIPanel type, Oxide.Plugins.ServerRewards+Category subType, System.Int32 pageNumber, System.String npcId) [0x00008] in <8c0ba4a7e12a460692e6f5c3adaf8d3e>:0 at Oxide.Plugins.ServerRewards.cmdChangeElement (ConsoleSystem+Arg arg) [0x00138] in <8c0ba4a7e12a460692e6f5c3adaf8d3e>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fe2] in <8c0ba4a7e12a460692e6f5c3adaf8d3e>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc1c06ce0ebd4145b07f6c3438d70a62>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <901ba4905e044f67b6e6ad4ce05063c4>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <901ba4905e044f67b6e6ad4ce05063c4>:0
Attached Files:
-
-
k1lly0u updated ServerRewards with a new update entry:
0.4.65
-
Hey killy0u im getting this error when i reload the plugin.
Code:18:31 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.4.65' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0 at Oxide.Plugins.ServerRewards.GetKitContents (System.String kitname) [0x000d9] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.CreateKitsElement (System.Collections.Generic.List`1[T] kits, System.Int32 page, System.Boolean pageUp, System.Boolean pageDown, System.String npcId) [0x001b2] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.CreateKitsUI (System.String npcId, Oxide.Plugins.ServerRewards+NPCData+NPCInfo npcInfo) [0x00107] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.CreateNewElement (System.String npcId, Oxide.Plugins.ServerRewards+NPCData+NPCInfo info) [0x00022] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.CreateAllElements () [0x00064] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x000e5] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x016dc] in <a267aa824bd24f17a7a066a88e9dd600>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <7dd61d9d32c04619a5705636c6735256>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <901ba4905e044f67b6e6ad4ce05063c4>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <901ba4905e044f67b6e6ad4ce05063c4>:0
-
Wulf Community Admin
-
-
Wulf Community Admin
-
@k1lly0u is there a way to change the name of the currency?
-
hi, kits did have an update, and now seems to be working as normal, serverrewards loads, and opens, but only the name tabs show up at top of screen, getting allot of errors on the cmd window for the server when serverrewards is being opened.
-
@Zoron Turn off Kits tab and turn off 'Show kit contents' as well, fixed my errors, obviously you wont be able to use the kits tab until kits gets updated to accomodate
-
hey guys ever since the update npc stores have to be reapplied every time i restart the server. Is there a way to fix this so i dont have to type /srnpc loot on my npcs e v e r y t i m e i restart?
-
Code:
Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.4.65' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0 at Oxide.Plugins.ServerRewards+UIManager.AddUI (BasePlayer player, Oxide.Plugins.ServerRewards+UIPanel type, Oxide.Plugins.ServerRewards+Category subType, System.Int32 pageNumber, System.String npcId) [0x0011d] in <a679386718f3417dba23331d4d20baaa>:0 at Oxide.Plugins.ServerRewards+UIManager.SwitchElement (BasePlayer player, Oxide.Plugins.ServerRewards+UIPanel type, Oxide.Plugins.ServerRewards+Category subType, System.Int32 pageNumber, System.String npcId) [0x00008] in <a679386718f3417dba23331d4d20baaa>:0 at Oxide.Plugins.ServerRewards.cmdChangeElement (ConsoleSystem+Arg arg) [0x00138] in <a679386718f3417dba23331d4d20baaa>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fe2] in <a679386718f3417dba23331d4d20baaa>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <17b9f46063fe4ac9ae4a1000712647ce>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
Last edited by a moderator: Jun 10, 2018