InnerProto.lua 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389
  1. ---------------------logic同world通信的协议定义-----------------------
  2. ---初始hello
  3. LW_HELLO = {
  4. {"svrIndex", "int"},
  5. }
  6. LW_DISCONNECT = {}
  7. LW_HEARTBEAT = {
  8. {"svrIndexData", "table"},
  9. }
  10. LW_MOZHU_QUERY = {
  11. {"uuid", "string"},
  12. {"unionUuid", "string"},
  13. }
  14. WL_MOZHU_QUERY = {
  15. {"uuid", "string"},
  16. {"myRank", "int"},
  17. {"roleRank", "table"},
  18. {"unionRank", "table"},
  19. {"info", "table"},
  20. }
  21. WL_HELLO = {
  22. {"nGetSvrID", "int"},
  23. {"nNowSvrID", "int"},
  24. }
  25. WL_HEARTBEAT = {}
  26. LW_MIDDLE_CHAT =
  27. {
  28. {"svrIndex", "int"},
  29. {"tChatMsg", "table"},
  30. }
  31. WL_MIDDLE_CHAT =
  32. {
  33. {"tChatMsg", "table"}
  34. }
  35. ---------------------------------------通用协议-------------------------------------------
  36. --------------- 战斗录像--------------------------------------
  37. -- 查询录像数据
  38. LW_COMBAT_VIDEO_QUERY = {
  39. {"sourceServerId", "int"}, -- 请求方服务器Id
  40. {"videoUuid", "string"}, -- 录像唯一标识
  41. {"extraArgs", "table"}, -- 额外参数
  42. }
  43. WL_COMBAT_VIDEO_QUERY = {
  44. {"res", "int"}, -- 结果,-1: 未找到相关数据, 0-正确命中
  45. {"videoData", "zip"}, -- 录像数据
  46. {"extraArgs", "table"}, -- 额外参数
  47. }
  48. -- 保存录像数据
  49. LW_COMBAT_VIDEO_SAVE = {
  50. -- {"sourceServerId", "int"}, -- 请求方服务器Id
  51. {"videoType", "int"}, -- 录像类型
  52. {"videoData", "zip"}, -- 录像数据
  53. {"extraArgs", "table"}, -- 额外参数
  54. }
  55. --------------------------------------------------------------
  56. -----------------获取战斗数据----------------------------------
  57. WL_COMBAT_DATA = {
  58. {"playerUuid", "string"}, -- 玩家uuid
  59. {"moduleTag", "int"}, -- 请求模块标识
  60. {"combatType", "int"}, -- 战斗类型
  61. {"extraArgs", "table"}, -- 额外参数
  62. }
  63. LW_COMBAT_DATA = {
  64. {"errCode", "int"}, -- 错误码,1:正确,-1: 没有对应类型的战斗数据
  65. {"moduleTag", "int"}, -- 请求模块标识
  66. {"extraArgs", "table"}, -- 额外参数
  67. {"objList", "table"},
  68. {"helpList", "table"},
  69. {"roleBase", "table"},
  70. {"formation", "int"},
  71. {"jiBan", "table"},
  72. {"elfList", "table"}
  73. }
  74. -----------------------------------------------------------------------------------------
  75. -- 聊天查看分享英雄数据(请求的服务器->中心)
  76. LW_MIDDLE_CHAT_QUERY_HERO_DATA =
  77. {
  78. {"nSrcServerID", "int"}, -- 源服务器ID
  79. {"nDesServerID", "int"}, -- 目标服务器ID
  80. {"nSrcUID", "string"}, -- 请求的玩家UID
  81. {"nDesUID", "string"}, -- 查询的玩家UID
  82. {"nHeroIndex", "int"}, -- 查看的英雄下表
  83. {"nChatType", "int"}, -- 聊天频道
  84. }
  85. -- 发送到对应服务器信息(中心->目标服务器)
  86. WL_MIDDLE_CHAT_QUERY_HERO_DATA =
  87. {
  88. {"nSrcServerID", "int"}, -- 源服务器ID
  89. {"nSrcUID", "string"}, -- 请求的玩家UID
  90. {"nDesUID", "string"}, -- 查询的玩家UID
  91. {"nHeroIndex", "int"}, -- 查看的英雄下表
  92. {"nChatType", "int"}, -- 聊天频道
  93. }
  94. -- 英雄信息回复(目标->中心)
  95. LW_MIDDLE_CHAT_GET_HERO_DATA =
  96. {
  97. -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
  98. {"nSrcUID", "string"}, -- 请求的玩家UID
  99. {"nSrcServerID", "int"}, -- 源服务器ID
  100. {"tHeroData", "table"}, -- 英雄数据
  101. }
  102. -- 英雄信息回复(目标->中心)
  103. WL_MIDDLE_CHAT_GET_HERO_DATA =
  104. {
  105. -- {"nResult", "int"}, -- 结果 1 获取成功,0 获取不到数据
  106. {"nSrcUID", "string"}, -- 请求的玩家UID
  107. {"tHeroData", "table"}, -- 英雄数据
  108. }
  109. -- 请求战报录像
  110. LW_WARREPORT_GET_COMBATINFO =
  111. {
  112. {"nSrcUID", "string"},
  113. {"type", "int"},
  114. {"id", "string"},
  115. {"mode", "int"},
  116. {"nSrcServerID", "int"}, -- 源服务器ID
  117. {"nDesServerID", "int"}, -- 目标服务器ID
  118. }
  119. WL_WARREPORT_GET_COMBATINFO =
  120. {
  121. {"nSrcUID", "string"},
  122. {"type", "int"},
  123. {"id", "string"},
  124. {"nSrcServerID", "int"}, -- 源服务器ID
  125. {"mode", "int"},
  126. }
  127. -- 发送战报数据
  128. LW_WARREPORT_SEND_COMBATINFO =
  129. {
  130. {"nSrcUID", "string"},
  131. {"mode", "int"},
  132. {"combatInfo", "table"},
  133. {"nSrcServerID", "int"}, -- 源服务器ID
  134. }
  135. WL_WARREPORT_SEND_COMBATINFO =
  136. {
  137. {"nSrcUID", "string"},
  138. {"mode", "int"},
  139. {"combatInfo", "table"},
  140. }
  141. -------------------- 请求跨服玩家头像数据开始 --------------------
  142. LW_CHAT_PLAYER_INFO =
  143. {
  144. {"nSrcUID", "string"}, -- 请求uid
  145. {"nDesUID", "string"}, -- 目标UID
  146. {"nSrcServerID", "int"}, -- 源服务器ID
  147. {"nDesServerID", "int"}, -- 目标服务器ID
  148. {"nFrom", "int"}, -- 来源(1 聊天查看,2 天梯赛)
  149. {"nType", "int"}, -- 类型(2-1 天梯赛对战列表,2-2 天梯赛排行榜)
  150. }
  151. WL_CHAT_PLAYER_INFO =
  152. {
  153. {"nSrcUID", "string"}, -- 请求uid
  154. {"nDesUID", "string"}, -- 目标UID
  155. {"nSrcServerID", "int"}, -- 源服务器ID
  156. {"nFrom", "int"}, -- 来源(1 聊天查看,2 天梯赛)
  157. {"nType", "int"}, -- 类型(2-1 天梯赛对战列表,2-2 天梯赛排行榜)
  158. }
  159. LW_CHAT_PLAYER_INFO_SEND =
  160. {
  161. {"nSrcUID", "string"}, -- 请求uid
  162. {"nSrcServerID", "int"}, -- 源服务器ID
  163. {"tData", "table"}, -- 目标玩家数据
  164. {"nFrom", "int"}, -- 来源(1 聊天查看,2 天梯赛)
  165. {"nType", "int"}, -- 类型(2-1 天梯赛对战列表,2-2 天梯赛排行榜)
  166. }
  167. WL_CHAT_PLAYER_INFO_SEND =
  168. {
  169. {"nSrcUID", "string"}, -- 请求uid
  170. {"tData", "table"}, -- 目标玩家数据
  171. {"nFrom", "int"}, -- 来源(1 聊天查看,2 天梯赛)
  172. {"nType", "int"}, -- 类型(2-1 天梯赛对战列表,2-2 天梯赛排行榜)
  173. }
  174. -------------------- 请求跨服玩家头像数据结束 --------------------
  175. -------------------- 请求跨服切磋开始 ---------------------------
  176. ---请求敌方数据
  177. LW_COMBAT_GETINFO =
  178. {
  179. {"nSrcUID", "string"}, -- 请求uid
  180. {"nDesUID", "string"}, -- 目标UID
  181. {"nSrcServerID", "int"}, -- 源服务器ID
  182. {"nDesServerID", "int"}, -- 目标服务器ID
  183. {"nCombatType", "int"}, -- 对战类型
  184. {"extraArgs", "table"}, -- 额外参数
  185. }
  186. WL_COMBAT_GETINFO =
  187. {
  188. {"nSrcUID", "string"}, -- 请求uid
  189. {"nDesUID", "string"}, -- 目标UID
  190. {"nSrcServerID", "int"}, -- 源服务器ID
  191. {"nCombatType", "int"}, -- 对战类型
  192. {"extraArgs", "table"}, -- 额外参数
  193. }
  194. -- 回复数据
  195. LW_COMBAT_GETINFO_SEND =
  196. {
  197. {"nResult", "int"}, -- 结果
  198. {"nSrcUID", "string"}, -- 请求uid
  199. {"nSrcServerID", "int"}, -- 源服务器ID
  200. {"tObjList", "table"},
  201. {"tHelpList", "table"},
  202. {"tRoleBase", "table"},
  203. {"formation", "int"},
  204. {"tJiBan", "table"},
  205. {"tElfList", "table"},
  206. }
  207. WL_COMBAT_GETINFO_SEND =
  208. {
  209. {"nResult", "int"}, -- 结果
  210. {"nSrcUID", "string"}, -- 请求uid
  211. {"tObjList", "table"},
  212. {"tHelpList", "table"},
  213. {"tRoleBase", "table"},
  214. {"formation", "int"},
  215. {"tJiBan", "table"},
  216. {"tElfList", "table"},
  217. }
  218. -------------------- 请求跨服切磋结束 ---------------------------
  219. -------------------- 跨服商业活动开始 ---------------------------
  220. -- 请求开服天数
  221. WL_COMMERCE_QUERYOPENDAY = {
  222. }
  223. -- 回复开服天数
  224. LW_COMMERCE_SENDOPENDAY = {
  225. {"nOpenDay", "int"},
  226. {"nSrcServerID", "int"},
  227. }
  228. -- 请求是否开启活动
  229. LW_COMMERCE_ACTOPEN =
  230. {
  231. {"nSrcServerID", "int"}, -- 源服务器ID
  232. {"nOperate", "int"}, -- 来源
  233. }
  234. WL_COMMERCE_ACTOPEN =
  235. {
  236. {"nOpen", "int"}, -- 1 开 0 未开
  237. {"nOperate", "int"}, -- 来源
  238. {"nServerKey", "int"}, -- 服务器Key
  239. }
  240. -- 排行榜数据改变发送到中心服进行排行
  241. LW_COMMERCE_RANK_POINT_CHANGE =
  242. {
  243. {"uuid", "string"}, -- 玩家uid
  244. {"name", "string"}, -- 玩家姓名
  245. {"head", "int"}, -- 玩家头像ID
  246. {"headFrame", "int"}, -- 玩家头像框
  247. {"nSrcServerID", "int"}, -- 服务器ID
  248. {"nValue", "int"}, -- 排行key
  249. {"nRankType", "int"}, -- 排行类型
  250. {"nRankSubType", "int"}, -- 排行榜小类型
  251. {"nOperate", "int"}, -- 操作类型(1 累加nValue, 2 直接替换 )
  252. {"servername", "string"}, -- 服务器名称
  253. }
  254. -- 请求排行榜数据
  255. LW_COMMERCE_QUERY_RANK_INFO =
  256. {
  257. {"nRankType", "int"}, -- 排行类型
  258. {"nRankSubType", "int"}, -- 排行榜小类型
  259. {"nSrcServerID", "int"}, -- 服务器ID
  260. }
  261. -- 回复排行榜数据
  262. WL_COMMERCE_QUERY_RANK_INFO = {
  263. {"nRankType", "int"}, -- 排行类型
  264. {"nRankSubType", "int"}, -- 排行榜小类型
  265. {"nServerKey", "int"}, -- 服务器ID
  266. {"nBegin", "int"}, -- 首次发送
  267. {"nEnd", "int"}, -- 是否发送完成
  268. {"tRankData", "table"}, -- 排行榜数据
  269. }
  270. -- 获取服务器排行榜服务器排名
  271. LW_COMMERCE_QUERY_SERVER_RANK =
  272. {
  273. {"nSrcServerID", "int"}, -- 服务器ID
  274. {"nServerUuid", "string"}, -- 服务器唯一区分ID
  275. {"nOperate", "int"}, -- 操作类型
  276. }
  277. -- 获取服务器排行榜服务器排名 回包
  278. WL_COMMERCE_GET_SERVERRANK_PRIZE =
  279. {
  280. {"nRank", "int"}, -- 排名
  281. {"nOperate", "int"}, -- 操作类型
  282. }
  283. -- 通知中心服全服邮件发送完成
  284. LW_COMMERCE_TELL_SERVER_MAILOK =
  285. {
  286. {"nSrcServerID", "int"}, -- 服务器ID
  287. }
  288. -- 发送给对应的服务器 个人排行榜奖励
  289. WL_COMMERCE_SEND_HUMAN_PRIZE =
  290. {
  291. {"nRank", "int"},
  292. {"uuid", "string"},
  293. }
  294. -- 清理排行榜命令
  295. LW_COMMERCE_CLEAR_RANK =
  296. {
  297. {"nRankType", "int"}, -- 排行类型
  298. {"nRankSubType", "int"}, -- 排行榜小类型
  299. {"nSrcServerID", "int"}, -- 服务器ID
  300. }
  301. -- GM清理个人邮件发送缓存
  302. LW_COMMERCE_GM_CLEAR_MAIL =
  303. {
  304. {"nSrcServerID", "int"}, -- 服务器ID
  305. }
  306. -- 获取战区第一个服的活动时间数据
  307. WL_COMMERCE_GET_ACT_INFO = {
  308. {"nReqServerID", "int"} -- 不存在时为0
  309. }
  310. -- 发送给中心服活动时间数据
  311. LW_COMMERCE_GET_ACT_INFO =
  312. {
  313. {"nOperate", "int"}, -- 0 失败 1 成功有数据 2 成功无数据
  314. {"nReqServerID", "int"}, -- 不存在时为0
  315. {"nSrcServerID", "int"}, -- 服务器ID
  316. {"nBatchID", "int"}, -- 批次
  317. {"nBeginTime", "int"}, -- 开始时间
  318. {"nEndTime", "int"}, -- 结束时间
  319. }
  320. -- 请求中心服活动时间
  321. LW_COMMERCE_ACT_GET_OPENTIME =
  322. {
  323. {"nSrcServerID", "int"}, -- 服务器ID
  324. }
  325. -- 回复普通服活动时间
  326. WL_COMMERCE_ACT_GET_OPENTIME =
  327. {
  328. {"nBatchID", "int"}, -- 批次
  329. {"nBeginTime", "int"}, -- 开始时间
  330. {"nEndTime", "int"}, -- 结束时间
  331. }
  332. -------------------- 跨服商业活动结束 ---------------------------
  333. -------------------- 天梯赛开始 -----------------------------------
  334. -- 请求参加天梯赛(普通->中心)
  335. LW_JJC_NEWLADDER_JOINLADDER_O2C =
  336. {
  337. {"uuid", "string"}, -- 玩家uid
  338. {"name", "string"}, -- 名字
  339. {"head", "int"}, -- 玩家头像ID
  340. {"headFrame", "int"}, -- 玩家头像框
  341. {"nSrcServerID", "int"}, -- 服务器ID
  342. {"szServerName", "string"}, -- 服务器名字
  343. {"zhandouli", "int"}, -- 战斗力
  344. }
  345. -- 请求参加天梯赛(中心->战区数据服)
  346. WL_JJC_NEWLADDER_JOINLADDER_C2D = {
  347. {"uuid", "string"}, -- 玩家uid
  348. {"name", "string"}, -- 名字
  349. {"head", "int"}, -- 玩家头像ID
  350. {"headFrame", "int"}, -- 玩家头像框
  351. {"nSrcServerID", "int"}, -- 服务器ID
  352. {"szServerName", "string"}, -- 服务器名字
  353. {"zhandouli", "int"}, -- 战斗力
  354. }
  355. -- 请求参加天梯赛(数据->中心)
  356. LW_JJC_NEWLADDER_JOINLADDER_D2C = {
  357. {"uuid", "string"}, -- 玩家uid
  358. {"nSrcServerID", "int"}, -- 玩家所属服务器ID
  359. {"nRank", "int"}, -- 玩家当前排名
  360. {"tEnemy", "table"}, -- 对战列表
  361. {"nPoint", "int"}, -- 当前玩家积分
  362. }
  363. -- 请求参加天梯赛(中心->普通)
  364. WL_JJC_NEWLADDER_JOINLADDER_C2O = {
  365. {"uuid", "string"}, -- 玩家uid
  366. {"nRank", "int"}, -- 玩家当前排名
  367. {"tEnemy", "table"}, -- 对战列表
  368. {"nPoint", "int"}, -- 当前玩家积分
  369. }
  370. -- 请求天梯赛排行榜数据(普通->中心)
  371. LW_JJC_NEWLADDER_QUERY_RANK_O2C = {
  372. {"nSrcServerID", "int"}, -- 服务器ID
  373. }
  374. -- 请求天梯赛排行榜数据(中心->战区数据服)
  375. WL_JJC_NEWLADDER_QUERY_RANK_C2D = {
  376. {"nSrcServerID", "int"}, -- 服务器ID
  377. }
  378. -- 请求天梯赛排行榜数据(数据服->中心)
  379. LW_JJC_NEWLADDER_QUERY_RANK_D2C =
  380. {
  381. {"nSrcServerID", "int"}, -- 服务器ID
  382. {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  383. {"tRankInfo", "table"}, -- 排行榜数据
  384. {"nFirst", "int"}, -- 首次发送 1 是 0 否
  385. }
  386. -- 请求天梯赛排行榜数据(中心->普通)
  387. WL_JJC_NEWLADDER_QUERY_RANK_C2O =
  388. {
  389. {"nFirst", "int"}, -- 首次发送 1 是 0 否
  390. {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  391. {"tRankInfo", "table"}, -- 排行榜数据
  392. }
  393. -- 查询是否能够战斗(普通->中心)
  394. LW_JJC_NEWLADDER_QUERY_CAN_FIGHT_O2C = {
  395. {"uuid", "string"}, -- 玩家uid
  396. {"uuidDes", "string"}, -- 目标uid
  397. {"nSrcServerID", "int"}, -- 服务器ID
  398. }
  399. -- 查询是否能够战斗(中心->战区数据服)
  400. WL_JJC_NEWLADDER_QUERY_CAN_FIGHT_C2D = {
  401. {"uuid", "string"}, -- 玩家uid
  402. {"uuidDes", "string"}, -- 目标uid
  403. {"nSrcServerID", "int"}, -- 服务器ID
  404. }
  405. -- 查询是否能够战斗(数据服->中心)
  406. LW_JJC_NEWLADDER_QUERY_CAN_FIGHT_D2C = {
  407. {"uuid", "string"}, -- 玩家uid
  408. {"uuidDes", "string"}, -- 目标uid
  409. {"nSrcServerID", "int"}, -- 服务器ID
  410. {"nIsFight", "int"}, -- 0 不能战斗 1 可以战斗
  411. }
  412. -- 查询是否能够战斗(中心->普通)
  413. WL_JJC_NEWLADDER_QUERY_CAN_FIGHT_C2O = {
  414. {"uuid", "string"}, -- 玩家uid
  415. {"uuidDes", "string"}, -- 目标uid
  416. {"nIsFight", "int"}, -- 0 不能战斗 1 可以战斗
  417. }
  418. -- 战斗结束(普通->中心)
  419. LW_JJC_NEWLADDER_CANCEL_FIGHT_END_O2C = {
  420. {"uuid", "string"}, -- 玩家uid
  421. {"uuidDes", "string"}, -- 目标uid
  422. {"nSrcServerID", "int"}, -- 服务器ID
  423. {"nResult", "int"}, -- 战斗结果 0 输 1赢
  424. {"tEnemyUid", "table"}, -- 对战列表
  425. {"nZhanDouLi", "int"}, -- 战斗力
  426. }
  427. -- 战斗结束(中心->战区数据服)
  428. WL_JJC_NEWLADDER_CANCEL_FIGHT_END_C2D = {
  429. {"uuid", "string"}, -- 玩家uid
  430. {"uuidDes", "string"}, -- 目标uid
  431. {"nSrcServerID", "int"}, -- 服务器ID
  432. {"nResult", "int"}, -- 战斗结果 0 输 1赢
  433. {"tEnemyUid", "table"}, -- 对战列表
  434. {"nZhanDouLi", "int"}, -- 战斗力
  435. }
  436. -- 战斗结束(数据服->中心)
  437. LW_JJC_NEWLADDER_CANCEL_FIGHT_END_D2C = {
  438. {"uuid", "string"}, -- 玩家uid
  439. {"uuidDes", "string"}, -- 对手uid
  440. {"nSrcServerID", "int"}, -- 服务器ID
  441. {"nNewRank", "int"}, -- 新的排名
  442. {"nNewPoint", "int"}, -- 新的点数
  443. {"tOldEnemyData", "table"}, -- 旧的对手数据
  444. {"tNewOneEnemy", "table"}, -- 新对手的数据
  445. }
  446. -- 战斗结束
  447. WL_JJC_NEWLADDER_CANCEL_FIGHT_END_C2O = {
  448. {"uuid", "string"}, -- 玩家uid
  449. {"uuidDes", "string"}, -- 对手uid
  450. {"nNewRank", "int"}, -- 新的排名
  451. {"nNewPoint", "int"}, -- 新的点数
  452. {"tOldEnemyData", "table"}, -- 旧的对手数据
  453. {"tNewOneEnemy", "table"}, -- 新对手的数据
  454. }
  455. -- 发送战败邮件(数据->中心)
  456. LW_JJC_NEWLADDER_SEND_MAIL_D2C = {
  457. {"uuidDes", "string"}, -- 目标uid
  458. {"nDesServerID", "int"}, -- 目标服务器ID
  459. {"szServerName", "string"}, -- 挑战玩家对应服务器名称
  460. {"szName", "string"}, -- 挑战玩家名称
  461. {"nNewRank", "int"}, -- 新排名
  462. }
  463. -- 发送战败邮件(中心->目标)
  464. WL_JJC_NEWLADDER_SEND_MAIL_C2O = {
  465. {"uuidDes", "string"}, -- 目标uid
  466. {"szServerName", "string"}, -- 挑战玩家对应服务器名称
  467. {"szName", "string"}, -- 挑战玩家名称
  468. {"nNewRank", "int"}, -- 新排名
  469. }
  470. -- 请求刷新对战列表(普通->中心)
  471. LW_JJC_NEWLADDER_REFRESH_O2C =
  472. {
  473. {"uuid", "string"}, -- 玩家uid
  474. {"nSrcServerID", "int"}, -- 服务器ID
  475. }
  476. -- 请求刷新对战列表(中心->数据)
  477. WL_JJC_NEWLADDER_REFRESH_C2D =
  478. {
  479. {"uuid", "string"}, -- 玩家uid
  480. {"nSrcServerID", "int"}, -- 服务器ID
  481. }
  482. -- 请求刷新对战列表(数据->中心)
  483. LW_JJC_NEWLADDER_REFRESH_D2C =
  484. {
  485. {"uuid", "string"}, -- 玩家uid
  486. {"nSrcServerID", "int"}, -- 服务器ID
  487. {"tEnemy", "table"}, -- 对战列表
  488. }
  489. -- 请求刷新对战列表(中心-普通)
  490. WL_JJC_NEWLADDER_REFRESH_C2O =
  491. {
  492. {"uuid", "string"}, -- 玩家uid
  493. {"tEnemy", "table"}, -- 对战列表
  494. }
  495. -- 请求上一轮前3玩家信息(普通->中心)
  496. LW_JJC_NEWLADDER_LAST3RANK_O2C =
  497. {
  498. {"nSrcServerID", "int"}, -- 服务器ID
  499. }
  500. -- 请求上一轮前3玩家信息(中心->数据)
  501. WL_JJC_NEWLADDER_LAST3RANK_C2D =
  502. {
  503. {"nSrcServerID", "int"}, -- 服务器ID
  504. }
  505. -- 请求上一轮前3玩家信息(数据->中心)
  506. LW_JJC_NEWLADDER_LAST3RANK_D2O =
  507. {
  508. {"nSrcServerID", "int"}, -- 服务器ID
  509. {"nExist", "int"}, -- 是否存在数据
  510. {"tLastRankInfo", "table"} -- 上一次排名数据
  511. }
  512. -- 请求上一轮前3玩家信息(中心-普通)
  513. WL_JJC_NEWLADDER_LAST3RANK_C2O =
  514. {
  515. {"nExist", "int"}, -- 是否存在数据
  516. {"tLastRankInfo", "table"} -- 上一次排名数据
  517. }
  518. -- 进行点赞(普通->中心)
  519. LW_JJC_NEWLADDER_SEND_WORSHIP_O2C =
  520. {
  521. {"uuidSrc", "string"},
  522. {"uuidDes", "string"},
  523. {"nSrcServerID", "int"},
  524. {"nDesServerID", "int"},
  525. }
  526. -- 进行点赞(中心->数据(被点赞玩家所在服))
  527. WL_JJC_NEWLADDER_SEND_WORSHIP_C2D = {
  528. {"uuidSrc", "string"},
  529. {"uuidDes", "string"},
  530. {"nSrcServerID", "int"},
  531. }
  532. -- 进行点赞(数据->中心(被点赞玩家所在服))
  533. LW_JJC_NEWLADDER_SEND_WORSHIP_D2C =
  534. {
  535. {"uuidSrc", "string"},
  536. {"nSrcServerID", "int"},
  537. {"uuidDes", "string"},
  538. {"nNowWorShip", "int"}
  539. }
  540. -- 进行点赞(中心->普通)
  541. WL_JJC_NEWLADDER_SEND_WORSHIP_C2O =
  542. {
  543. {"uuidSrc", "string"},
  544. {"uuidDes", "string"},
  545. {"nNowWorShip", "int"}
  546. }
  547. -- 告诉战区服点赞数改变(中心->战区数据服)
  548. -- 改变战区数据服记录的点赞数量
  549. WL_JJC_NEWLADDER_WORSHIP_CHANGE_C2D =
  550. {
  551. {"uuidDes", "string"},
  552. {"nAddNum", "int"}, -- 增加数量
  553. }
  554. -- 通知中心服最新的点赞数
  555. LW_JJC_NEWLADDER_WORSHIP_CHANGE_D2C =
  556. {
  557. {"uuidDes", "string"},
  558. {"nNowWorShip", "int"},
  559. {"nSrcServerID", "int"},
  560. }
  561. -- 通知对应战区所属服务器更新最新的点赞数
  562. WL_JJC_NEWLADDER_WORSHIP_UPDATE_D2C =
  563. {
  564. {"uuidDes", "string"},
  565. {"nNowWorShip", "int"}
  566. }
  567. -- 发送排名奖励(数据->中心)
  568. LW_JJC_NEWLADDER_SEND_RANK_PRIZE_D2C =
  569. {
  570. {"uuid", "string"}, -- 玩家uid
  571. {"nServerID", "int"}, -- 服务器ID
  572. {"nRank", "int"}, -- 排名
  573. }
  574. -- 发送排名奖励(中心->普通)
  575. WL_JJC_NEWLADDER_SEND_RANK_PRIZE_C2O =
  576. {
  577. {"uuid", "string"}, -- 玩家uid
  578. {"nRank", "int"}, -- 排名
  579. }
  580. -- 请求玩家当前的点赞数(数据->中心)
  581. LW_JJC_NEWLADDER_QUERY_WORSHIP_D2C =
  582. {
  583. {"uuid", "string"}, -- 玩家uid
  584. {"nServerID", "int"}, -- 玩家所属服
  585. {"nFromServerID", "int"}, -- 请求来源服
  586. }
  587. -- 请求玩家当前的点赞数(中心->普通)
  588. WL_JJC_NEWLADDER_QUERY_WORSHIP_C20 =
  589. {
  590. {"uuid", "string"}, -- 玩家uid
  591. {"nFromServerID", "int"}, -- 请求来源服
  592. }
  593. -- 请求玩家当前的点赞数(普通->中心)
  594. LW_JJC_NEWLADDER_QUERY_WORSHIP_O2C =
  595. {
  596. {"uuid", "string"}, -- 玩家uid
  597. {"nFromServerID", "int"}, -- 请求来源服
  598. {"nWorShip", "int"}, -- 当前玩家点赞数
  599. }
  600. -- 请求玩家当前的点赞数(中心->数据)
  601. WL_JJC_NEWLADDER_QUERY_WORSHIP_C2D =
  602. {
  603. {"uuid", "string"}, -- 玩家uid
  604. {"nWorShip", "int"}, -- 当前玩家点赞数
  605. }
  606. -------------------- 天梯赛结束 -----------------------------------
  607. -------------------- 封禁功能开始 -----------------------------------
  608. --从跨服请求封禁数据
  609. LW_QUERY_BAN_INFO = {
  610. {"nSrcServerID", "int"}, -- 服务器ID
  611. }
  612. WL_QUERY_BAN_INFO = {
  613. {"banList", "table"}, -- 禁止登录列表
  614. }
  615. -- 通知跨服更新
  616. LW_UPDATE_BAN_INFO =
  617. {
  618. {"nSrcServerID", "int"}, -- 服务器ID
  619. -- {"banTag", "string"}, -- 禁止登录标识
  620. -- {"banTime", "int"}, -- 禁止登录时间
  621. -- {"banLevel", "int"}, -- 禁止等级
  622. {"banStr", "string"}, -- 封禁数据
  623. }
  624. WL_UPDATE_BAN_INFO =
  625. {
  626. -- {"banTag", "string"}, -- 禁止登录标识
  627. -- {"banTime", "int"}, -- 禁止登录时间
  628. -- {"banLevel", "int"}, -- 禁止等级
  629. {"banStr", "string"}, -- 封禁数据
  630. }
  631. -------------------- 封禁功能结束 -----------------------------------
  632. ----------------------- 返利开始 -----------------------------------
  633. --向跨服查询是否能返利
  634. LW_REBATE_QUERY = {
  635. {"nSrcServerID", "int"}, -- 服务器ID
  636. {"channelId", "int"}, -- 渠道D
  637. {"serverId", "int"}, -- 区服ID
  638. {"account", "string"}, -- 账号
  639. }
  640. WL_REBATE_OK = {
  641. {"channelId", "int"}, -- 渠道D
  642. {"serverId", "int"}, -- 区服ID
  643. {"account", "string"}, -- 账号
  644. }
  645. -------------------- 返利结束 -----------------------------------
  646. --------------------------诸神圣域------------------------------------
  647. -- 普通服向跨服请求排行榜数据
  648. LW_GODSATREA_QUERY_RANKLIST = {
  649. {"playerUid", "string"}, -- 请求者uuid
  650. {"sourceServerId", "int"}, -- 请求方服务器ID
  651. }
  652. WL_GODSATREA_QUERY_RANKLIST = {
  653. {"myRank", "int"}, -- 请求者排名
  654. {"playerUid", "string"}, -- 请求者uuid
  655. {"rankList", "table"}, -- 排行榜数据
  656. }
  657. -- 普通服向跨服请求某个排名的玩家数据
  658. LW_GODSATREA_QUERY_PLAYER_INFO = {
  659. {"sourceServerId", "int"}, -- 请求方服务器ID
  660. {"targetRank", "int"}, -- 要查看玩家的排名
  661. {"targetUid", "string"}, -- 要查看玩家的uuid
  662. {"playerUid", "string"}, -- 请求者uuid
  663. }
  664. WL_GODSATREA_QUERY_PLAYER_INFO = {
  665. {"res", "int"}, -- 请求结果, 0: 成功, -1: 数据异常, -2: 不是最新数据
  666. {"playerInfo", "table"}, -- 排行榜数据
  667. {"playerUid", "string"}, -- 请求者uuid
  668. }
  669. -- 查询是否能挑战玩家
  670. LW_GODSATREA_CHALLENGE_QUERY = {
  671. {"sourceServerId", "int"}, -- 进攻方服务器ID
  672. {"defenseRank", "int"}, -- 防御方排名
  673. {"defenseUid", "string"}, -- 防御方uuid
  674. {"attackerUid", "string"}, -- 进攻方uid
  675. }
  676. WL_GODSATREA_CHALLENGE_QUERY = {
  677. {"res", "int"}, -- 请求结果, 0: 可以挑战, 1: 自己正被挑战, 2: 目标正在战斗,-1: 数据异常, -2: 不是最新数据,-3:不能挑战比自己低的
  678. {"defenseServerId", "int"}, -- 防御方服务器ID
  679. {"defenseRank", "int"}, -- 防御方排名
  680. {"defenseUid", "string"}, -- 防御方uuid
  681. {"attackerUid", "string"}, -- 进攻方uid
  682. {"defenseName", "string"}, -- 防御方名字
  683. }
  684. -- 请求挑战玩家
  685. -- LW_GODSATREA_CHALLENGE = {
  686. -- {"sourceServerId", "int"}, -- 进攻方服务器ID
  687. -- {"defenseRank", "int"}, -- 防御方排名
  688. -- {"defenseUid", "string"}, -- 防御方uuid
  689. -- {"attackerUid", "string"}, -- 进攻方uid
  690. -- }
  691. -- -- 跨服向防御方请求战斗数据
  692. -- WL_GODSATREA_GET_COMBAT_DATA = {
  693. -- {"defenseRank", "int"}, -- 防御方排名
  694. -- {"defenseUid", "string"}, -- 防御方uuid
  695. -- {"attackerRank", "int"}, -- 进攻方排名
  696. -- {"attackerUid", "string"}, -- 进攻方uuid
  697. -- }
  698. -- -- 防御方向跨服发送战斗数据
  699. -- LW_GODSATREA_GET_COMBAT_DATA = {
  700. -- {"sourceServerId", "int"}, -- 防御方服务器ID
  701. -- {"attackerRank", "int"}, -- 进攻方排名
  702. -- {"attackerUid", "string"}, -- 进攻方uuid
  703. -- {"defenseRank", "int"}, -- 防御方排名
  704. -- {"defenseUid", "string"}, -- 防御方uuid
  705. -- {"defenseCombatData", "table"}, -- 防御方的战斗数据
  706. -- }
  707. -- -- 跨服向挑战方发送防御方的战斗数据
  708. -- WL_GODSATREA_CHALLENGE = {
  709. -- {"res", "int"}, -- 请求结果
  710. -- {"defenseRank", "int"}, -- 防御方排名
  711. -- {"defenseUid", "string"}, -- 防御方uuid
  712. -- {"defenseMonsterOUtId", "int"}, -- 防御方怪物ID, 如果值不为0, 则表示防御方是怪物, 就用不到 defenseCombatData 了
  713. -- {"defenseCombatData", "table"}, -- 防御方的战斗数据
  714. -- }
  715. -- 通知跨服挑战成功
  716. LW_GODSATREA_WIN = {
  717. {"sourceServerId", "int"}, -- 进攻方服务器ID
  718. {"defenseRank", "int"}, -- 防御方排名
  719. {"defenseUid", "string"}, -- 防御方uuid
  720. {"attackerUid", "string"}, -- 进攻方uuid
  721. {"attackInfo", "table"}, -- 进攻方信息。 如果进攻方没有排名时挑战胜利, 更新展示信息
  722. }
  723. -- 跨服通知玩家, 更换称号
  724. WL_GODSATREA_UPDATE_CHENGHAO = {
  725. {"targetUid", "string"}, -- 玩家uuid
  726. {"newRank", "int"}, -- 新的排名
  727. {"enemyName", "string"}, -- 敌方名字
  728. {"isWinner", "int"}, -- 是否是胜利方, 0-否,1-是
  729. }
  730. -- 向跨服请求某个排名的战斗录像
  731. LW_GODSATREA_QUERY_RANK_VIDEO = {
  732. {"sourceServerId", "int"}, -- 请求方服务器ID
  733. {"playerUid", "string"}, -- 玩家uuid
  734. {"targetRank", "int"}, -- 目标排名
  735. }
  736. -- 跨服向请求服发送目标的战斗录像
  737. WL_GODSATREA_QUERY_RANK_VIDEO = {
  738. {"isFinish", "int"}, -- 是否发送完成,0-否, 1-是
  739. {"playerUid", "string"}, -- 玩家uuid
  740. {"videoData", "zip"}, -- 排名战斗录像
  741. }
  742. -- 通知跨服, 玩家基础数据有更新
  743. LW_GODSATREA_UPDATE_PLAYER_BASE_INFO = {
  744. -- {"sourceServerId", "int"}, -- 服务器ID
  745. {"playerUid", "string"}, -- 玩家uuid
  746. {"playerInfo", "table"}, -- 玩家信息, 改名等修改基础数据时更新
  747. }
  748. -- 通知跨服, 英雄数据有更新
  749. LW_GODSATREA_UPDATE_PLAYER_HERO_INFO = {
  750. -- {"sourceServerId", "int"}, -- 服务器ID
  751. {"playerUid", "string"}, -- 玩家uuid
  752. {"power", "int"}, -- 战力
  753. {"heroInfo", "table"}, -- 玩家英雄信息
  754. }
  755. -- 跨服通知游戏服发奖励
  756. WL_GODSATREA_BROCAST_REWARD = {
  757. {"uid2RankTb", "table"}, -- uid->rank 表
  758. }
  759. -- 跨服通知玩家, 更新数据
  760. WL_GODSATREA_UPDATE_PLAYER_INFO = {
  761. {"playerUid", "string"}, -- 玩家uuid
  762. }
  763. ---------------------------------------------------------------------
  764. ---------------------------------战区争霸----------------------------
  765. -- 跨服通知普通服活动开启
  766. WL_AREABATTLE_OPEN = {
  767. }
  768. -- 普通服报名参加争霸活动
  769. LW_AREABATTLE_JOIN_BATTLE = {
  770. {"sourceServerId", "int"}, -- 参战服务器Id
  771. {"joinBattleArray", "table"}, -- 参战玩家列表
  772. }
  773. -- 普通服请求争霸活动的基本数据
  774. LW_AREABATTLE_BASEINFO_QUERY = {
  775. {"sourceServerId", "int"},
  776. {"playerUuid", "string"}, -- 玩家uuid
  777. }
  778. WL_AREABATTLE_BASEINFO_QUERY = {
  779. {"stage", "int"}, -- 当前阶段, 0-休战, 1-准备, 2- 战斗, 3-发奖
  780. {"startTime", "int"}, -- 本轮活动开始时间
  781. {"endTime", "int"}, -- 本轮活动结束时间
  782. {"playerUuid", "string"}, -- 玩家uuid
  783. }
  784. -- 普通服请求本服参与争霸活动的玩家数据
  785. LW_AREABATTLE_JOINPLAYER_QUERY = {
  786. {"sourceServerId", "int"},
  787. {"playerUuid", "string"}, -- 玩家uuid
  788. }
  789. WL_AREABATTLE_JOINPLAYER_QUERY = {
  790. {"errCode", "int"}, -- 错误码,0: 正常, -1: 本服每次没有参加战斗
  791. {"playerArray", "table"},
  792. {"playerUuid", "string"}, -- 玩家uuid
  793. }
  794. -- 普通服请求参与本轮活动的区服的匹配列表
  795. LW_AREABATTLE_MATCHLIST_QUERY = {
  796. {"sourceServerId", "int"},
  797. {"playerUuid", "string"}, -- 玩家uuid
  798. }
  799. WL_AREABATTLE_MATCHLIST_QUERY = {
  800. {"matchList", "table"},
  801. {"playerUuid", "string"}, -- 玩家uuid
  802. }
  803. -- 跨服通知普通服发奖
  804. WL_AREABATTLE_SEND_REWARD = {
  805. {"srvBattleRes", "table"}, -- 本服战斗结果
  806. }
  807. -- 普通服请求本服相关的录像展示数据
  808. LW_AREABATTLE_VIDEOSHOW_QUERY = {
  809. {"sourceServerId", "int"},
  810. {"playerUuid", "string"}, -- 玩家uuid
  811. }
  812. WL_AREABATTLE_VIDEOSHOW_QUERY = {
  813. {"errCode", "int"}, -- 错误码,0: 正常, -1: 本服每次没有参加战斗, -2: 录像数据还没产生,请稍后再尝试
  814. {"videoShowData", "table"}, -- 录像数据
  815. {"srvInfo", "table"}, -- 区服数据
  816. {"playerUuid", "string"}, -- 玩家uuid
  817. }
  818. --------------------- 巅峰战场跨服协议开始 -----------------------------------
  819. -- 普通服请求跨服排名数据(普通->中心)
  820. -- LW_PEAK_BATTLEFIELD_QUERY_RANK_O2C = {
  821. -- {"nSrcServerID", "int"}, -- 服务器ID
  822. -- {"nRankType", "int"}, -- 排名类型(1=个人排名,2=服务器排名)
  823. -- }
  824. -- -- 请求跨服排名数据(中心->数据服)
  825. -- WL_PEAK_BATTLEFIELD_QUERY_RANK_C2D = {
  826. -- {"nSrcServerID", "int"}, -- 服务器ID
  827. -- {"nRankType", "int"}, -- 排名类型
  828. -- }
  829. -- -- 请求跨服排名数据(数据服->中心)
  830. -- LW_PEAK_BATTLEFIELD_QUERY_RANK_D2C = {
  831. -- {"nSrcServerID", "int"}, -- 服务器ID
  832. -- {"nRankType", "int"}, -- 排名类型
  833. -- {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  834. -- {"tRankInfo", "table"}, -- 排行榜数据
  835. -- {"nFirst", "int"}, -- 首次发送 1 是 0 否
  836. -- }
  837. -- -- 获取到跨服排名数据(中心->普通)
  838. -- WL_PEAK_BATTLEFIELD_QUERY_RANK_C2O = {
  839. -- {"nFirst", "int"}, -- 首次发送 1 是 0 否
  840. -- {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  841. -- {"tRankInfo", "table"}, -- 排行榜数据
  842. -- }
  843. -- -- 普通服通知排名变化(普通->中心)
  844. -- LW_PEAK_BATTLEFIELD_RANK_CHANGE_O2C = {
  845. -- {"uuid", "string"}, -- 玩家uuid
  846. -- {"name", "string"}, -- 玩家名字
  847. -- {"head", "int"}, -- 玩家头像ID
  848. -- {"headFrame", "int"}, -- 玩家头像框
  849. -- {"nSrcServerID", "int"}, -- 服务器ID
  850. -- {"nRank", "int"}, -- 当前排名
  851. -- {"nValue", "int"}, -- 排名值(如积分等)
  852. -- {"servername", "string"}, -- 服务器名称
  853. -- }
  854. -- -- 排名变化通知(中心->数据服)
  855. -- WL_PEAK_BATTLEFIELD_RANK_CHANGE_C2D = {
  856. -- {"uuid", "string"}, -- 玩家uuid
  857. -- {"name", "string"}, -- 玩家名字
  858. -- {"head", "int"}, -- 玩家头像ID
  859. -- {"headFrame", "int"}, -- 玩家头像框
  860. -- {"nSrcServerID", "int"}, -- 服务器ID
  861. -- {"nRank", "int"}, -- 当前排名
  862. -- {"nValue", "int"}, -- 排名值
  863. -- {"servername", "string"}, -- 服务器名称
  864. -- }
  865. -- -- 发送排名奖励(数据服->中心)
  866. -- LW_PEAK_BATTLEFIELD_SEND_RANK_REWARD_D2C = {
  867. -- {"uuid", "string"}, -- 玩家uid
  868. -- {"nServerID", "int"}, -- 服务器ID
  869. -- {"nRank", "int"}, -- 排名
  870. -- {"tReward", "table"}, -- 奖励列表
  871. -- }
  872. -- -- 发送排名奖励(中心->普通)
  873. -- WL_PEAK_BATTLEFIELD_SEND_RANK_REWARD_C2O = {
  874. -- {"uuid", "string"}, -- 玩家uid
  875. -- {"nRank", "int"}, -- 排名
  876. -- {"tReward", "table"}, -- 奖励列表
  877. -- }
  878. -- 查询玩家排名
  879. -- LW_BATTLEGROUND_PLAYER_RANK_QUERY = {
  880. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  881. -- {"playerUuid", "string"}, -- 玩家uuid
  882. -- }
  883. -- WL_BATTLEGROUND_PLAYER_RANK_QUERY = {
  884. -- {"playerUuid", "string"}, -- 玩家uuid
  885. -- {"playerRank", "int"}, -- 玩家排名
  886. -- }
  887. -- -- 查询对手列表信息
  888. -- LW_BATTLEGROUND_MATCHLIST_QUERY = {
  889. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  890. -- {"playerUuid", "string"}, -- 玩家uuid
  891. -- {"matchList", "table"}, -- 对手列表
  892. -- }
  893. -- WL_BATTLEGROUND_MATCHLIST_QUERY = {
  894. -- {"playerUuid", "string"}, -- 玩家uuid
  895. -- {"playerInfoList", "table"}, -- 对手列表信息
  896. -- }
  897. -- -- 查询玩家信息
  898. -- LW_BATTLEGROUND_PLAYER_DATA_QUERY = {
  899. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  900. -- {"playerUuid", "string"}, -- 玩家uuid
  901. -- {"playerRank", "int"}, -- 玩家排名
  902. -- }
  903. -- WL_BATTLEGROUND_PLAYER_DATA_QUERY = {
  904. -- {"playerUuid", "string"}, -- 玩家uuid
  905. -- {"playerInfo", "table"}, -- 玩家信息
  906. -- }
  907. -- -- 查询排行榜数据
  908. -- LW_BATTLEGROUND_RANKLIST_QUERY = {
  909. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  910. -- {"playerUuid", "string"}, -- 玩家uuid
  911. -- }
  912. -- WL_BATTLEGROUND_RANKLIST_QUERY = {
  913. -- {"playerUuid", "string"}, -- 玩家uuid
  914. -- {"rankList", "table"}, -- 排行榜信息
  915. -- }
  916. -- -- 请求挑战玩家
  917. -- LW_BATTLEGROUND_CHALLENGE_QUERY = {
  918. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  919. -- {"playerUuid", "string"}, -- 玩家uuid
  920. -- {"rank", "int"}, -- 排名数组
  921. -- }
  922. -- WL_BATTLEGROUND_CHALLENGE_QUERY = {
  923. -- {"playerUuid", "string"}, -- 玩家uuid
  924. -- {"playerInfo", "table"}, -- 排名数组
  925. -- }
  926. -- -- 挑战结束
  927. -- LW_BATTLEGROUND_CHALLENGE_END = {
  928. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  929. -- {"playerUuid", "string"}, -- 玩家uuid
  930. -- {"challengeRes", "int"}, -- 挑战结果
  931. -- {"playerShowData", "table"}, -- 玩家展示信息
  932. -- }
  933. -- -- 通知玩家被打落排名了
  934. -- WL_BATTLEGROUND_NOTIFY_PLAYER = {
  935. -- {"playerUuid", "string"}, -- 玩家uuid
  936. -- }
  937. -- -- 玩家更新阵容
  938. -- LW_BATTLEGROUND_LINEUP_UPDATE = {
  939. -- {"sourceServerId", "int"}, -- 请求服服务器Id
  940. -- {"playerUuid", "string"}, -- 玩家uuid
  941. -- {"heroArr", "table"}, -- 阵容英雄列表
  942. -- }
  943. -- -- 通知发奖
  944. -- WL_BATTLEGROUND_NOTIFY_PRIZEAWARD = {
  945. -- {"playerArr", "table"}, -- 要发奖的玩家信息列表
  946. -- }
  947. --------------------- 巅峰战场跨服协议结束 -----------------------------------
  948. ---------------------------------异界之战----------------------------
  949. -- 异常提示
  950. WL_ANOTHERWORLDBATTLE_TIPS = {
  951. {"errCode", "int"}, -- 错误码, 具体定义见 AnotherWorldBattleDefine.lua
  952. {"playerUuid", "string"}, -- 玩家uuid
  953. }
  954. -- 获取状态
  955. LW_ANOTHERWORLDBATTLE_GET_STATE = {
  956. {"sourceServerId", "int"}, -- 请求服服务器Id
  957. {"playerUuid", "string"}, -- 玩家uuid
  958. {"myUnionId", "string"}, -- 公会信息
  959. {"isTips", "int"}, -- 是否用于提示
  960. }
  961. WL_ANOTHERWORLDBATTLE_GET_STATE = {
  962. {"playerUuid", "string"}, -- 玩家uuid
  963. {"systemState", "int"}, -- 活动状态
  964. {"joinState", "int"}, -- 报名状态
  965. {"isTips", "int"}, -- 是否用于提示
  966. }
  967. -- 报名
  968. LW_ANOTHERWORLDBATTLE_JOIN = {
  969. {"sourceServerId", "int"}, -- 请求服服务器Id
  970. {"playerUuid", "string"}, -- 玩家uuid
  971. {"unionInfo", "table"}, -- 公会信息
  972. }
  973. WL_ANOTHERWORLDBATTLE_JOIN = {
  974. {"playerUuid", "string"}, -- 玩家uuid
  975. {"myUnionId", "string"}, -- 公会Id
  976. }
  977. -- 查询所有城池信息
  978. LW_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  979. {"sourceServerId", "int"},
  980. {"playerUuid", "string"},
  981. {"myUnionId", "string"}, -- 请求者的公会Id
  982. }
  983. WL_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  984. {"playerUuid", "string"},
  985. {"cityArr", "table"}, -- 公会所在分组的所有城池数据
  986. {"myUnionBaseCityId", "int"}, -- 公会出生点城池Id
  987. {"myOccupyCityArr", "table"}, -- 公会占领的城池信息
  988. {"hasPointNum", "int"}, -- 玩家当前占领的据点数量
  989. {"challengeTimes", "int"}, -- 公会出生点城池Id
  990. {"lastTime", "int"}, -- 公会出生点城池Id
  991. {"occupyPointData", "table"}, -- 公会占领的据点数据
  992. }
  993. -- 查询单个城池的详细信息
  994. LW_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  995. {"sourceServerId", "int"},
  996. {"playerUuid", "string"},
  997. {"myUnionId", "string"},
  998. {"targetCityId", "int"},
  999. }
  1000. WL_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  1001. {"playerUuid", "string"},
  1002. {"targetCityId", "int"},
  1003. {"myUnionOccupyArr", "table"},
  1004. {"pointArr", "table"},
  1005. {"gatherState", "int"}, -- 0-不能集结, 1-可集结, 2-已集结
  1006. {"gatherTime", "int"}, -- 集结时间, 不显示时值为-1
  1007. }
  1008. -- 查询公会所在分组的单个城池的某个据点详细信息
  1009. LW_ANOTHERWORLDBATTLE_POINTtDETAILED_QUERY = {
  1010. {"sourceServerId", "int"},
  1011. {"playerUuid", "string"},
  1012. {"myUnionId", "string"},
  1013. {"targetCityId", "int"},
  1014. {"targetPointIdx", "int"},
  1015. }
  1016. WL_ANOTHERWORLDBATTLE_POINTDETAILED_QUERY = {
  1017. {"playerUuid", "string"},
  1018. {"targetCityId", "int"},
  1019. {"targetPointIdx", "int"},
  1020. {"pointInfo", "table"},
  1021. }
  1022. -- 查询公会出生点信息
  1023. LW_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1024. {"sourceServerId", "int"},
  1025. {"playerUuid", "string"},
  1026. {"myUnionId", "string"},
  1027. }
  1028. WL_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1029. {"playerUuid", "string"},
  1030. {"baseCityInfo", "table"},
  1031. }
  1032. -- 查询玩家占领的据点信息
  1033. LW_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1034. {"sourceServerId", "int"},
  1035. {"playerUuid", "string"},
  1036. {"myUnionId", "string"},
  1037. }
  1038. WL_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1039. {"playerUuid", "string"},
  1040. {"occupyPointArr", "table"},
  1041. }
  1042. -- 查询的公会排行榜
  1043. LW_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1044. {"sourceServerId", "int"},
  1045. {"playerUuid", "string"},
  1046. {"myUnionId", "string"},
  1047. }
  1048. WL_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1049. {"playerUuid", "string"},
  1050. {"myUnionRank", "int"},
  1051. {"unionRankArr", "table"},
  1052. }
  1053. -- 查询的玩家排行榜
  1054. LW_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1055. {"sourceServerId", "int"},
  1056. {"playerUuid", "string"},
  1057. {"myUnionId", "string"},
  1058. }
  1059. WL_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1060. {"playerUuid", "string"},
  1061. {"myRank", "int"},
  1062. {"playerRankArr", "table"},
  1063. }
  1064. -- 集结
  1065. LW_ANOTHERWORLDBATTLE_GATHER = {
  1066. {"sourceServerId", "int"},
  1067. {"playerUuid", "string"},
  1068. {"myUnionId", "string"},
  1069. {"targetCityId", "int"},
  1070. {"opType", "int"},
  1071. }
  1072. WL_ANOTHERWORLDBATTLE_GATHER = {
  1073. {"playerUuid", "string"},
  1074. {"targetCityId", "int"},
  1075. {"opType", "int"},
  1076. }
  1077. -- 挑战某个据点
  1078. LW_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1079. {"sourceServerId", "int"},
  1080. {"playerUuid", "string"},
  1081. {"myUnionId", "string"},
  1082. {"targetCityId", "int"},
  1083. {"targetPointIdx", "int"},
  1084. }
  1085. WL_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1086. {"playerUuid", "string"},
  1087. {"pointInfo", "table"},
  1088. }
  1089. -- 挑战据点结束
  1090. LW_ANOTHERWORLDBATTLE_POINT_CHALLENGE_END = {
  1091. {"sourceServerId", "int"},
  1092. {"playerUuid", "string"},
  1093. {"myUnionId", "string"},
  1094. {"targetCityId", "int"},
  1095. {"targetPointIdx", "int"},
  1096. {"challengeRes", "int"},
  1097. {"playerShowInfo", "table"},
  1098. }
  1099. -- 通知玩家, 据点被别的玩家占领了
  1100. WL_ANOTHERWORLDBATTLE_POINT_LOSE = {
  1101. {"playerUuid", "string"},
  1102. {"loseCityId", "int"},
  1103. {"losePointIdx", "int"},
  1104. }
  1105. -- 发奖
  1106. WL_ANOTHERWORLDBATTLE_ISSUEREWARD = {
  1107. {"unionOccupyInfo", "table"},
  1108. }
  1109. -- 玩家数据更新
  1110. LW_ANOTHERWORLDBATTLE_UPDATE_PLAYER = {
  1111. {"playerUuid", "string"},
  1112. {"updateData", "table"},
  1113. {"myUnionId", "string"},
  1114. }
  1115. -- 公会数据更新
  1116. LW_ANOTHERWORLDBATTLE_UPDATE_UNION = {
  1117. {"myUnionId", "string"},
  1118. {"updateData", "table"},
  1119. }
  1120. -- 更换据点防守阵容
  1121. LW_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1122. {"sourceServerId", "int"},
  1123. {"playerUuid", "string"},
  1124. {"heroArr", "table"},
  1125. {"targetCityId", "int"},
  1126. {"targetPointIdx", "int"},
  1127. {"formation", "int"},--阵法
  1128. {"heroList" , "table"},--上阵英雄
  1129. {"helpList" , "table"},--辅助对象
  1130. }
  1131. -- 更换据点防守阵容
  1132. WL_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1133. {"playerUuid", "string"},
  1134. {"targetCityId", "int"},
  1135. {"targetPointIdx", "int"},
  1136. {"formation", "int"},--阵法
  1137. {"heroList" , "table"},--上阵英雄
  1138. {"helpList" , "table"},--辅助对象
  1139. }
  1140. -- 异界之战活动开启
  1141. WL_ANOTHERWORLDBATTLE_ACT_START = {
  1142. {"startTime", "int"},
  1143. }
  1144. -- 玩家英雄更新
  1145. LW_ANOTHERWORLDBATTLE_UPDATE_HERO = {
  1146. {"playerUuid", "string"},
  1147. {"targetCityId", "int"},
  1148. {"targetPointIdx", "int"},
  1149. {"heroData", "table"},
  1150. }
  1151. -- 放弃某个据点
  1152. LW_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1153. {"sourceServerId", "int"},
  1154. {"playerUuid", "string"},
  1155. {"myUnionId", "string"},
  1156. {"targetCityId", "int"},
  1157. {"targetPointIdx", "int"},
  1158. }
  1159. WL_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1160. {"playerUuid", "string"},
  1161. {"targetCityId", "int"},
  1162. {"targetPointIdx", "int"},
  1163. }
  1164. -- 获取本公会士气信息
  1165. LW_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1166. {"sourceServerId", "int"},
  1167. {"playerUuid", "string"},
  1168. {"myUnionId", "string"},
  1169. }
  1170. WL_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1171. {"playerUuid", "string"},
  1172. {"moraleState", "int"},
  1173. {"moraleAttrIdx", "int"}, -- 士气加成属性索引
  1174. {"moraleStartTime", "int"},
  1175. }
  1176. -- 给本公会加士气
  1177. LW_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1178. {"sourceServerId", "int"},
  1179. {"playerUuid", "string"},
  1180. {"myUnionId", "string"},
  1181. }
  1182. WL_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1183. {"playerUuid", "string"},
  1184. {"opRes", "int"},
  1185. }