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

Lua [TFS 1.2] Party finder

elnelson

Lunaria World Dev
Joined
Jun 20, 2009
Messages
580
Solutions
2
Reaction score
58
Location
México
Good afternoon, otlanders.

I was guessing if it is possible to develop a party finder via Channels.

1685482700568.png

Something like this, when u click on the channel, it sends a message to the party leader, if pt leader says !accept, player will join party.

im using TFS 1.2
 
Im trying to create it from OTC modules,
Lua:
partyTables = {}
function onExtendedOpcode(player, opcode, buffer)
    if opcode == 14 then
        player:sendExtendedOpcode(15, player:getId())
        table.insert(partyTables, {name = player:getName(), lvl = player:getLevel(), voc = player:getVocation():getName()})
        for v,k in ipairs(partyTables) do
        print(""..v.." - "..k.name.." ("..k.lvl..") "..k.voc.." ")
        end
    end
    return true
end

Code:
function partyFind()
  g_game.talk('Find Party')
  local protocolGame = g_game.getProtocolGame()
  protocolGame:sendExtendedOpcode(14, 1)
  return true
end

I can insert a row to a table using OTC, (level, voc, name)


But now i need to index in otclient the registered users like this:

1686514216212.png

Does anyone could help me achieve this?
 
Back
Top