diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 24 |
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"); + } +} + |