找回密码
 立即注册

[其他] 完美世界人物角色XML讲解

[复制链接]
heeb0957 发表于 2022-11-5 04:42:11 | 显示全部楼层 |阅读模式
角色XML解析修改等级+装备+修真+物理攻击+法力攻击
下面是一个刚刚建立的号,我就我所知道的解释解释,欢迎大家补充
<?xml version="1.0" encoding="UTF-8"?><role>
<base><variable name="version" type="byte">1</variable>
<variable name="id" type="int">34</variable> 角色id
<variable name="name" type="Octets">秒杀</variable> 角色名称
<variable name="race" type="int">5</variable> 应该是人物的模型
<variable name="cls" type="int">7</variable>
<variable name="gender" type="byte">1</variable>
<variable name="custom_data" type="Octets">007000108e8080001700170032808000050080808080808080808080808080808080808080808080808024004901460109007b7b798080807b7b7b798080807b07001c00806b80808080806b8080808001001000808080800f00808c5b0056005d007d627d800e0062628080160080801c013801000000000000b201b4010000ffffffffeeeff3ffe1b18affd7aae7ffffffffff476e80ffffffffff00000000ffffffff7d7b737a79750000</variable>
<variable name="config_data" type="Octets">0300000078016b6060606001e2ff4800c865608262109b114400412d1083c441a01088998118c4e70762100099039307f159a17c3e100708d82114c372208d64dd7f19a0056c8c0c8c1000553412a833ffff13e3cde3c0f0e181288485119066300286180b2383104305a33d8300505ee2dda41a506481c2f635dbe41a17a09810d402901a50fc30b201092611b01ebd23fbcb17fc85a8e0949e5cf3e0ef0a0683c722501d10ea84d20a86174071505c2a0031870148dc9e81e1b710c30b2036f92704b6f7034818ec3a3005e280d30dd09d600918011207a900898298208f4000581cc83cbcbf5c024825000d063910c4060190bb2d5b731804db73186c3c7b186ca13448ee591b440c94d040d8a1ad8bc1e4552b981df36f059cdf3a318701c407255c98da0c9f1e303b606a0e4c8f82230343833d13d40740b5d403004c6b5d4a</variable>
<variable name="custom_stamp" type="int">0</variable>
<variable name="status" type="byte">1</variable> 角色状态
<variable name="delete_time" type="int">0</variable> 删除时间
<variable name="create_time" type="int">1202558804</variable> 建立时间
<variable name="lastlogin_time" type="int">1202558808</variable> 上次登陆时间
<variable name="help_states" type="Octets">010018009d93a793bb93c593f303f483fd8307841184db87e5872584ef872f84f98703880d881788ab8f2188b58f2b88358893937f80</variable>
<variable name="reserved1" type="int">0</variable>
<variable name="reserved2" type="int">0</variable>
<variable name="reserved3" type="int">0</variable>
</base>
<status><variable name="version" type="byte">1</variable>
<variable name="level" type="int">1</variable> 等级
<variable name="level2" type="int">0</variable> 修真级别
<variable name="exp" type="int">0</variable> 经验
<variable name="sp" type="int">0</variable> 技能点
<variable name="pp" type="int">0</variable> 剩余属性点
<variable name="hp" type="int">50</variable> 红
<variable name="mp" type="int">70</variable> 蓝
<variable name="posx" type="float">-321.74033</variable> x坐标,浮点数
<variable name="posy" type="float">218.30867</variable> y坐标,浮点数
<variable name="posz" type="float">-882.94556</variable> z坐标,浮点数
<variable name="worldtag" type="int">1</variable> 世界标识,大地图1,副本就变了,一般卡地图里面,副本没开,我直接给他们把这里修改为1,他们就出来了
<variable name="invader_state" type="int">0</variable>
<variable name="invader_time" type="int">0</variable>
<variable name="pariah_time" type="int">0</variable>
<variable name="reputation" type="int">0</variable>
<variable name="custom_status" type="Octets"></variable>
<variable name="filter_data" type="Octets">00000000</variable>
<variable name="charactermode" type="Octets"></variable>
<variable name="instancekeylist" type="Octets">000000001500000069000000010000006a000000010000006b000000010000006c000000010000006d000000010000006e000000010000006f0000000100000072000000010000007300000001000000740000000100000075000000010000007b000000010000007c000000010000007d000000010000007e00000001000000e600000001000000e700000001000000e800000001000000e900000001000000ea00000001000000eb000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006900000022000000000000006a00000022000000000000006b00000022000000000000006c00000022000000000000006d00000022000000000000006e00000022000000000000006f00000022000000000000007200000022000000000000007300000022000000000000007400000022000000000000007500000022000000000000007b00000022000000000000007c00000022000000000000007d00000022000000000000007e0000002200000000000000e60000002200000000000000e70000002200000000000000e80000002200000000000000e90000002200000000000000ea0000002200000000000000eb0000002200000000000000</variable>
<variable name="dbltime_expire" type="int">0</variable>
<variable name="dbltime_mode" type="int">0</variable>
<variable name="dbltime_begin" type="int">1202058000</variable>
<variable name="dbltime_used" type="int">0</variable>
<variable name="dbltime_max" type="int">43200</variable>
<variable name="time_used" type="int">488</variable>
<variable name="dbltime_data" type="Octets">01000000000000005997ad47</variable>
<variable name="storesize" type="short">-24240</variable>
<variable name="petcorral" type="Octets">0000000100</variable>
<variable name="property" type="Octets">0500000005000000050000000500000032000000460000000100000004000000000000409a999940000040400000a04000000000010000000100000010000000000020400000000000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000000000000000000000000000000000000000000010000000000000000000000</variable>
<variable name="var_data" type="Octets">060000000000000000000000000000001994d2b700000000000000001000000000000000ffffffffca95563eddc0943e000001003d000000</variable>
这下面用来表示技能的 5 u w l .n et
<variable name="skills" type="Octets">030000007100000000000000010000007d0000000000000001000000a70000000000000001000000</variable>
03000000表示总技能数,710000000000000001000000,这一串用来表示技能,暂时我知道的技能代码如下,欢迎大家补充
<variable name="skills" type="Octets">03000000-----710000000000000001000000-----7d0000000000000001000000----a70000000000000001000000</variable>
技能3个,第一个是清心咒一级,羽箭一级,回城
<variable name="skills" type="Octets">030000007100000000000000020000007d0000000000000001000000a70000000000000001000000< /variable>清心2 羽箭1 回城
030000007100000000000000010000007d0000000000000001000000a70000000000000001000000 清心1 羽箭1 回城
<variable name="skills" type="Octets">0300000071000000000000000a0000007d0000000000000001000000a70000000000000001000000</variable> 清心10 羽箭1 回城
030000007100000000000000020000007d0000000000000001000000a70000000000000001000000< /variable>清心2 羽箭1 回城
030000007100000000000000010000007d0000000000000001000000a70000000000000001000000 清心1 羽箭1 回城
<variable name="skills" type="Octets">0400000071000000000000000a0000007200000000000000010000007d0000000000000001000000a70000000000000001000000< /variable>静心1 清心10 羽箭1 回城
0300000071000000000000000a000000 7d0000000000000001000000a70000000000000001000000</variable> 清心10 羽箭1 回城
030000007100000000000000020000007d0000000000000001000000a70000000000000001000000< /variable>清心2 羽箭1 回城
030000007100000000000000010000007d0000000000000001000000a70000000000000001000000 清心1 羽箭1 回城
心得记录
前面的8位表示技能个数
04000000--71000000000000000a000000--720000000000000001000000--7d0000000000000001000000--a70000000000000001000000
技能个数 第一个技能 10级 第二个技能 1级 第13个技能 1级 回城技能 1级
清心 静心 羽箭 回城
<variable name="skills" type="Octets">0500000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000</variable>

