1local playerTitles = {
2
3["[Dev]Mapper"] = {title = "[Lord Game Master]", color = "#FFA500"}}
4
5local npcTitles = {
6["Eryn"] = {title = "[Maestro Misionero]", color = "#f5c367"},
7["Armin"] = {title = "[Ancestral Task]", color = "#677ef5"},
8["Magnus Blackwater"] = {title = "[Captain of Ships]", color = "#67caf5"},
9["Shipwright Trader"] = {title = "[Ship Parts]", color = "#a68556"},
10["Alaistar"] = {title = "[Potion-Ressources]", color = "#e5f280"},
11["Alesar"] = {title = "[Djinn Seller]", color = "#e5f280"},
12["Alexander"] = {title = "[Magician Shop]", color = "#e5f280"},
13["Alice"] = {title = "[Blessing Seller]", color = "#e5f280"},
14["Apotroph"] = {title = "[Mission]", color = "#67caf5"},
15["Asnarus"] = {title = "[Refill Shop]", color = "#8e2b99"},
16["Banker"] = {title = "[Bank]", color = "#e5f280"},
17["Benjamin"] = {title = "[Postman]", color = "#e5f280"},
18["Bonifacius"] = {title = "[Food Seller]", color = "#e5f280"},
19["Captain Bluebear"] = {title = "[Boat Captain]", color = "#67caf5"},
20["Captain Breezelda"] = {title = "[Boat Captain]", color = "#67caf5"},
21["Captain Fearless"] = {title = "[Boat Captain]", color = "#67caf5"},
22["Captain Gulliver"] = {title = "[Boat Captain]", color = "#67caf5"},
23["Captain Kurt"] = {title = "[Boat Captain]", color = "#67caf5"},
24["Captain Seagull"] = {title = "[Boat Captain]", color = "#67caf5"},
25["Captain Seahorse"] = {title = "[Boat Captain]", color = "#67caf5"},
26["Captain Sinbeard"] = {title = "[Boat Captain]", color = "#67caf5"},
27["Captain Snake"] = {title = "[Boat Captain]", color = "#67caf5"},
28["Captain Thief"] = {title = "[Boat Captain]", color = "#67caf5"},
29["Captain Tiberius"] = {title = "[Boat Captain]", color = "#67caf5"},
30["Captain Waverider"] = {title = "[Boat Captain]", color = "#67caf5"},
31["Captain Wild"] = {title = "[Boat Captain]", color = "#67caf5"},
32["Cledwyn"] = {title = "[Silver Token]", color = "#c4c4c4"},
33["Coltrayne"] = {title = "[Equipment Shop]", color = "#946d3e"},
34["Edala"] = {title = "[Blessing Seller]", color = "#e5f280"},
35["Elyotrope"] = {title = "[Minner]", color = "#945e1c"},
36["Elyria"] = {title = "[Herbalist]", color = "#2edb56"},
37["Eremo"] = {title = "[Blessing Seller]", color = "#e5f280"},
38["Eruaran"] = {title = "[Umbral Creation]", color = "#dbbe2e"},
39["Esrik"] = {title = "[Equipment Shop]", color = "#946d3e"},
40["Estherya"] = {title = "[Nightmare Coins]", color = "#fc3e21"},
41["Feanor"] = {title = "[Tools Shop]", color = "#66d1a3"},
42["Frodo"] = {title = "[Food Seller]", color = "#e5f280"},
43["Gorn"] = {title = "[Tools Shop]", color = "#66d1a3"},
44["Hamish"] = {title = "[Refill Shop]", color = "#8e2b99"},
45["Hanna"] = {title = "[Gems Shop]", color = "#00ed63"},
46["Haroun"] = {title = "[Djinn Seller]", color = "#e5f280"},
47["Henricus"] = {title = "[Blessing Seller]", color = "#e5f280"},
48["Humphrey"] = {title = "[Blessing Seller]", color = "#e5f280"},
49["Inigo"] = {title = "[Ressource Shop]", color = "#ffd080"},
50["Kawill"] = {title = "[Blessing Seller]", color = "#e5f280"},
51["King Tibianus"] = {title = "[Promotion]", color = "#374d52"},
52["Lailene"] = {title = "[Equipment Shop]", color = "#946d3e"},
53["Librarian"] = {title = "[Passage]", color = "#ced993"},
54["Nah'Bob"] = {title = "[Djinn Seller]", color = "#e5f280"},
55["Norf"] = {title = "[Blessing Seller]", color = "#e5f280"},
56["Peggy"] = {title = "[House Furniture]", color = "#ff7aca"},
57["Plunderpurse"] = {title = "[Bank]", color = "#e5f280"},
58["Pydar"] = {title = "[Blessing Seller]", color = "#e5f280"},
59["Rashid"] = {title = "[Ressource Shop]", color = "#f5c367"},
60["Richard"] = {title = "[Refill Shop]", color = "#8e2b99"},
61["Riona"] = {title = "[Tools Shop]", color = "#66d1a3"},
62["Rock In A Hard Place"] = {title = "[Equipment Shop]", color = "#946d3e"},
63["Rostock"] = {title = "[Woodcutter's]", color = "#855309"},
64["Royal Guard"] = {title = "[City Guard]", color = "#3d3a36"},
65["Sam"] = {title = "[Equipment Shop]", color = "#946d3e"},
66["Taerar"] = {title = "[Azure Seller]", color = "#3694ff"},
67["Tamoril"] = {title = "[Gems Shop]", color = "#00ed63"},
68["Telas"] = {title = "[Ressource Shop]", color = "#f5c367"},
69["The Oracle"] = {title = "[Vocation]", color = "#57261d"},
70["Tyoric"] = {title = "[Refill Shop]", color = "#8e2b99"},
71["Xodet"] = {title = "[Refill Shop]", color = "#8e2b99"},
72["Yaman"] = {title = "[Equipment Shop]", color = "#946d3e"},
73["Yasir"] = {title = "[Ressource Shop]", color = "#f5c367"},
74["Yonan"] = {title = "[Regalia of Suon]", color = "#c2a49f"},
75["Shiny Bunny"] = {title = "[Easter Egg Event]", color = "#c0ff5c"},
76["Buy All"] = {title = "[Merchant]", color = "#f5c367"},
77["Naji"] = {title = "[Banker]", color = "#f5c367"},
78["Galuna"] = {title = "[Paladin Refiller]", color = "#f5c367"},
79["Jeweler"] = {title = "[Collars and ring seller]", color = "#f5c367"},
80["Apothecary"] = {title = "[Potions and runes]", color = "#f5c367"},
81["Fletcher"] = {title = "[Paladin Refiller]", color = "#f5c367"},
82}
83
84local creatureTitles = {
85["Vorondor The Eternal Flames"] = {title = "[Worldboss]", color = "#ff000d"},
86["Aquatic Overlord Thalassa"] = {title = "[Worldboss]", color = "#ff000d"},
87["Azazel The Infernal Seraph"] = {title = "[Worldboss]", color = "#ff000d"},
88["Drak'thul The Void Sovereign"] = {title = "[Worldboss]", color = "#ff000d"},
89["Dreadbone The Eternal"] = {title = "[Worldboss]", color = "#ff000d"},
90["Dreadscale The Ancient"] = {title = "[Worldboss]", color = "#ff000d"},
91["Gor'gul The Frienzied"] = {title = "[Worldboss]", color = "#ff000d"},
92["Mortis The Sovereign"] = {title = "[Worldboss]", color = "#ff000d"},
93["Thalador The Stormbringer"] = {title = "[Worldboss]", color = "#ff000d"},
94["Tymagron The Earthshaker"] = {title = "[Worldboss]", color = "#ff000d"},
95
96
97}
98
99
100local titleFont = "verdana-11px-rounded"
101function init()
102
103 connect(Creature, {
104 onAppear = updateTitle,
105 })
106end
107
108function terminate()
109
110disconnect(Creature, {
111 onAppear = updateTitle,
112 })
113end
114
115function updateTitle(creature)
116 local name = creature:getName()
117 if creature:isPlayer() then
118 if playerTitles[name] then
119 creature:setTitle(playerTitles[name].title, titleFont, playerTitles[name].color)
120 end
121 elseif creature:isNpc() then
122 if npcTitles[name] then
123 creature:setTitle(npcTitles[name].title, titleFont, npcTitles[name].color)
124 end
125
126 elseif creature:isCreature() then
127 if creatureTitles[name] then
128 creature:setTitle(creatureTitles[name].title, titleFont, creatureTitles[name].color)
129 end
130 end
131end
132