diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-31 10:33:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-31 10:33:28 -0300 |
commit | 1280cfdadb38c0b286fabf47aaa97587d29b126f (patch) | |
tree | ffc75f8df1ad96538ff94779aec6ba59d0bee616 /npc | |
parent | 9440fc85a916712f89a25299019e5b0a1cf32bb5 (diff) | |
download | serverdata-1280cfdadb38c0b286fabf47aaa97587d29b126f.tar.gz serverdata-1280cfdadb38c0b286fabf47aaa97587d29b126f.tar.bz2 serverdata-1280cfdadb38c0b286fabf47aaa97587d29b126f.tar.xz serverdata-1280cfdadb38c0b286fabf47aaa97587d29b126f.zip |
Preparatives for Scholar rank
Diffstat (limited to 'npc')
-rw-r--r-- | npc/027-0/enrique.txt | 8 | ||||
-rw-r--r-- | npc/functions/util.txt | 13 |
2 files changed, 20 insertions, 1 deletions
diff --git a/npc/027-0/enrique.txt b/npc/027-0/enrique.txt index f39ae5409..52189c6e3 100644 --- a/npc/027-0/enrique.txt +++ b/npc/027-0/enrique.txt @@ -7,6 +7,7 @@ 027-0,46,25,0 script Enrique NPC_BLACKALCHEMIST,{ mesn; mesq l("Hello. I am Enrique, headmaster of The Academy."); + mesc l("Your current scholar rank: %s", academicrank()); if (!MAGIC_LVL) close; do @@ -16,7 +17,8 @@ l("Thanks!"), l("What is the Academy?"), l("What are Magic Skill Points?"), - l("What are Research Points"); + l("What are Research Points"), + l("What is the Scholar Rank?"); mes ""; switch (@menu) { case 1: @@ -58,6 +60,10 @@ mesn; mesq l("It is something not yet fully implemented."); break; + case 5: + mesn; + mesq l("It is something not yet fully implemented."); + break; } } while (@menu != 1); close; 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 { |