diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/util.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 22da3c1b6..33d071ded 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -880,6 +880,19 @@ function script mercrank { default: return l("Error"); } } +function script academicrank { + switch (ACADEMIC_RANK) { + case 7: return l("Sage"); + case 6: return l("Ph.D"); + case 5: return l("Doctor"); + case 4: return l("Master"); + case 3: return l("Bachelor"); + case 2: return l("Technician"); + case 1: return l("Student"); + case 0: return l("Layman"); + default: return l("Error"); + } +} // alias to readbattleparam(getcharid(3), ?? ) function script battleparam { |