0400000071000000000000000a000000720000000000000001000000 7d0000000000000001000000a70000000000000001000000</variable>静心1 清心10 羽箭1 回城
0300000071000000000000000a000000 7d0000000000000001000000a70000000000000001000000</variable> 清心10 羽箭1 回城
030000007100000000000000020000007d0000000000000001000000a70000000000000001000000< /variable>清心2 羽箭1 回城
030000007100000000000000010000007d0000000000000001000000a70000000000000001000000 清心1 羽箭1 回城
心得记录
前面的8位表示技能个数
04000000--71000000000000000a000000--720000000000000001000000--7d0000000000000001000000--a70000000000000001000000
技能个数 第一个技能 10级 第二个技能 1级 第13个技能 1级 回城技能 1级
清心 静心 羽箭 回城
从上面看到,醍醐就是这一段
730000000000000001000000,3表示醍醐,中间的1表示1级

<variable name="skills" type="Octets">0600000012000000000000000100000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000</variable>
从这里看,有了06000000个技能,新加进来的应该是120000000000000001000000这一段,这段是还魂咒,后面的1表示1级,
很奇怪没有使用以前的7开头的格式了
<variable name="skills" type="Octets">0700000012000000000000000100000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000bd0000000000000001000000</variable>
我们把上面的那下来对比一下
bd0000000000000001000000这一段就是净玄咒1级
<variable name="skills" type="Octets">0600000012000000000000000100000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000</variable>
从这里看,有了06000000个技能,新加进来的应该是120000000000000001000000这一段,这段是还魂咒,后面的1表示1级,
很奇怪没有使用以前的7开头的格式了
<variable name="skills" type="Octets">080000000f000000000000000100000012000000000000000100000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000bd0000000000000001000000</variable>
我们把上面的那下来对比一下
<variable name="skills" type="Octets">07000000 12000000000000000100000071000000000000000a0000007200000000000000010000007300000000000000010000007d0000000000000001000000a70000000000000001000000bd0000000000000001000000</variable>

