From 1280cfdadb38c0b286fabf47aaa97587d29b126f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Jul 2020 10:33:28 -0300 Subject: Preparatives for Scholar rank --- npc/027-0/enrique.txt | 8 +++++++- npc/functions/util.txt | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'npc') 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 { -- cgit v1.2.3-60-g2f50