Need Help by Grade Menu (F5, KorioZ-PersonalMenu)

So I need help “fixing” an issue I have. Currently the menu recognizes only the rank title “Boss” and only the grade number “12” as the highest, but I have Jobs where the highest grade is 4 and not named Boss and 29 (also not named Boss. I need it to recognize the highest grade without these two independecies.

Grade.txt (6.5 KB)

Hope you can help me!^^

You can replace

if sourceXPlayer.job.grade_name == 'boss' and sourceXPlayer.job.name == targetXPlayer.job.name then
with
if (sourceXPlayer.job.grade_name == 'boss' or sourceXPlayer.job.grade_name == 'grade4name') and sourceXPlayer.job.name == targetXPlayer.job.name then

or just name your grade 4 to boss