mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
13 lines
410 B
Lua
13 lines
410 B
Lua
local OPCODE_LANGUAGE = 1
|
|
|
|
function onExtendedOpcode(cid, opcode, buffer)
|
|
if opcode == OPCODE_LANGUAGE then
|
|
-- otclient language
|
|
if buffer == 'en' or buffer == 'pt' then
|
|
-- example, setting player language, because otclient is multi-language...
|
|
-- Player(cid):setStorageValue(SOME_STORAGE_ID, SOME_VALUE)
|
|
end
|
|
else
|
|
-- other opcodes can be ignored, and the server will just work fine...
|
|
end
|
|
end
|