Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional permission at a certain job level #1825

Open
ElLlelouch opened this issue Sep 28, 2024 · 1 comment
Open

Conditional permission at a certain job level #1825

ElLlelouch opened this issue Sep 28, 2024 · 1 comment

Comments

@ElLlelouch
Copy link

Hello, I have an issue about Jobs' conditions to give temporary permissions once a certain level is obtained...

CONFIG SECTION (DELETE IF NOT RELEVANT):

conditions:
buch:
requires:
- j:Bucheron-40
- p:tier.jobs2
perform:
- p:jobs.join.Menuisier-true

I have players that have the first job "Bucheron", which is required to be lvl 40 to take "Menuisier". Except they can't.
After some tests I saw that they needed their secondary job (Miner, for my test subject) to get to lvl 40 to take "Menuisier".

May someone help me about this?
(Same goes for other jobs with 2 prerequisites, but not for all of they jobs I have on server...)

[Zrips] : Looking at your setup, you have extra ' at the end of permission, so you will either need to add another ` at the start or remove it to make this as a valid line

[ElLlelouch] : @Zrips it was just my discord copy-paste, there is no ' in my config
and it's doing this with multiple jobs conditons, not just this one

conditions:
menuisier:
requires:

  • j:Bucheron-40
  • p:tier.jobs2
    perform:
  • p:jobs.join.Menuisier-true

I know this is a copy of the same issue i already made, 1820, it's just for better clarity if Zrips does not look back into closed issues !

@ElLlelouch
Copy link
Author

ElLlelouch commented Sep 28, 2024

I tried it myself :

  • if i have 2 jobs (here, Miner lvl 1 and Woodcutter lvl 40, i can't join my Woodcrafter job (i checked, i have permission to have 3 jobs.).
  • when i leave miner, it's working fine again : i can join !
  • but here with another test Miner lvl 40, and woodcutter lvl 10 => I CAN JOIN WOODCRAFTER, which is supposed to have the prerequisite woodcutter lvl 40...

Maybe in the levelup-check, there's a mismatch between jobs and levels when giving temporary permissions ?

I tried on some of my other jobs, the problem is the same.
I have a job with 3 prerequisites : Farmer ("Fermier") 60, Fisherman ("Pecheur") 40 and Tanner ("Depeceur") 40.
When all of thoses are complete, nothing is working. but with this repartition : all 3 jobs lvl 60. (I tried with one 60 and other two 40, but it's not working whatever the level 60 is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant