• 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

: 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

bump? I got the same weird symbols
 
Hello problem is in ENCODE text in your file.

In notepad++ > Encode > Encode to ANSI > Paste below code again
Code:
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'] =  '¿',
}

Next > save, but is not working for all emoticons and this is not good solution but working.

If in future I have better solution, maybe I share it ;)

Best Regards, Vultur
 
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
is there any way to create a bar with emoticons to click it already send automatic? without giving enter
 
is there any way to create a bar with emoticons to click it already send automatic? without giving enter
Yeah, you can list all possible emotes inside of some widget as seperated elements, and attach an onClick event that checks which element you clicked then executes g_game.talk("some text") appropriate to what would trigger such an emoji to send. g_game.talk() forces the local player to say something.

Code:
someElement.onClick = function()
    g_game.talk(":D")
end
 
I have problem with this code:

This part is ok...
1.png
but don't see my emoticon on game (only chat)
2.png
So I writes another line like in the tutorial
3.png

And i have a error...
4.png

Whos know why?

EDIT: Ok I found the problem - by accident, I did not replace the new file "verdana-11px-rounded_cp1252"
 
Last edited:
Back
Top