• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Title MOD

dewral

Veteran OT User
Joined
Dec 4, 2019
Messages
344
Solutions
10
Reaction score
357
Hello As you really liked my post with Classc UI for OTCv8 Otclient Classic UI (https://otland.net/threads/otclient-classic-ui.279994/)
I decided to share another content for OTCv8 with you.
Credits to @Avaji
This module allows you to add a title above specific character nickname (GM, GOD, ADMIN) etc.
Client uses this function SetTitle so its only compatible with OTCv8!
Put this in data/mods and enjoy!
I know it's possible to do it from server side but i didn't figure that out yet, when i do ill show the results here :)
Pictures below:
JGwg5jH.png


ANCvZoi.png


Module download: Game_titles
Enjoy!
 

Attachments

  • game_titles.zip
    921 bytes · Views: 214 · VirusTotal
Last edited:
Hello As you really liked my post with Classc UI for OTCv8 Otclient Classic UI (https://otland.net/threads/otclient-classic-ui.279994/)
I decided to share another content for OTCv8 with you.
Credits to @Avaji
This module allows you to add a title above specific character nickname (GM, GOD, ADMIN) etc.
Client uses this function SetTitle so its only compatible with OTCv8!
Put this in data/mods and enjoy!
I know it's possible to do it from server side but i didn't figure that out yet, when i do ill show the results here :)
Pictures below:
JGwg5jH.png


ANCvZoi.png


Module download: Game_titles
Enjoy!


Hello, thanks for the system, I have a question, how can I place more than 1 name with a title?, thanks!
 
Hello As you really liked my post with Classc UI for OTCv8 Otclient Classic UI (https://otland.net/threads/otclient-classic-ui.279994/)
I decided to share another content for OTCv8 with you.
Credits to @Avaji
This module allows you to add a title above specific character nickname (GM, GOD, ADMIN) etc.
Client uses this function SetTitle so its only compatible with OTCv8!
Put this in data/mods and enjoy!
I know it's possible to do it from server side but i didn't figure that out yet, when i do ill show the results here :)
Pictures below:
JGwg5jH.png


ANCvZoi.png


Module download: Game_titles
Enjoy!
Another great contribution @dewral !!! Thanks
 
Hello, thanks for the system, I have a question, how can I place more than 1 name with a title?, thanks!
Just add more people to the playerTitles list
Lua:
local playerTitles = {    ["Player Name"] = {title = "[Title]", color = "#FFFFFF"},
                                ["Player Name 2"] = {title = "[Title]", color = "#FFFFFF"}}
 
Hello As you really liked my post with Classc UI for OTCv8 Otclient Classic UI (https://otland.net/threads/otclient-classic-ui.279994/)
I decided to share another content for OTCv8 with you.
Credits to @Avaji
This module allows you to add a title above specific character nickname (GM, GOD, ADMIN) etc.
Client uses this function SetTitle so its only compatible with OTCv8!
Put this in data/mods and enjoy!
I know it's possible to do it from server side but i didn't figure that out yet, when i do ill show the results here :)
Pictures below:
JGwg5jH.png


ANCvZoi.png


Module download: Game_titles
Enjoy!
I have a question, if I want to put it by Group?
 
I have a question, if I want to put it by Group?
This is only client-side, you'll have to figure it out how to send those titles from server-side.
Didn't tried that tbh.
 
Is it possible to replace font with image?

ANCvZoi.png

For example: putting an image in place of [VIP]
 
invent something

Lua:
invoid Creature::drawInformation



#free dewral ota
 
--removed unused monster level code for you

you have this code? xDDDD


Edit: nvm.
local playerTitles = { ["-"] = {title = "[Admin]", color = "#FF1100"},
["Player Name 2"] = {title = "[Title]", color = "#FFFFFF"}}

local monsterTitles = { ["Troll"] = {title = "lv 10", color = "#fff900"},
["Troll Warrior"] = {title = "lv 15", color = "#fff900"}}
local titleFont = "verdana-11px-rounded"
function init()

connect(Creature, {
onAppear = updateTitle,
})
end

function terminate()

disconnect(Creature, {
onAppear = updateTitle,
})
end

function updateTitle(creature)
local name = creature:getName()
--removed unused monster level code for you
if creature:isPlayer() then
if playerTitles[name] then
creature:setTitle(playerTitles[name].title, titleFont, playerTitles[name].color)
end
end
if creature:isMonster() then
if monsterTitles[name] then
creature:setTitle(monsterTitles[name].title, titleFont, monsterTitles[name].color)
end
end

end
1699438155380.png
 
Last edited:
C++:
ERROR: Lua exception: /game_titles/titles.lua:22: attempt to call method 'setTitle' (a nil value)
stack traceback:
    [C]: in function 'setTitle'
    /game_titles/titles.lua:22: in function </game_titles/titles.lua:17>
ERROR: protected lua call failed: LUA ERROR:
/game_titles/titles.lua:22: attempt to call method 'setTitle' (a nil value)
stack traceback:
    [C]: in function 'setTitle'
    /game_titles/titles.lua:22: in function </game_titles/titles.lua:17>

i get this error
Post automatically merged:

i use Mehah OTC :(. this is for otcv8
Post automatically merged:

I added function from otcv8 to mehah but i still dont have title :(
Post automatically merged:

dont have error in terminal ...
 
Last edited:
Back
Top