InnerProto.lua 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433
  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. }