飞飞迷 > 脚本修改 > 如何添加飞剑飞盾模型

如何添加飞剑飞盾模型

来源:飞飞迷 发布时间:2015-07-05 浏览:

首先了解添加飞剑飞盾需要修改什么文件 (飞剑飞盾模型自行下载,飞盾无需添加图标,因为他的图标是75级盾 已经有了)
defineItem.h
mdlDyna.inc
propItem.txt
propItem.txt.txt
model目录添加o3d模型文件
model目录Texture、TextureLow、TextureMid目录下添加dds皮肤文件
Item目录添加dds图标文件
解释一下 Texture、TextureLow、TextureMid 3个文件夹的作用,分别为模型质量[高 中 低](其实我觉得飞飞就是在这里挺J8浪费资源的

defineItem.h定义物品ID
mdlDyna.inc定义物品模型
propItem.txt定义物品数据
propItem.txt.txt对应的物品名称

服务端不要放皮肤文件,只需要放模型文件到Model文件夹下

好我们来开始添加飞剑飞盾
打开propitem.txt.txt 单独添加

单独添加
IDS_PROPITEM_TXT_FFSTART1 冰晶飞盾
IDS_PROPITEM_TXT_FFSTART2 据说是一个著名的铁匠,花了三年时间,终于将冰晶盾牌改装成了飞行器,虽然看起来有些笨重,但是也是一个很不错的点子。
IDS_PROPITEM_TXT_FFSTART3 飞剑
IDS_PROPITEM_TXT_FFSTART4 一把可以飞行的剑,来自异界的神秘飞行器材。
FFSTART部分随便改,但是要保证能和propitem.txt照应
 
下面说propitem.txt
单独添加
6 II_RID_RID_BOR_FEIDUN IDS_PROPITEM_TXT_FFSTART1 1 1 IK1_RIDE IK2_RIDING IK3_BOARD = TRUE = = 4 = = = = = PARTS_RIDE = 0 = = 15 = = 1 = = = = = _NONE 0 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 2500 = = = XI_FLIGHT_READY = = = = MTI_FSTAND1_B = = = = = = = = = = = = = 0 0 0 0 0 0 = = = = = 0.00406 0.76 1.8 1 3000 12 = = = = = """itm_ArmShiLucid.dds""" 0 """""" IDS_PROPITEM_TXT_FFSTART2
6 II_RID_RID_BOR_FEIJIAN IDS_PROPITEM_TXT_FFSTART3 1 1 IK1_RIDE IK2_RIDING IK3_BOARD = TRUE = = 4 = = = = = PARTS_RIDE = 0 = = 15 = = 1 = = = = = _NONE 0 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 2500 = = = XI_FLIGHT_READY = = = = MTI_FSTAND1_B = = = = = = = = = = = = = 0 0 0 0 0 0 = = = = = 0.00406 0.76 1.8 1 3000 12 = = = = = """Item_RidRidBoaFlySword.dds""" 0 """""" IDS_PROPITEM_TXT_FFSTART4
然后到mdlDyna.inc定义物品模型了

//飞盾
  "RidRidBoaLucid"              II_RID_RID_BOR_FEIDUN  MODELTYPE_MESH "" 0  MD_NEAR 0  1.0f 0 1 ATEX_NONE 1
//飞剑
  "RidRidBoaFlySword"              II_RID_RID_BOR_FEIJIAN  MODELTYPE_ANIMATED_MESH "" 0  MD_NEAR 0  1.0f 0 1 ATEX_NONE 1
这个一定要找相同种类的位置添加,以免妨碍到其他数据

该定义物品ID了,打开defineitem.h 添加
//飞盾
#define II_RID_RID_BOR_FEIDUN  2
//飞剑
#define II_RID_RID_BOR_FEIJIAN  1
也就是说/ci 1是飞剑 /ci 2是飞盾了

到这里已经结束了,一定要记得 服务端和客户端文件同步!

相关推荐

历史版本

  • V19.飞你莫属
  • 11-11-24V18.翱翔重生
  • 11-04-13V17.龙的逆袭
  • 10-12-13V16.神采飞扬
  • 10-04-16V15.羽化飞天
  • 09-11-04V14.翼之降临