|
本帖最后由 ivansz 于 2012-8-11 19:25 编辑
其实说起来真的是很复杂....我到处都有改到....等我整理一下给你发出来
编辑:关于玄铁剑的问题 可以参照紫霞神功的代码
- --蓝烟清:修炼紫霞神功,增加剑系武功的伤害和攻击范围
- if PersonKF(pid, 89) then
- if (wugong == 110 or wugong == 114 or (wugong <= 48 and wugong >= 27)) and JY.Person[pid]["武功等级" .. wugongnum] == 999 then
- JY.Wugong[wugong]["移动范围10"] = JY.Wugong[wugong]["移动范围10"]+2;
- JY.Wugong[wugong]["杀伤范围10"] = JY.Wugong[wugong]["杀伤范围10"]+2;
- WAR.L_ZXSG = 1; --触发了紫霞神功,攻击结束之后范围必须还原
- end
- end
- WAR.WGWL = JY.Wugong[wugong]["攻击力10"]
- local fightscope = JY.Wugong[wugong]["攻击范围"]
- local kfkind = JY.Wugong[wugong]["武功类型"]
- local level = JY.Person[pid]["武功等级" .. wugongnum] --判断武功是否为极
- if level == 999 then
- level = 11
- else
- level = math.modf(level / 100) + 1
- end
- WAR.ShowHead = 0
- local m1, m2, a1, a2, a3, a4, a5 = refw(wugong, level) --获取武功的范围
- local movefanwei = {m1, m2} --可移动的范围
- local atkfanwei = {a1, a2, a3, a4, a5} --攻击范围
- if WAR.SQFJ == 1 then
-
- else
- x, y = War_FightSelectType(movefanwei, atkfanwei, x, y)
- end
-
- --蓝烟清:紫霞神功剑系攻击范围回复
- if WAR.L_ZXSG == 1 then
- JY.Wugong[wugong]["移动范围10"] = JY.Wugong[wugong]["移动范围10"]-2;
- JY.Wugong[wugong]["杀伤范围10"] = JY.Wugong[wugong]["杀伤范围10"]-2;
- WAR.L_ZXSG = 2;
- end
复制代码 注意后面的攻击范围恢复
|
|