InnerProto.lua 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  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. {"errCode", "int"}, -- 错误码
  924. {"playerUuid", "string"}, -- 玩家uuid
  925. {"playerInfo", "table"}, -- 玩家数组
  926. }
  927. -- 挑战结束
  928. LW_BATTLEGROUND_CHALLENGE_END = {
  929. {"sourceServerId", "int"}, -- 请求服服务器Id
  930. {"playerUuid", "string"}, -- 玩家uuid
  931. {"atkRank", "int"}, -- 挑战方原排名
  932. {"defRank", "int"}, -- 防守方原排名
  933. {"challengeRes", "int"}, -- 挑战结果
  934. {"playerShowData", "table"}, -- 挑战方玩家展示信息
  935. }
  936. -- 通知玩家更新数据
  937. WL_BATTLEGROUND_NOTIFY_PLAYER = {
  938. {"playerUuid", "string"}, -- 玩家uuid
  939. {"newRank", "int"}, -- 最新排名
  940. {"atkeServerId", "int"}, -- 挑战方服务器Id
  941. {"atkName", "string"}, -- 挑战者名字
  942. {"updateType", "int"}, -- 更新类型, 1-排名上升, 2-排名下降
  943. }
  944. -- 玩家更新阵容
  945. LW_BATTLEGROUND_LINEUP_UPDATE = {
  946. {"sourceServerId", "int"}, -- 请求服服务器Id
  947. {"playerUuid", "string"}, -- 玩家uuid
  948. {"heroArr", "table"}, -- 阵容英雄列表
  949. }
  950. -- 活动结束
  951. LW_BATTLEGROUND_ACT_END = {
  952. {"sourceServerId", "int"}, -- 请求服服务器Id
  953. }
  954. -- 通知发奖
  955. WL_BATTLEGROUND_NOTIFY_PRIZEAWARD = {
  956. {"playerArr", "table"}, -- 要发奖的玩家信息列表
  957. }
  958. --------------------- 巅峰战场跨服协议结束 -----------------------------------
  959. ---------------------------------异界之战----------------------------
  960. -- 异常提示
  961. WL_ANOTHERWORLDBATTLE_TIPS = {
  962. {"errCode", "int"}, -- 错误码, 具体定义见 AnotherWorldBattleDefine.lua
  963. {"playerUuid", "string"}, -- 玩家uuid
  964. }
  965. -- 获取状态
  966. LW_ANOTHERWORLDBATTLE_GET_STATE = {
  967. {"sourceServerId", "int"}, -- 请求服服务器Id
  968. {"playerUuid", "string"}, -- 玩家uuid
  969. {"myUnionId", "string"}, -- 公会信息
  970. {"isTips", "int"}, -- 是否用于提示
  971. }
  972. WL_ANOTHERWORLDBATTLE_GET_STATE = {
  973. {"playerUuid", "string"}, -- 玩家uuid
  974. {"systemState", "int"}, -- 活动状态
  975. {"joinState", "int"}, -- 报名状态
  976. {"isTips", "int"}, -- 是否用于提示
  977. }
  978. -- 报名
  979. LW_ANOTHERWORLDBATTLE_JOIN = {
  980. {"sourceServerId", "int"}, -- 请求服服务器Id
  981. {"playerUuid", "string"}, -- 玩家uuid
  982. {"unionInfo", "table"}, -- 公会信息
  983. }
  984. WL_ANOTHERWORLDBATTLE_JOIN = {
  985. {"playerUuid", "string"}, -- 玩家uuid
  986. {"myUnionId", "string"}, -- 公会Id
  987. }
  988. -- 查询所有城池信息
  989. LW_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  990. {"sourceServerId", "int"},
  991. {"playerUuid", "string"},
  992. {"myUnionId", "string"}, -- 请求者的公会Id
  993. }
  994. WL_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  995. {"playerUuid", "string"},
  996. {"cityArr", "table"}, -- 公会所在分组的所有城池数据
  997. {"myUnionBaseCityId", "int"}, -- 公会出生点城池Id
  998. {"myOccupyCityArr", "table"}, -- 公会占领的城池信息
  999. {"hasPointNum", "int"}, -- 玩家当前占领的据点数量
  1000. {"challengeTimes", "int"}, -- 公会出生点城池Id
  1001. {"lastTime", "int"}, -- 公会出生点城池Id
  1002. {"occupyPointData", "table"}, -- 公会占领的据点数据
  1003. }
  1004. -- 查询单个城池的详细信息
  1005. LW_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  1006. {"sourceServerId", "int"},
  1007. {"playerUuid", "string"},
  1008. {"myUnionId", "string"},
  1009. {"targetCityId", "int"},
  1010. }
  1011. WL_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  1012. {"playerUuid", "string"},
  1013. {"targetCityId", "int"},
  1014. {"myUnionOccupyArr", "table"},
  1015. {"pointArr", "table"},
  1016. {"gatherState", "int"}, -- 0-不能集结, 1-可集结, 2-已集结
  1017. {"gatherTime", "int"}, -- 集结时间, 不显示时值为-1
  1018. }
  1019. -- 查询公会所在分组的单个城池的某个据点详细信息
  1020. LW_ANOTHERWORLDBATTLE_POINTtDETAILED_QUERY = {
  1021. {"sourceServerId", "int"},
  1022. {"playerUuid", "string"},
  1023. {"myUnionId", "string"},
  1024. {"targetCityId", "int"},
  1025. {"targetPointIdx", "int"},
  1026. }
  1027. WL_ANOTHERWORLDBATTLE_POINTDETAILED_QUERY = {
  1028. {"playerUuid", "string"},
  1029. {"targetCityId", "int"},
  1030. {"targetPointIdx", "int"},
  1031. {"pointInfo", "table"},
  1032. }
  1033. -- 查询公会出生点信息
  1034. LW_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1035. {"sourceServerId", "int"},
  1036. {"playerUuid", "string"},
  1037. {"myUnionId", "string"},
  1038. }
  1039. WL_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1040. {"playerUuid", "string"},
  1041. {"baseCityInfo", "table"},
  1042. }
  1043. -- 查询玩家占领的据点信息
  1044. LW_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1045. {"sourceServerId", "int"},
  1046. {"playerUuid", "string"},
  1047. {"myUnionId", "string"},
  1048. }
  1049. WL_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1050. {"playerUuid", "string"},
  1051. {"occupyPointArr", "table"},
  1052. }
  1053. -- 查询的公会排行榜
  1054. LW_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1055. {"sourceServerId", "int"},
  1056. {"playerUuid", "string"},
  1057. {"myUnionId", "string"},
  1058. }
  1059. WL_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1060. {"playerUuid", "string"},
  1061. {"myUnionRank", "int"},
  1062. {"unionRankArr", "table"},
  1063. }
  1064. -- 查询的玩家排行榜
  1065. LW_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1066. {"sourceServerId", "int"},
  1067. {"playerUuid", "string"},
  1068. {"myUnionId", "string"},
  1069. }
  1070. WL_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1071. {"playerUuid", "string"},
  1072. {"myRank", "int"},
  1073. {"playerRankArr", "table"},
  1074. }
  1075. -- 集结
  1076. LW_ANOTHERWORLDBATTLE_GATHER = {
  1077. {"sourceServerId", "int"},
  1078. {"playerUuid", "string"},
  1079. {"myUnionId", "string"},
  1080. {"targetCityId", "int"},
  1081. {"opType", "int"},
  1082. }
  1083. WL_ANOTHERWORLDBATTLE_GATHER = {
  1084. {"playerUuid", "string"},
  1085. {"targetCityId", "int"},
  1086. {"opType", "int"},
  1087. }
  1088. -- 挑战某个据点
  1089. LW_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1090. {"sourceServerId", "int"},
  1091. {"playerUuid", "string"},
  1092. {"myUnionId", "string"},
  1093. {"targetCityId", "int"},
  1094. {"targetPointIdx", "int"},
  1095. }
  1096. WL_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1097. {"playerUuid", "string"},
  1098. {"pointInfo", "table"},
  1099. }
  1100. -- 挑战据点结束
  1101. LW_ANOTHERWORLDBATTLE_POINT_CHALLENGE_END = {
  1102. {"sourceServerId", "int"},
  1103. {"playerUuid", "string"},
  1104. {"myUnionId", "string"},
  1105. {"targetCityId", "int"},
  1106. {"targetPointIdx", "int"},
  1107. {"challengeRes", "int"},
  1108. {"playerShowInfo", "table"},
  1109. }
  1110. -- 通知玩家, 据点被别的玩家占领了
  1111. WL_ANOTHERWORLDBATTLE_POINT_LOSE = {
  1112. {"playerUuid", "string"},
  1113. {"loseCityId", "int"},
  1114. {"losePointIdx", "int"},
  1115. }
  1116. -- 发奖
  1117. WL_ANOTHERWORLDBATTLE_ISSUEREWARD = {
  1118. {"unionOccupyInfo", "table"},
  1119. }
  1120. -- 玩家数据更新
  1121. LW_ANOTHERWORLDBATTLE_UPDATE_PLAYER = {
  1122. {"playerUuid", "string"},
  1123. {"updateData", "table"},
  1124. {"myUnionId", "string"},
  1125. }
  1126. -- 公会数据更新
  1127. LW_ANOTHERWORLDBATTLE_UPDATE_UNION = {
  1128. {"myUnionId", "string"},
  1129. {"updateData", "table"},
  1130. }
  1131. -- 更换据点防守阵容
  1132. LW_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1133. {"sourceServerId", "int"},
  1134. {"playerUuid", "string"},
  1135. {"heroArr", "table"},
  1136. {"targetCityId", "int"},
  1137. {"targetPointIdx", "int"},
  1138. {"formation", "int"},--阵法
  1139. {"heroList" , "table"},--上阵英雄
  1140. {"helpList" , "table"},--辅助对象
  1141. }
  1142. -- 更换据点防守阵容
  1143. WL_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1144. {"playerUuid", "string"},
  1145. {"targetCityId", "int"},
  1146. {"targetPointIdx", "int"},
  1147. {"formation", "int"},--阵法
  1148. {"heroList" , "table"},--上阵英雄
  1149. {"helpList" , "table"},--辅助对象
  1150. }
  1151. -- 异界之战活动开启
  1152. WL_ANOTHERWORLDBATTLE_ACT_START = {
  1153. {"startTime", "int"},
  1154. }
  1155. -- 玩家英雄更新
  1156. LW_ANOTHERWORLDBATTLE_UPDATE_HERO = {
  1157. {"playerUuid", "string"},
  1158. {"targetCityId", "int"},
  1159. {"targetPointIdx", "int"},
  1160. {"heroData", "table"},
  1161. }
  1162. -- 放弃某个据点
  1163. LW_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1164. {"sourceServerId", "int"},
  1165. {"playerUuid", "string"},
  1166. {"myUnionId", "string"},
  1167. {"targetCityId", "int"},
  1168. {"targetPointIdx", "int"},
  1169. }
  1170. WL_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1171. {"playerUuid", "string"},
  1172. {"targetCityId", "int"},
  1173. {"targetPointIdx", "int"},
  1174. }
  1175. -- 获取本公会士气信息
  1176. LW_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1177. {"sourceServerId", "int"},
  1178. {"playerUuid", "string"},
  1179. {"myUnionId", "string"},
  1180. }
  1181. WL_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1182. {"playerUuid", "string"},
  1183. {"moraleState", "int"},
  1184. {"moraleAttrIdx", "int"}, -- 士气加成属性索引
  1185. {"moraleStartTime", "int"},
  1186. }
  1187. -- 给本公会加士气
  1188. LW_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1189. {"sourceServerId", "int"},
  1190. {"playerUuid", "string"},
  1191. {"myUnionId", "string"},
  1192. }
  1193. WL_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1194. {"playerUuid", "string"},
  1195. {"opRes", "int"},
  1196. }