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
after i add some icon - u can use icon of fb, yahoo... , i use icon of Zalo (chat app in my country) look like
after change it to (i remove cyan color in it)
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
Other, i have try with console.lua in modules
add it in console.lua
add this code below "function applyMessagePrefixies(name, level, message)" and "function onTalk(name, level, mode, message, channelId, creaturePos)"
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
Link mod: Here
Sr for my bad english, hope u like this
after i add some icon - u can use icon of fb, yahoo... , i use icon of Zalo (chat app in my country) look like
after change it to (i remove cyan color in it)
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
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
Link mod: Here
Sr for my bad english, hope u like this