summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-28 22:51:49 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-28 22:51:49 -0300
commitf5889550ad52267acba5bd251b7f95b684a60cec (patch)
treedf62059eb6e8b3caba08f15114f59a2765a0d704 /npc
parentbd5fa6439b47da623a0536817e85f6e77cdb6605 (diff)
downloadserverdata-f5889550ad52267acba5bd251b7f95b684a60cec.tar.gz
serverdata-f5889550ad52267acba5bd251b7f95b684a60cec.tar.bz2
serverdata-f5889550ad52267acba5bd251b7f95b684a60cec.tar.xz
serverdata-f5889550ad52267acba5bd251b7f95b684a60cec.zip
Initial assignment for academic titulation.
Sources were primarily wiki and Transifex.
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