supermortaliz
Member
- Joined
- Jan 26, 2014
- Messages
- 76
- Solutions
- 6
- Reaction score
- 12
i send array but ExtendOpcode Converting array to string how i convert again in array?
Exm to call in otclient:
playersT["Mihawk"] = {title = "[Admin]"}
or
playersT["Mihawk"].title = [Admin]
or maybe send all normal string and after i separate all with string.sub?
Server ExtendOpCode
OTclient ExtendOpcode
Exm to call in otclient:
playersT["Mihawk"] = {title = "[Admin]"}
or
playersT["Mihawk"].title = [Admin]
or maybe send all normal string and after i separate all with string.sub?
Server ExtendOpCode
Lua:
table.insert(content, {['Mihawk'] = {title = "[Admin]"}})
doSendPlayerExtendedOpcode(cid, 55, json.encode(content))
OTclient ExtendOpcode
Lua:
function updateTitle(creature)
local protocolGame = g_game.getProtocolGame()
if protocolGame then
protocolGame:sendExtendedOpcode(55)
playersT = Opcodetitles
local name = creature:getName()
if creature:isPlayer() then
if playersT[name] then
creature:setTitle(playersT[name].title, titleFont, color)
end
end
end
end