StrangeLoopGames / EcoModKit

Eco Modkit
https://docs.play.eco
69 stars 25 forks source link

GainSpeciality override to create new function in ECO server #58

Open Yberias opened 2 years ago

Yberias commented 2 years ago

Is your feature request related to a problem? Please describe. Not a problem but lack of functionality to override.

Describe the solution you'd like I want to override the GainSpeciality functionality to block players when they want to get speciality from not own professions. (e.g. When someone is a Carpenter and have any carpenter speciality, then he can not take any speciality from other professions like mason etc.)

Describe alternatives you've considered I do it by ECO laws, but when I create 20 - 25 sections then the table a little laggy and creating it are a really time effort.

Additional context I want to create first world/Poland ECO RP server but I want to create more professions and speciality but I need to block users, when some one want to be Carpenter then he should not be any other professions like Mason, Smithing etc. I just want to override this functions which was run when we want to spend a star, and add something like lists or dictionaries to block proffesions/speciality which user can be when take the first speciality.

P.S. One functionality but for me make a huge improvements with RolePlay servers in ECO.