InnerProto.lua 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567
  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_DESKTOP_SET = {
  649. {"nSrcServerID", "int"}, -- 来源区服ID
  650. {"channelId", "int"}, -- 渠道ID
  651. {"serverId", "int"}, -- 区服ID
  652. {"account", "string"}, -- 账号
  653. {"platform", "string"}, -- 平台标识
  654. }
  655. -- 普通服→中心服:查询桌面状态
  656. LW_DESKTOP_QUERY = {
  657. {"nSrcServerID", "int"}, -- 来源区服ID(用于路由回包)
  658. {"channelId", "int"}, -- 渠道ID
  659. {"serverId", "int"}, -- 区服ID
  660. {"account", "string"}, -- 账号
  661. {"platform", "string"}, -- 平台标识
  662. }
  663. -- 中心服→普通服:查询结果回包
  664. WL_DESKTOP_QUERY = {
  665. {"channelId", "int"}, -- 渠道ID
  666. {"serverId", "int"}, -- 区服ID
  667. {"account", "string"}, -- 账号
  668. {"platform", "string"}, -- 平台标识
  669. {"isDesktopAdded", "int"}, -- 是否已添加 0否 1是
  670. }
  671. -------------------- 桌面添加结束 -----------------------------------
  672. --------------------------诸神圣域------------------------------------
  673. -- 普通服向跨服请求排行榜数据
  674. LW_GODSATREA_QUERY_RANKLIST = {
  675. {"playerUid", "string"}, -- 请求者uuid
  676. {"sourceServerId", "int"}, -- 请求方服务器ID
  677. }
  678. WL_GODSATREA_QUERY_RANKLIST = {
  679. {"myRank", "int"}, -- 请求者排名
  680. {"playerUid", "string"}, -- 请求者uuid
  681. {"rankList", "table"}, -- 排行榜数据
  682. }
  683. -- 普通服向跨服请求某个排名的玩家数据
  684. LW_GODSATREA_QUERY_PLAYER_INFO = {
  685. {"sourceServerId", "int"}, -- 请求方服务器ID
  686. {"targetRank", "int"}, -- 要查看玩家的排名
  687. {"targetUid", "string"}, -- 要查看玩家的uuid
  688. {"playerUid", "string"}, -- 请求者uuid
  689. }
  690. WL_GODSATREA_QUERY_PLAYER_INFO = {
  691. {"res", "int"}, -- 请求结果, 0: 成功, -1: 数据异常, -2: 不是最新数据
  692. {"playerInfo", "table"}, -- 排行榜数据
  693. {"playerUid", "string"}, -- 请求者uuid
  694. }
  695. -- 查询是否能挑战玩家
  696. LW_GODSATREA_CHALLENGE_QUERY = {
  697. {"sourceServerId", "int"}, -- 进攻方服务器ID
  698. {"defenseRank", "int"}, -- 防御方排名
  699. {"defenseUid", "string"}, -- 防御方uuid
  700. {"attackerUid", "string"}, -- 进攻方uid
  701. }
  702. WL_GODSATREA_CHALLENGE_QUERY = {
  703. {"res", "int"}, -- 请求结果, 0: 可以挑战, 1: 自己正被挑战, 2: 目标正在战斗,-1: 数据异常, -2: 不是最新数据,-3:不能挑战比自己低的
  704. {"defenseServerId", "int"}, -- 防御方服务器ID
  705. {"defenseRank", "int"}, -- 防御方排名
  706. {"defenseUid", "string"}, -- 防御方uuid
  707. {"attackerUid", "string"}, -- 进攻方uid
  708. {"defenseName", "string"}, -- 防御方名字
  709. }
  710. -- 请求挑战玩家
  711. -- LW_GODSATREA_CHALLENGE = {
  712. -- {"sourceServerId", "int"}, -- 进攻方服务器ID
  713. -- {"defenseRank", "int"}, -- 防御方排名
  714. -- {"defenseUid", "string"}, -- 防御方uuid
  715. -- {"attackerUid", "string"}, -- 进攻方uid
  716. -- }
  717. -- -- 跨服向防御方请求战斗数据
  718. -- WL_GODSATREA_GET_COMBAT_DATA = {
  719. -- {"defenseRank", "int"}, -- 防御方排名
  720. -- {"defenseUid", "string"}, -- 防御方uuid
  721. -- {"attackerRank", "int"}, -- 进攻方排名
  722. -- {"attackerUid", "string"}, -- 进攻方uuid
  723. -- }
  724. -- -- 防御方向跨服发送战斗数据
  725. -- LW_GODSATREA_GET_COMBAT_DATA = {
  726. -- {"sourceServerId", "int"}, -- 防御方服务器ID
  727. -- {"attackerRank", "int"}, -- 进攻方排名
  728. -- {"attackerUid", "string"}, -- 进攻方uuid
  729. -- {"defenseRank", "int"}, -- 防御方排名
  730. -- {"defenseUid", "string"}, -- 防御方uuid
  731. -- {"defenseCombatData", "table"}, -- 防御方的战斗数据
  732. -- }
  733. -- -- 跨服向挑战方发送防御方的战斗数据
  734. -- WL_GODSATREA_CHALLENGE = {
  735. -- {"res", "int"}, -- 请求结果
  736. -- {"defenseRank", "int"}, -- 防御方排名
  737. -- {"defenseUid", "string"}, -- 防御方uuid
  738. -- {"defenseMonsterOUtId", "int"}, -- 防御方怪物ID, 如果值不为0, 则表示防御方是怪物, 就用不到 defenseCombatData 了
  739. -- {"defenseCombatData", "table"}, -- 防御方的战斗数据
  740. -- }
  741. -- 通知跨服挑战成功
  742. LW_GODSATREA_WIN = {
  743. {"sourceServerId", "int"}, -- 进攻方服务器ID
  744. {"defenseRank", "int"}, -- 防御方排名
  745. {"defenseUid", "string"}, -- 防御方uuid
  746. {"attackerUid", "string"}, -- 进攻方uuid
  747. {"attackInfo", "table"}, -- 进攻方信息。 如果进攻方没有排名时挑战胜利, 更新展示信息
  748. }
  749. -- 跨服通知玩家, 更换称号
  750. WL_GODSATREA_UPDATE_CHENGHAO = {
  751. {"targetUid", "string"}, -- 玩家uuid
  752. {"newRank", "int"}, -- 新的排名
  753. {"enemyName", "string"}, -- 敌方名字
  754. {"isWinner", "int"}, -- 是否是胜利方, 0-否,1-是
  755. }
  756. -- 向跨服请求某个排名的战斗录像
  757. LW_GODSATREA_QUERY_RANK_VIDEO = {
  758. {"sourceServerId", "int"}, -- 请求方服务器ID
  759. {"playerUid", "string"}, -- 玩家uuid
  760. {"targetRank", "int"}, -- 目标排名
  761. }
  762. -- 跨服向请求服发送目标的战斗录像
  763. WL_GODSATREA_QUERY_RANK_VIDEO = {
  764. {"isFinish", "int"}, -- 是否发送完成,0-否, 1-是
  765. {"playerUid", "string"}, -- 玩家uuid
  766. {"videoData", "zip"}, -- 排名战斗录像
  767. }
  768. -- 通知跨服, 玩家基础数据有更新
  769. LW_GODSATREA_UPDATE_PLAYER_BASE_INFO = {
  770. -- {"sourceServerId", "int"}, -- 服务器ID
  771. {"playerUid", "string"}, -- 玩家uuid
  772. {"playerInfo", "table"}, -- 玩家信息, 改名等修改基础数据时更新
  773. }
  774. -- 通知跨服, 英雄数据有更新
  775. LW_GODSATREA_UPDATE_PLAYER_HERO_INFO = {
  776. -- {"sourceServerId", "int"}, -- 服务器ID
  777. {"playerUid", "string"}, -- 玩家uuid
  778. {"power", "int"}, -- 战力
  779. {"heroInfo", "table"}, -- 玩家英雄信息
  780. }
  781. -- 跨服通知游戏服发奖励
  782. WL_GODSATREA_BROCAST_REWARD = {
  783. {"uid2RankTb", "table"}, -- uid->rank 表
  784. }
  785. -- 跨服通知玩家, 更新数据
  786. WL_GODSATREA_UPDATE_PLAYER_INFO = {
  787. {"playerUid", "string"}, -- 玩家uuid
  788. }
  789. ---------------------------------------------------------------------
  790. ---------------------------------战区争霸----------------------------
  791. -- 跨服通知普通服活动开启
  792. WL_AREABATTLE_OPEN = {
  793. }
  794. -- 普通服报名参加争霸活动
  795. LW_AREABATTLE_JOIN_BATTLE = {
  796. {"sourceServerId", "int"}, -- 参战服务器Id
  797. {"joinBattleArray", "table"}, -- 参战玩家列表
  798. }
  799. -- 普通服请求争霸活动的基本数据
  800. LW_AREABATTLE_BASEINFO_QUERY = {
  801. {"sourceServerId", "int"},
  802. {"playerUuid", "string"}, -- 玩家uuid
  803. }
  804. WL_AREABATTLE_BASEINFO_QUERY = {
  805. {"stage", "int"}, -- 当前阶段, 0-休战, 1-准备, 2- 战斗, 3-发奖
  806. {"startTime", "int"}, -- 本轮活动开始时间
  807. {"endTime", "int"}, -- 本轮活动结束时间
  808. {"playerUuid", "string"}, -- 玩家uuid
  809. }
  810. -- 普通服请求本服参与争霸活动的玩家数据
  811. LW_AREABATTLE_JOINPLAYER_QUERY = {
  812. {"sourceServerId", "int"},
  813. {"playerUuid", "string"}, -- 玩家uuid
  814. }
  815. WL_AREABATTLE_JOINPLAYER_QUERY = {
  816. {"errCode", "int"}, -- 错误码,0: 正常, -1: 本服每次没有参加战斗
  817. {"playerArray", "table"},
  818. {"playerUuid", "string"}, -- 玩家uuid
  819. }
  820. -- 普通服请求参与本轮活动的区服的匹配列表
  821. LW_AREABATTLE_MATCHLIST_QUERY = {
  822. {"sourceServerId", "int"},
  823. {"playerUuid", "string"}, -- 玩家uuid
  824. }
  825. WL_AREABATTLE_MATCHLIST_QUERY = {
  826. {"matchList", "table"},
  827. {"playerUuid", "string"}, -- 玩家uuid
  828. }
  829. -- 跨服通知普通服发奖
  830. WL_AREABATTLE_SEND_REWARD = {
  831. {"srvBattleRes", "table"}, -- 本服战斗结果
  832. }
  833. -- 普通服请求本服相关的录像展示数据
  834. LW_AREABATTLE_VIDEOSHOW_QUERY = {
  835. {"sourceServerId", "int"},
  836. {"playerUuid", "string"}, -- 玩家uuid
  837. }
  838. WL_AREABATTLE_VIDEOSHOW_QUERY = {
  839. {"errCode", "int"}, -- 错误码,0: 正常, -1: 本服每次没有参加战斗, -2: 录像数据还没产生,请稍后再尝试
  840. {"videoShowData", "table"}, -- 录像数据
  841. {"srvInfo", "table"}, -- 区服数据
  842. {"playerUuid", "string"}, -- 玩家uuid
  843. }
  844. --------------------- 巅峰战场跨服协议开始 -----------------------------------
  845. -- 普通服请求跨服排名数据(普通->中心)
  846. -- LW_PEAK_BATTLEFIELD_QUERY_RANK_O2C = {
  847. -- {"nSrcServerID", "int"}, -- 服务器ID
  848. -- {"nRankType", "int"}, -- 排名类型(1=个人排名,2=服务器排名)
  849. -- }
  850. -- -- 请求跨服排名数据(中心->数据服)
  851. -- WL_PEAK_BATTLEFIELD_QUERY_RANK_C2D = {
  852. -- {"nSrcServerID", "int"}, -- 服务器ID
  853. -- {"nRankType", "int"}, -- 排名类型
  854. -- }
  855. -- -- 请求跨服排名数据(数据服->中心)
  856. -- LW_PEAK_BATTLEFIELD_QUERY_RANK_D2C = {
  857. -- {"nSrcServerID", "int"}, -- 服务器ID
  858. -- {"nRankType", "int"}, -- 排名类型
  859. -- {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  860. -- {"tRankInfo", "table"}, -- 排行榜数据
  861. -- {"nFirst", "int"}, -- 首次发送 1 是 0 否
  862. -- }
  863. -- -- 获取到跨服排名数据(中心->普通)
  864. -- WL_PEAK_BATTLEFIELD_QUERY_RANK_C2O = {
  865. -- {"nFirst", "int"}, -- 首次发送 1 是 0 否
  866. -- {"nIsEnd", "int"}, -- 是否发送完成 0 未 1 发送完
  867. -- {"tRankInfo", "table"}, -- 排行榜数据
  868. -- }
  869. -- -- 普通服通知排名变化(普通->中心)
  870. -- LW_PEAK_BATTLEFIELD_RANK_CHANGE_O2C = {
  871. -- {"uuid", "string"}, -- 玩家uuid
  872. -- {"name", "string"}, -- 玩家名字
  873. -- {"head", "int"}, -- 玩家头像ID
  874. -- {"headFrame", "int"}, -- 玩家头像框
  875. -- {"nSrcServerID", "int"}, -- 服务器ID
  876. -- {"nRank", "int"}, -- 当前排名
  877. -- {"nValue", "int"}, -- 排名值(如积分等)
  878. -- {"servername", "string"}, -- 服务器名称
  879. -- }
  880. -- -- 排名变化通知(中心->数据服)
  881. -- WL_PEAK_BATTLEFIELD_RANK_CHANGE_C2D = {
  882. -- {"uuid", "string"}, -- 玩家uuid
  883. -- {"name", "string"}, -- 玩家名字
  884. -- {"head", "int"}, -- 玩家头像ID
  885. -- {"headFrame", "int"}, -- 玩家头像框
  886. -- {"nSrcServerID", "int"}, -- 服务器ID
  887. -- {"nRank", "int"}, -- 当前排名
  888. -- {"nValue", "int"}, -- 排名值
  889. -- {"servername", "string"}, -- 服务器名称
  890. -- }
  891. -- -- 发送排名奖励(数据服->中心)
  892. -- LW_PEAK_BATTLEFIELD_SEND_RANK_REWARD_D2C = {
  893. -- {"uuid", "string"}, -- 玩家uid
  894. -- {"nServerID", "int"}, -- 服务器ID
  895. -- {"nRank", "int"}, -- 排名
  896. -- {"tReward", "table"}, -- 奖励列表
  897. -- }
  898. -- -- 发送排名奖励(中心->普通)
  899. -- WL_PEAK_BATTLEFIELD_SEND_RANK_REWARD_C2O = {
  900. -- {"uuid", "string"}, -- 玩家uid
  901. -- {"nRank", "int"}, -- 排名
  902. -- {"tReward", "table"}, -- 奖励列表
  903. -- }
  904. -- 查询玩家排名
  905. LW_BATTLEGROUND_PLAYER_RANK_QUERY = {
  906. {"sourceServerId", "int"}, -- 请求服服务器Id
  907. {"playerUuid", "string"}, -- 玩家uuid
  908. }
  909. WL_BATTLEGROUND_PLAYER_RANK_QUERY = {
  910. {"playerUuid", "string"}, -- 玩家uuid
  911. {"playerRank", "int"}, -- 玩家排名
  912. }
  913. -- 查询对手列表信息
  914. LW_BATTLEGROUND_MATCHLIST_QUERY = {
  915. {"sourceServerId", "int"}, -- 请求服服务器Id
  916. {"playerUuid", "string"}, -- 玩家uuid
  917. {"matchList", "table"}, -- 对手列表
  918. }
  919. WL_BATTLEGROUND_MATCHLIST_QUERY = {
  920. {"playerUuid", "string"}, -- 玩家uuid
  921. {"playerInfoList", "table"}, -- 对手列表信息
  922. }
  923. -- 查询玩家信息
  924. LW_BATTLEGROUND_PLAYER_DATA_QUERY = {
  925. {"sourceServerId", "int"}, -- 请求服服务器Id
  926. {"playerUuid", "string"}, -- 玩家uuid
  927. {"playerRank", "int"}, -- 玩家排名
  928. }
  929. WL_BATTLEGROUND_PLAYER_DATA_QUERY = {
  930. {"playerUuid", "string"}, -- 玩家uuid
  931. {"playerInfo", "table"}, -- 玩家信息
  932. }
  933. -- 查询排行榜数据
  934. LW_BATTLEGROUND_RANKLIST_QUERY = {
  935. {"sourceServerId", "int"}, -- 请求服服务器Id
  936. {"playerUuid", "string"}, -- 玩家uuid
  937. }
  938. WL_BATTLEGROUND_RANKLIST_QUERY = {
  939. {"playerUuid", "string"}, -- 玩家uuid
  940. {"rankList", "table"}, -- 排行榜信息
  941. }
  942. -- 请求挑战玩家
  943. LW_BATTLEGROUND_CHALLENGE_QUERY = {
  944. {"sourceServerId", "int"}, -- 请求服服务器Id
  945. {"playerUuid", "string"}, -- 玩家uuid
  946. {"rank", "int"}, -- 排名
  947. }
  948. WL_BATTLEGROUND_CHALLENGE_QUERY = {
  949. {"errCode", "int"}, -- 错误码
  950. {"playerUuid", "string"}, -- 玩家uuid
  951. {"playerInfo", "table"}, -- 玩家数组
  952. }
  953. -- 挑战结束
  954. LW_BATTLEGROUND_CHALLENGE_END = {
  955. {"sourceServerId", "int"}, -- 请求服服务器Id
  956. {"playerUuid", "string"}, -- 玩家uuid
  957. {"atkRank", "int"}, -- 挑战方原排名
  958. {"defRank", "int"}, -- 防守方原排名
  959. {"challengeRes", "int"}, -- 挑战结果
  960. {"playerShowData", "table"}, -- 挑战方玩家展示信息
  961. }
  962. -- 通知玩家更新数据
  963. WL_BATTLEGROUND_NOTIFY_PLAYER = {
  964. {"playerUuid", "string"}, -- 玩家uuid
  965. {"newRank", "int"}, -- 最新排名
  966. {"atkeServerId", "int"}, -- 挑战方服务器Id
  967. {"atkName", "string"}, -- 挑战者名字
  968. {"updateType", "int"}, -- 更新类型, 1-排名上升, 2-排名下降
  969. }
  970. -- 玩家更新阵容
  971. LW_BATTLEGROUND_LINEUP_UPDATE = {
  972. {"sourceServerId", "int"}, -- 请求服服务器Id
  973. {"playerUuid", "string"}, -- 玩家uuid
  974. {"heroArr", "table"}, -- 阵容英雄列表
  975. }
  976. -- 活动结束
  977. LW_BATTLEGROUND_ACT_END = {
  978. {"sourceServerId", "int"}, -- 请求服服务器Id
  979. }
  980. -- 通知发奖
  981. WL_BATTLEGROUND_NOTIFY_PRIZEAWARD = {
  982. {"playerArr", "table"}, -- 要发奖的玩家信息列表
  983. }
  984. --------------------- 巅峰战场跨服协议结束 -----------------------------------
  985. ---------------------------------异界之战----------------------------
  986. -- 异常提示
  987. WL_ANOTHERWORLDBATTLE_TIPS = {
  988. {"errCode", "int"}, -- 错误码, 具体定义见 AnotherWorldBattleDefine.lua
  989. {"playerUuid", "string"}, -- 玩家uuid
  990. }
  991. -- 获取状态
  992. LW_ANOTHERWORLDBATTLE_GET_STATE = {
  993. {"sourceServerId", "int"}, -- 请求服服务器Id
  994. {"playerUuid", "string"}, -- 玩家uuid
  995. {"myUnionId", "string"}, -- 公会信息
  996. {"isTips", "int"}, -- 是否用于提示
  997. }
  998. WL_ANOTHERWORLDBATTLE_GET_STATE = {
  999. {"playerUuid", "string"}, -- 玩家uuid
  1000. {"systemState", "int"}, -- 活动状态
  1001. {"joinState", "int"}, -- 报名状态
  1002. {"isTips", "int"}, -- 是否用于提示
  1003. }
  1004. -- 报名
  1005. LW_ANOTHERWORLDBATTLE_JOIN = {
  1006. {"sourceServerId", "int"}, -- 请求服服务器Id
  1007. {"playerUuid", "string"}, -- 玩家uuid
  1008. {"unionInfo", "table"}, -- 公会信息
  1009. }
  1010. WL_ANOTHERWORLDBATTLE_JOIN = {
  1011. {"playerUuid", "string"}, -- 玩家uuid
  1012. {"myUnionId", "string"}, -- 公会Id
  1013. }
  1014. -- 查询所有城池信息
  1015. LW_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  1016. {"sourceServerId", "int"},
  1017. {"playerUuid", "string"},
  1018. {"myUnionId", "string"}, -- 请求者的公会Id
  1019. }
  1020. WL_ANOTHERWORLDBATTLE_ALLCITY_QUERY = {
  1021. {"playerUuid", "string"},
  1022. {"cityArr", "table"}, -- 公会所在分组的所有城池数据
  1023. {"myUnionBaseCityId", "int"}, -- 公会出生点城池Id
  1024. {"myOccupyCityArr", "table"}, -- 公会占领的城池信息
  1025. {"hasPointNum", "int"}, -- 玩家当前占领的据点数量
  1026. {"challengeTimes", "int"}, -- 公会出生点城池Id
  1027. {"lastTime", "int"}, -- 公会出生点城池Id
  1028. {"occupyPointData", "table"}, -- 公会占领的据点数据
  1029. }
  1030. -- 查询单个城池的详细信息
  1031. LW_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  1032. {"sourceServerId", "int"},
  1033. {"playerUuid", "string"},
  1034. {"myUnionId", "string"},
  1035. {"targetCityId", "int"},
  1036. }
  1037. WL_ANOTHERWORLDBATTLE_CITYDETAILED_QUERY = {
  1038. {"playerUuid", "string"},
  1039. {"targetCityId", "int"},
  1040. {"myUnionOccupyArr", "table"},
  1041. {"pointArr", "table"},
  1042. {"gatherState", "int"}, -- 0-不能集结, 1-可集结, 2-已集结
  1043. {"gatherTime", "int"}, -- 集结时间, 不显示时值为-1
  1044. }
  1045. -- 查询公会所在分组的单个城池的某个据点详细信息
  1046. LW_ANOTHERWORLDBATTLE_POINTtDETAILED_QUERY = {
  1047. {"sourceServerId", "int"},
  1048. {"playerUuid", "string"},
  1049. {"myUnionId", "string"},
  1050. {"targetCityId", "int"},
  1051. {"targetPointIdx", "int"},
  1052. }
  1053. WL_ANOTHERWORLDBATTLE_POINTDETAILED_QUERY = {
  1054. {"playerUuid", "string"},
  1055. {"targetCityId", "int"},
  1056. {"targetPointIdx", "int"},
  1057. {"pointInfo", "table"},
  1058. }
  1059. -- 查询公会出生点信息
  1060. LW_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1061. {"sourceServerId", "int"},
  1062. {"playerUuid", "string"},
  1063. {"myUnionId", "string"},
  1064. }
  1065. WL_ANOTHERWORLDBATTLE_BASECITY_QUERY = {
  1066. {"playerUuid", "string"},
  1067. {"baseCityInfo", "table"},
  1068. }
  1069. -- 查询玩家占领的据点信息
  1070. LW_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1071. {"sourceServerId", "int"},
  1072. {"playerUuid", "string"},
  1073. {"myUnionId", "string"},
  1074. }
  1075. WL_ANOTHERWORLDBATTLE_PLAYEROCCUPYPOINT_QUERY = {
  1076. {"playerUuid", "string"},
  1077. {"occupyPointArr", "table"},
  1078. }
  1079. -- 查询的公会排行榜
  1080. LW_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1081. {"sourceServerId", "int"},
  1082. {"playerUuid", "string"},
  1083. {"myUnionId", "string"},
  1084. }
  1085. WL_ANOTHERWORLDBATTLE_UNIONRANK_QUERY = {
  1086. {"playerUuid", "string"},
  1087. {"myUnionRank", "int"},
  1088. {"unionRankArr", "table"},
  1089. }
  1090. -- 查询的玩家排行榜
  1091. LW_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1092. {"sourceServerId", "int"},
  1093. {"playerUuid", "string"},
  1094. {"myUnionId", "string"},
  1095. }
  1096. WL_ANOTHERWORLDBATTLE_PLAYERRANK_QUERY = {
  1097. {"playerUuid", "string"},
  1098. {"myRank", "int"},
  1099. {"playerRankArr", "table"},
  1100. }
  1101. -- 集结
  1102. LW_ANOTHERWORLDBATTLE_GATHER = {
  1103. {"sourceServerId", "int"},
  1104. {"playerUuid", "string"},
  1105. {"myUnionId", "string"},
  1106. {"targetCityId", "int"},
  1107. {"opType", "int"},
  1108. }
  1109. WL_ANOTHERWORLDBATTLE_GATHER = {
  1110. {"playerUuid", "string"},
  1111. {"targetCityId", "int"},
  1112. {"opType", "int"},
  1113. }
  1114. -- 挑战某个据点
  1115. LW_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1116. {"sourceServerId", "int"},
  1117. {"playerUuid", "string"},
  1118. {"myUnionId", "string"},
  1119. {"targetCityId", "int"},
  1120. {"targetPointIdx", "int"},
  1121. }
  1122. WL_ANOTHERWORLDBATTLE_POINT_ISCAN_CHALLENGE = {
  1123. {"playerUuid", "string"},
  1124. {"pointInfo", "table"},
  1125. }
  1126. -- 挑战据点结束
  1127. LW_ANOTHERWORLDBATTLE_POINT_CHALLENGE_END = {
  1128. {"sourceServerId", "int"},
  1129. {"playerUuid", "string"},
  1130. {"myUnionId", "string"},
  1131. {"targetCityId", "int"},
  1132. {"targetPointIdx", "int"},
  1133. {"challengeRes", "int"},
  1134. {"playerShowInfo", "table"},
  1135. }
  1136. -- 通知玩家, 据点被别的玩家占领了
  1137. WL_ANOTHERWORLDBATTLE_POINT_LOSE = {
  1138. {"playerUuid", "string"},
  1139. {"loseCityId", "int"},
  1140. {"losePointIdx", "int"},
  1141. }
  1142. -- 发奖
  1143. WL_ANOTHERWORLDBATTLE_ISSUEREWARD = {
  1144. {"unionOccupyInfo", "table"},
  1145. }
  1146. -- 玩家数据更新
  1147. LW_ANOTHERWORLDBATTLE_UPDATE_PLAYER = {
  1148. {"playerUuid", "string"},
  1149. {"updateData", "table"},
  1150. {"myUnionId", "string"},
  1151. }
  1152. -- 公会数据更新
  1153. LW_ANOTHERWORLDBATTLE_UPDATE_UNION = {
  1154. {"myUnionId", "string"},
  1155. {"updateData", "table"},
  1156. }
  1157. -- 更换据点防守阵容
  1158. LW_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1159. {"sourceServerId", "int"},
  1160. {"playerUuid", "string"},
  1161. {"heroArr", "table"},
  1162. {"targetCityId", "int"},
  1163. {"targetPointIdx", "int"},
  1164. {"formation", "int"},--阵法
  1165. {"heroList" , "table"},--上阵英雄
  1166. {"helpList" , "table"},--辅助对象
  1167. }
  1168. -- 更换据点防守阵容
  1169. WL_ANOTHERWORLDBATTLE_UPDATE_POINT_LINEIP = {
  1170. {"playerUuid", "string"},
  1171. {"targetCityId", "int"},
  1172. {"targetPointIdx", "int"},
  1173. {"formation", "int"},--阵法
  1174. {"heroList" , "table"},--上阵英雄
  1175. {"helpList" , "table"},--辅助对象
  1176. }
  1177. -- 异界之战活动开启
  1178. WL_ANOTHERWORLDBATTLE_ACT_START = {
  1179. {"startTime", "int"},
  1180. }
  1181. -- 玩家英雄更新
  1182. LW_ANOTHERWORLDBATTLE_UPDATE_HERO = {
  1183. {"playerUuid", "string"},
  1184. {"targetCityId", "int"},
  1185. {"targetPointIdx", "int"},
  1186. {"heroData", "table"},
  1187. }
  1188. -- 放弃某个据点
  1189. LW_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1190. {"sourceServerId", "int"},
  1191. {"playerUuid", "string"},
  1192. {"myUnionId", "string"},
  1193. {"targetCityId", "int"},
  1194. {"targetPointIdx", "int"},
  1195. }
  1196. WL_ANOTHERWORLDBATTLE_LEAVE_POINT = {
  1197. {"playerUuid", "string"},
  1198. {"targetCityId", "int"},
  1199. {"targetPointIdx", "int"},
  1200. }
  1201. -- 获取本公会士气信息
  1202. LW_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1203. {"sourceServerId", "int"},
  1204. {"playerUuid", "string"},
  1205. {"myUnionId", "string"},
  1206. }
  1207. WL_ANOTHERWORLDBATTLE_GET_MYUIONMORALE = {
  1208. {"playerUuid", "string"},
  1209. {"moraleState", "int"},
  1210. {"moraleAttrIdx", "int"}, -- 士气加成属性索引
  1211. {"moraleStartTime", "int"},
  1212. }
  1213. -- 给本公会加士气
  1214. LW_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1215. {"sourceServerId", "int"},
  1216. {"playerUuid", "string"},
  1217. {"myUnionId", "string"},
  1218. }
  1219. WL_ANOTHERWORLDBATTLE_UIONMORALE_DO = {
  1220. {"playerUuid", "string"},
  1221. {"opRes", "int"},
  1222. }
  1223. --------------------------百战成神 (LW=逻辑服->跨服, WL=跨服->逻辑服)------------------------------------
  1224. -- 客户端字段说明见 baiZhanChengShen/Proto.lua
  1225. -- 错误码 errCode 见 BaiZhanChengShenDefine.BZCS_ERR_*
  1226. -- 按积分步进匹配对手(最多3人)
  1227. LW_BZCS_MATCH = {
  1228. {"sourceServerId", "int"},
  1229. {"playerUuid", "string"},
  1230. {"refreshRanks", "table"}, -- 非空时仅按名次刷新展示, 不重算匹配; 全量匹配传 {}
  1231. }
  1232. WL_BZCS_MATCH = {
  1233. {"playerUuid", "string"},
  1234. {"myScore", "int"}, -- 匹配基准积分
  1235. {"myRank", "int"}, -- 请求方全服名次
  1236. {"opponentList", "table"}, -- [{rank,uuid,serverId,name,body,power,score,isRobot}, ...]
  1237. }
  1238. -- 排行榜前100
  1239. LW_BZCS_RANK_LIST = {
  1240. {"sourceServerId", "int"},
  1241. {"playerUuid", "string"},
  1242. }
  1243. WL_BZCS_RANK_LIST = {
  1244. {"playerUuid", "string"},
  1245. {"myRankInfo", "table"}, -- BZCS_RANK_INFO: rank,name,head,headFrame,power,score,serverId,uuid
  1246. {"rankList", "table"}, -- [{rank,uuid,name,head,headFrame,serverId,power,score,...}, ...]
  1247. }
  1248. -- 对手基础信息
  1249. LW_BZCS_OPPONENT_INFO = {
  1250. {"sourceServerId", "int"},
  1251. {"playerUuid", "string"},
  1252. {"targetRank", "int"}, -- 对手全服名次
  1253. }
  1254. WL_BZCS_OPPONENT_INFO = {
  1255. {"playerUuid", "string"},
  1256. {"res", "int"}, -- 0=成功 -1=目标不存在
  1257. {"targetInfo", "table"}, -- {name,head,headFrame,power,score}
  1258. }
  1259. -- 对手五族阵容展示
  1260. LW_BZCS_OPPONENT_LINEUP = {
  1261. {"sourceServerId", "int"},
  1262. {"playerUuid", "string"},
  1263. {"targetRank", "int"}, -- 对手全服名次
  1264. }
  1265. WL_BZCS_OPPONENT_LINEUP = {
  1266. {"playerUuid", "string"},
  1267. {"targetRank", "int"},
  1268. {"showInfo", "table"}, -- {name,lv,head,headFrame, heroArr={[race]=...}}
  1269. {"isRobot", "int"}, -- 1=机器人(客户端用 monsterOut 展开)
  1270. }
  1271. -- 挑战前校验目标存在(扣次在 NS C2N_CanFight)
  1272. LW_BZCS_CAN_FIGHT = {
  1273. {"sourceServerId", "int"},
  1274. {"playerUuid", "string"},
  1275. {"targetRank", "int"}, -- 防守方全服名次(开战时锁定该名次上的玩家)
  1276. }
  1277. WL_BZCS_CAN_FIGHT = {
  1278. {"playerUuid", "string"},
  1279. {"res", "int"}, -- 0=可开战
  1280. {"targetRank", "int"}, -- 开战锁定的全服名次
  1281. {"defUuid", "string"},
  1282. {"defServerId", "int"}, -- 防守方逻辑服 SVR_INDEX
  1283. {"defName", "string"},
  1284. {"defScore", "int"},
  1285. {"isRobot", "int"}, -- 1=机器人
  1286. }
  1287. LW_BZCS_REGISTER = {
  1288. {"playerInfo", "table"}, -- uuid,serverId,firstJoinTime, showInfo={name,head,headFrame,body,heroArr}
  1289. }
  1290. -- 已注册玩家增量同步展示(updateType 见 BZCS_UPDATE_SHOW_*; showInfo 仅含变更字段)
  1291. LW_BZCS_UPDATE_SHOW = {
  1292. {"playerUuid", "string"},
  1293. {"updateType", "int"}, -- 1=name, 3=head, 4=headFrame, 5=单族阵容, 6=body
  1294. {"race", "int"}, -- updateType=5 时种族 1~5
  1295. {"showInfo", "table"}, -- 增量字段, 跨服 MergeShowInfo 合并
  1296. }
  1297. -- 整场 5 局 3 胜结算(跨服改分后 WL 通知双方)
  1298. LW_BZCS_FIGHT_END = {
  1299. {"atkUuid", "string"},
  1300. {"atkServerId", "int"},
  1301. {"atkName", "string"},
  1302. {"defUuid", "string"},
  1303. {"defName", "string"},
  1304. {"defServerId", "int"},
  1305. {"atkWin", "int"}, -- 攻方整场胜负 1=胜 0=负
  1306. {"raceResults", "table"}, -- 五族逐局 [raceIdx]=1胜2负
  1307. }
  1308. WL_BZCS_FIGHT_END = {
  1309. {"playerUuid", "string"}, -- 攻方 uuid
  1310. {"atkWin", "int"}, -- 同 LW atkWin
  1311. {"scoreChange", "int"}, -- 攻方本场积分变化(+20/-10)
  1312. {"myScore", "int"}, -- 攻方战后积分
  1313. {"defName", "string"},
  1314. {"defServerId", "int"},
  1315. {"raceResults", "table"},
  1316. }
  1317. -- 守方被挑战通知(真人, 非机器人)
  1318. WL_BZCS_DEF_NOTIFY = {
  1319. {"playerUuid", "string"}, -- 守方 uuid
  1320. {"atkName", "string"},
  1321. {"atkServerId", "int"},
  1322. {"atkWin", "int"}, -- 守方视角 1=守方胜 0=守方负
  1323. {"scoreChange", "int"}, -- 守方积分变化(+10/-20)
  1324. {"myScore", "int"},
  1325. {"raceResults", "table"},
  1326. }
  1327. -- 周期结算发奖(跨服->逻辑服, 按服批量; rewardList={{uuid,rank},...})
  1328. WL_BZCS_ISSUE_REWARD = {
  1329. {"rewardList", "table"}, -- 本服待发奖列表 {{uuid, rank}, ...}
  1330. }
  1331. -- 活动开启广播(全逻辑服或单 fd 重连补偿)
  1332. WL_BZCS_ACT_START = {
  1333. {"startTime", "int"},
  1334. {"endTime", "int"},
  1335. }
  1336. -- 活动结束, 逻辑服清 KEY_BZCS_START_TIME 与本地轮次数据
  1337. WL_BZCS_ACT_END = {}
  1338. -- 跨服业务错误提示(对应 BZCS_ERR_*)
  1339. WL_BZCS_TIPS = {
  1340. {"playerUuid", "string"},
  1341. {"errCode", "int"},
  1342. }