首先打开D:\GPHDJWS\server\resources\xml_db文件夹的MonsterConfig.xml文件用记事本编辑。
一、新增怪物用到的文件
MonsterFightConfig.xml
MonsterFightConfig.txt 这个是客户端文件自己对应改
MonsterFightConfig.xml文件修改
{
"id":"1002",
"baseId":"1001", 怪物类型:普通,精英,BOSS -----id自己对应怪物里找
"name":"野狐", 怪物名子:自己随便写
"model":"30", 怪物模型:找对应怪物的吧,自己新增我不会
"monsterType":"1",
"classification":"1",
"monsterCamp":"0",
"fightCaseing":"1",
"level":"4", 怪物等级
"ailevel":"4", 怪物智商:4为被动攻击,5为主动攻击
"bossConfigs":"0",
"reviveTime":"3", 刷新时间:3秒---自己改
"patrolRange":"2",
"warnRange":"7",
"pursueRange":"15",
"walkDelay":"17000",
"drop":"1000",
"expAddition":"true",
"exp":"10", 杀死后获得经验
"skills":"1008_1_[0-100]", 怪物技能
"attackInterval":"1500",
"hp":"60", 怪物血量
"mp":"145",
"physical_attack":"74", 下面这些我就不说了不懂的百度翻译一下就知道了
"theurgy_attack":"74",
"physical_defense":"60",
"theurgy_defense":"60",
"physical_critical":"4",
"theurgy_critical":"4",
"hit":"4",
"dodge":"5",
"pierce":"0",
"block":"0",
"rapidly":"0",
"ductility":"0",
"immobilizeDefense":"0",
"knockFlyDefense":"false",
"knockBackDefense":"false",
"garbbingDefense":"false",
"move_speed":"5000"
}
上面是一个怪物的所有信息
下面新增一个怪物的,比如我新增的龙魂至尊
01.,{
02."id":"177",
03."baseId":"4057",
04."name":"龙魂至尊",
05."model":"996",
06."monsterType":"2",
07."classification":"2",
08."monsterCamp":"0",
09."fightCaseing":"0",
10."level":"100",
11."ailevel":"5",
12."reviveTime":"300",
13."patrolRange":"5",
14."warnRange":"10",
15."pursueRange":"20",
16."walkDelay":"5000",
17."drop":"613|612|603|611|608|201",
18."expAddition":"false",
19."exp":"1000000",
20."skills":"225_1_[0-100]|229_1_[0-50]|224_1_[0-100]|228_1_[60-100]|1007_1_[0-100]",
21."attackInterval":"1500",
22."hp":"20000000",
23."mp":"1135",
24."physical_attack":"4880",
25."theurgy_attack":"4880",
26."physical_defense":"3194",
27."theurgy_defense":"3194",
28."physical_critical":"149",
29."theurgy_critical":"149",
30."hit":"149",
31."dodge":"199",
32."pierce":"0",
33."block":"0",
34."rapidly":"0",
35."ductility":"0",
36."immobilizeDefense":"1000",
37."knockFlyDefense":"true",
38."knockBackDefense":"true",
39."garbbingDefense":"true",
40."move_speed":"7000"
41.}
复制代码上面这些放在最下面]之前
MonsterFightConfig.txt这个文件自己对照着修改
这个是龙魂至尊的
01.MonsterFightConfig[177] = {
02.id:'177',
03.baseId:4057,
04.name:'龙魂至尊',
05.talk:'2',
06.model:996,
07.monsterType:1,
08.level:100,
09.exp:1000000
10.};
复制代码到此怪物添加完毕!
下面我来教大家如何在指定地图添加怪物!!!!
须要用的文件
地图ID查询 MapConfig.txt
怪物ID查询MonsterFightConfig.txt
还有个重要的文件 MonsterConfig.xml MonsterConfig.txt
MonsterConfig.xml文件修改
,{
"id":"9582", 这个9582按顺序排下来的
"mapId":"108", 108是地图ID,MapConfig.txt可以查
"bornX":"232", X坐标 上游戏自己站位置看
"bornY":"216", Y坐标 上游戏自己站位置看
"dungeon":"-1",
"monsterFightId":"177", 怪物ID。一楼的龙魂至尊ID177这里可以查询MonsterFightConfig.txt
"rate":"100"
}
01.,{
02."id":"9582",
03."mapId":"108",
04."bornX":"232",
05."bornY":"216",
06."dungeon":"-1",
07."monsterFightId":"177",
08."rate":"100"
09.}
复制代码上面的代码架在MonsterConfig.xml最下面]之前
MonsterConfig.txt文件修改
最下面加上
01.MonsterConfig[9582] = {
02.id:'9582',
03.mapId:108,
04.isShow:false,
05.bornX:232,
06.bornY:216,
07.monsterFightId:177,
08.rate:100
09.};
复制代码照葫芦画瓢你懂得!
到此刀剑谷中间加龙魂至尊完毕!!!
|