这里这段是五气朝元啦
0f0000000000000001000000
740000000000000001000000这个就应该是海纳百川
100000000000000001000000 极度乾坤
<variable name="storehousepasswd" type="Octets"></variable> 仓库密码,中间的值去掉就清空了仓库密码了
<variable name="waypointlist" type="Octets">5114</variable>
<variable name="coolingtime" type="Octets">ffffffff00000000</variable>
<variable name="reserved1" type="int">0</variable>
<variable name="reserved2" type="int">0</variable>
<variable name="reserved3" type="int">0</variable>
<variable name="reserved4" type="int">0</variable>
</status>
<pocket>人物背包开始
<variable name="capacity" type="int">32</variable>人物背包最大格子数,8的倍数,最大64
<variable name="timestamp" type="int">2</variable>
<variable name="money" type="int">0</variable>背包钱数量
<variable name="reserved1" type="int">0</variable>
<variable name="reserved2" type="int">0</variable>
</pocket>
简单说一下,背包是从0横排1 2 3 4 5 6 7
然后第二排,这样到63,如果不知道物品代码但是有物品的,直接放在第一格,然后找背包开始的0位置
<equipment><inv><variable name="id" type="int">2251</variable> inv里面是用来表示身上的装备的,这里的2251是物品id
<variable name="pos" type="int">0</variable> 这里的数字0表示装备位置,具体数字几表示什么位置,直接放个东西上去,看一下xml,然后拿掉,再对比一下以前的xml就ok
<variable name="count" type="int">1</variable> 堆叠数量
<variable name="max_count" type="int">1</variable> 最大可堆叠数量
<variable name="data" type="Octets">0100ff00050000000000030078050000780500002c00030000000000240100000000000000000000030000000300000005000000060000001000000000004040000000000000000000000000</variable>
上面的表示物品属性
<variable name="proctype" type="int">0</variable>
<variable name="expire_date" type="int">0</variable>
<variable name="guid1" type="int">0</variable>
<variable name="guid2" type="int">0</variable>
<variable name="mask" type="int">1</variable>
</inv>
<inv><variable name="id" type="int">2096</variable>
<variable name="pos" type="int">12</variable>
<variable name="count" type="int">1</variable>
<variable name="max_count" type="int">1</variable>
<variable name="data" type="Octets">0100000000000000020000000000000003000000</variable>
<variable name="proctype" type="int">19</variable>
<variable name="expire_date" type="int">0</variable>
<variable name="guid1" type="int">0</variable>
<variable name="guid2" type="int">0</variable>
<variable name="mask" type="int">4096</variable>
</inv>
</equipment>
下面的storehose是用来表示仓库的,格式基本和背包差不多,自己看
<storehouse><variable name="capacity" type="int">16</variable>
<variable name="money" type="int">0</variable>
<variable name="reserved1" type="int">0</variable>
<variable name="reserved2" type="int">0</variable>
</storehouse>
下面是任务信息,我还在分析中,比较麻烦的东西
<task><variable name="task_data" type="Octets">0000010000000000</variable>
<variable name="task_complete" type="Octets">010000005f04</variable>
</task>
</role>

modao520 发表于 2022-11-5 09:33:29 | 显示全部楼层
真是难得给力的帖子啊。
回复

使用道具 举报

qiya12345 发表于 2022-11-6 00:05:37 | 显示全部楼层
我只是路过打酱油的。
回复

使用道具 举报

___依然爱,| 发表于 2022-11-6 05:53:13 | 显示全部楼层
激动人心,无法言表!
回复

使用道具 举报

cx235 发表于 2022-11-7 02:17:35 | 显示全部楼层
太生气了,无法HOLD啦 >_<......
回复

使用道具 举报

wangfeixiang 发表于 2022-11-8 04:55:05 | 显示全部楼层
激动人心,无法言表!
回复

使用道具 举报

295608944 发表于 2022-11-8 13:51:15 | 显示全部楼层
感恩无私的分享与奉献
回复

使用道具 举报

army22 发表于 2022-11-18 19:48:48 | 显示全部楼层
强烈支持楼主ing……
回复

使用道具 举报

1667155580 发表于 2022-11-19 04:12:25 | 显示全部楼层
激动人心,无法言表!
回复

使用道具 举报

qtfe 发表于 2022-11-21 20:06:02 | 显示全部楼层
淡定,淡定,淡定……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|游戏淘宝湾

GMT+8, 2024-11-21 23:47 , Processed in 0.081676 second(s), 53 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024, Oddpp Cloud.

快速回复 返回顶部 返回列表