UNPKG

ggejs

Version:

A powerful JavaScript library for interacting with the server of Goodgame Empire: Four Kingdoms

14 lines 608 B
module.exports.name = "llsw"; /** * @param {Socket} socket * @param {number} listType * @param {string} scoreId format: `gameId-networkId-serverInstanceId-playerId` * @param {number} maxResults * @param {number} leagueTypeId Bracket based on level, starting with 1 */ module.exports.execute = function (socket, listType, scoreId, maxResults, leagueTypeId) { const C2SListLeaderboardScoresWindowVO = { getCmdId: "llsw", params: {LT: listType, SI: scoreId, M: maxResults, LID: leagueTypeId} }; require('../data').sendCommandVO(socket, C2SListLeaderboardScoresWindowVO); }