From f5889550ad52267acba5bd251b7f95b684a60cec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 28 Dec 2020 22:51:49 -0300 Subject: Initial assignment for academic titulation. Sources were primarily wiki and Transifex. --- npc/functions/clientversion.txt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'npc/functions/clientversion.txt') 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 -- cgit v1.2.3-60-g2f50