summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-06 14:13:52 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-06 14:13:52 -0300
commit652b92c7050915d164cb4ec8576ded81ddc1257d (patch)
tree47f4795d144de6ba46710c6f0ff0c91d652d698c /npc/functions/util.txt
parent74812206e5fafeeaf5d873c0cd4a6735d918956f (diff)
downloadserverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.gz
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.bz2
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.tar.xz
serverdata-652b92c7050915d164cb4ec8576ded81ddc1257d.zip
"Working" prototype. Incomplete.
This is for @Saulc see and understand what I'm doing, and ~~have a heart attack~~ give me a loving comment.
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 181f02ca0..17cf3fefe 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -338,3 +338,27 @@ function script abizit {
return (MAGIC_EXP/.@base);
}
+
+// Returns, based on a 1-5 range, the title for both thief and merc ranks
+// thiefrank() / mercrank()
+function script thiefrank {
+ switch (THIEF_RANK) {
+ case 5: return l("Bandit Lord");
+ case 4: return l("Assassin");
+ case 3: return l("Rogue");
+ case 2: return l("Bandit");
+ case 1: return l("Thief");
+ default: return l("Error");
+ }
+}
+function script mercrank {
+ switch (MERC_RANK) {
+ case 5: return l("Constable");
+ case 4: return l("Guardian");
+ case 3: return l("Merchant");
+ case 2: return l("Trader");
+ case 1: return l("Fair Person");
+ default: return l("Error");
+ }
+}
+