• 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!

[MOD] Emoticon in Tibia, more & more

Shiko Erye

LUA - Scripter
Joined
Dec 7, 2010
Messages
106
Reaction score
12
In OTClient i see in font have more symbol we don't use like cyan screen
ECPG0y0.png

after i add some icon - u can use icon of fb, yahoo... , i use icon of Zalo (chat app in my country) look like
Ix8YN86.png

after change it to (i remove cyan color in it)
78wk3tf.png

You must change file: verdana-11px-antialised_cp1252.png & verdana-11px-rounded_cp1252.png
In game to use icon u can write it by use alt+0128-0159, u can add more icon by search symbol keystroke in character map (run->charmap)
In game
wYPHeeC.png

Other, i have try with console.lua in modules
add it in console.lua
Code:
function getStringIcon(str)
local icon_range = {
['01'] = '€', ['02'] = '', ['03'] = '‚', ['04'] = 'ƒ', ['05'] = '„',
['06'] = '…', ['07'] = '†', ['08'] = '‡', ['09'] = 'ˆ', ['10'] = '‰',
['11'] = 'Š', ['12'] = '‹', ['13'] = 'Œ', ['14'] = '', ['15'] = 'Ž',
['16'] = '', ['17'] = '', ['18'] = '‘', ['19'] = '’', ['20'] = '“',
['21'] = '”', ['22'] = '•', ['23'] = '–', ['24'] = '—', ['25'] = '˜',
['26'] = '™', ['27'] = 'š', ['28'] = '›', ['29'] = 'œ', ['30'] = '',
['31'] = 'ž', ['32'] = 'Ÿ', ['33'] = '¯', ['34'] = '°', ['35'] = '±',
['36'] = '²', ['37'] = '³', ['38'] = '´', ['39'] = 'º', ['40'] =  '¿',
}

if str == '' then
return str
end
local word = string.explode(str, ' ')
local newstr = ''
for i = 1, #word do
    if word[i]:sub(1, 1) == '#' and icon_range[word[i]:sub(2, 3)] and word[i]:sub(4, 4) == '' then
        newstr = newstr..icon_range[word[i]:sub(2, 3)]..' '
    else
        newstr = newstr..word[i]..' '
    end
end
return newstr
end

add this code below "function applyMessagePrefixies(name, level, message)" and "function onTalk(name, level, mode, message, channelId, creaturePos)"
Code:
message = getStringIcon(message)

now in game u can write #01 - #40, don't need use alt + number...
Also, i make this mod for player, to know number of icon
pt1hten.png

Link mod: Here
Sr for my bad english, hope u like this
 
wow this is really nice!! I should really stsart looking into otclient.. looks good.. Do you know if i can sue it to play 10.76? or is it set on somthing else?
 
Someone can give me reupload to normal hosting without .... download by fb, google+ etc?
 
In OTClient i see in font have more symbol we don't use like cyan screen
ECPG0y0.png

after i add some icon - u can use icon of fb, yahoo... , i use icon of Zalo (chat app in my country) look like
Ix8YN86.png

after change it to (i remove cyan color in it)
78wk3tf.png

You must change file: verdana-11px-antialised_cp1252.png & verdana-11px-rounded_cp1252.png
In game to use icon u can write it by use alt+0128-0159, u can add more icon by search symbol keystroke in character map (run->charmap)
In game
wYPHeeC.png

Other, i have try with console.lua in modules
add it in console.lua
Code:
function getStringIcon(str)
local icon_range = {
['01'] = '€', ['02'] = '', ['03'] = '‚', ['04'] = 'ƒ', ['05'] = '„',
['06'] = '…', ['07'] = '†', ['08'] = '‡', ['09'] = 'ˆ', ['10'] = '‰',
['11'] = 'Š', ['12'] = '‹', ['13'] = 'Œ', ['14'] = '', ['15'] = 'Ž',
['16'] = '', ['17'] = '', ['18'] = '‘', ['19'] = '’', ['20'] = '“',
['21'] = '”', ['22'] = '•', ['23'] = '–', ['24'] = '—', ['25'] = '˜',
['26'] = '™', ['27'] = 'š', ['28'] = '›', ['29'] = 'œ', ['30'] = '',
['31'] = 'ž', ['32'] = 'Ÿ', ['33'] = '¯', ['34'] = '°', ['35'] = '±',
['36'] = '²', ['37'] = '³', ['38'] = '´', ['39'] = 'º', ['40'] =  '¿',
}

if str == '' then
return str
end
local word = string.explode(str, ' ')
local newstr = ''
for i = 1, #word do
    if word[i]:sub(1, 1) == '#' and icon_range[word[i]:sub(2, 3)] and word[i]:sub(4, 4) == '' then
        newstr = newstr..icon_range[word[i]:sub(2, 3)]..' '
    else
        newstr = newstr..word[i]..' '
    end
end
return newstr
end

add this code below "function applyMessagePrefixies(name, level, message)" and "function onTalk(name, level, mode, message, channelId, creaturePos)"
Code:
message = getStringIcon(message)

now in game u can write #01 - #40, don't need use alt + number...
Also, i make this mod for player, to know number of icon
pt1hten.png

Link mod: Here
Sr for my bad english, hope u like this
You could put the fonts to download ?
 
Yes, and place it to your fonts directory in OTC folder.
 
Thanks for good idea~! :D

I wrote my own version of this 'system', it supports even 1000 emoticons :p
VYkQf24.png


No need to edit fonts.
Just add 'use-emoticons: true' to otfont ^^
 
It doesn't works for me :(

Appears the emoticons and also weird signs...

What you mean about no needing to edit fonts @Karpio ?
 
this has to be the most stupidest thing I have ever seen.
 
could but anyway it's good contribution i don't think apport something good to the community should be denominated stupid
 
: verdana-11px-antialised_cp1252.png & verdana-11px-rounded_cp1252.png

can anyone uploase those edited files?
it works for me but my letter before to be written seems to be blurry
also icon comes with weirds symbols


regards
 
Last edited:
Back
Top