summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/clientversion.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 01ffc1ee3..cde5a89a5 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -999,6 +999,45 @@ function script clientupdater {
callfunc("ReturnTown");
}
}
+ // Assign the initial academic titles
+ if (strcharinfo(0) == "Jesus Saves")
+ ACADEMIC_RANK=ACADEMIC_GM;
+ else if (strcharinfo(0) == "Saulc GM")
+ ACADEMIC_RANK=ACADEMIC_GM;
+ else if (strcharinfo(0) == "LawnCable")
+ ACADEMIC_RANK=ACADEMIC_BACHELOR;
+ else if (strcharinfo(0) == "Kolchak")
+ ACADEMIC_RANK=ACADEMIC_TECHNIC;
+ else if (strcharinfo(0) == "dangerDuck")
+ ACADEMIC_RANK=ACADEMIC_TECHNIC;
+ else if (strcharinfo(0) == "Livio")
+ ACADEMIC_RANK=ACADEMIC_TECHNIC;
+ else if (strcharinfo(0) == "Arthur")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+ else if (strcharinfo(0) == "Mathias Cronqvist")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+ else if (strcharinfo(0) == "manatauro")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+ else if (strcharinfo(0) == "GoNzO")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+ else if (strcharinfo(0) == "YuckFou")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+ else if (strcharinfo(0) == "Xanthem")
+ ACADEMIC_RANK=ACADEMIC_STUDENT;
+
+ if (ACADEMIC_RANK != ACADEMIC_LAYMAN) {
+ // Select a benefactor
+ .@benefactor$=rand_sponsor();
+ // Inform yourself
+ dispbottom l("You received the %s title from %s.",
+ academicrank(), .@benefactor$);
+ // Inform everyone
+ kamibroadcast(sprintf("%s has been granted the title of %s. Thank %s!",
+ strcharinfo(0), academicrank(), .@benefactor$));
+ // Log in a special log file as well
+ logmes(sprintf("%s has been granted the title of %s.",
+ strcharinfo(0), academicrank()));
+ }
}
// :// End of Regular Update System