So, this plugin is basicly made to allow you to adjust the price for research for any item. Also it allows you to customize the speed for every player in game!
You can create as much custom permission as you want.basic examples are included.So, how does the custom permission looks like?
Note - how does the decision works if player has multiply permissions:The cost is chosen by the lowest price. So if with default config the player has all permissions - the cost would be halfed(researchcontrol.gold).The speed is a bit tricky. If the player doesn't have absolute speed, the lowest one is chosen. If one of the players permissions has the absolute speed, the lowest FROM ABSOLUTE chosen.
Keep in mind - these values being generated only once! So the devs changes the price - you have to re-generate your config file (unload the plugin, remove config, load the plugin back) and then change the parameters you need.Default config file:
P.S. The plugin currently uses 2 hooks to do the trick - OnItemResearchStart to modify the speed and OnItemResearch to get the item that is being research. That is kind of workaround, but I will change it as soon as the Oxide team would change the hooks =)The reason it done so, is that in the hook OnItemResearch we got no research table itself, so I have to use both.... wich is kinda.... sad =)
So you may run into the error, wich is tracked and shouldn't affect the game itself. But it would be cool if you woud post it here.
You can create as much custom permission as you want.basic examples are included.So, how does the custom permission looks like?
- Reserach cost modifier - Cost modifier. Set 100 to not change the cost
- Reserach speed modifier - Now this one is a bit tricky. It can work both as the speed for every research ot as a multiplier for the items speed.
- The speed is absolute value, not modifier - this one determinies how the option below works. If set to true the speed would be absolute, and items speed would do nothing here. If set to false this would be devided by 100 and multiplied by the items speed.
Note - how does the decision works if player has multiply permissions:The cost is chosen by the lowest price. So if with default config the player has all permissions - the cost would be halfed(researchcontrol.gold).The speed is a bit tricky. If the player doesn't have absolute speed, the lowest one is chosen. If one of the players permissions has the absolute speed, the lowest FROM ABSOLUTE chosen.
Keep in mind - these values being generated only once! So the devs changes the price - you have to re-generate your config file (unload the plugin, remove config, load the plugin back) and then change the parameters you need.Default config file:
P.S. The plugin currently uses 2 hooks to do the trick - OnItemResearchStart to modify the speed and OnItemResearch to get the item that is being research. That is kind of workaround, but I will change it as soon as the Oxide team would change the hooks =)The reason it done so, is that in the hook OnItemResearch we got no research table itself, so I have to use both.... wich is kinda.... sad =)
So you may run into the error, wich is tracked and shouldn't affect the game itself. But it would be cool if you woud post it here.