|
本帖最后由 fff71669 于 2012-7-14 07:49 编辑
我自己设计一个代码 攻击时追加5个技能之1发动不知道有没有错,求大神指点,引用的是二大的山寨版我现在找不到原因无法启动游戏郁闷求指点
- if T9ZZL(pid) then --赵子龙枪法,百鸟朝凤枪,七探蛇盘枪,单手十八挑,夹竹梅花枪,落马金钱枪
- if JLSD(0, math.modf(10 + (5 * wgnumber(0, 4))), pid) then --15%,每学一个特殊多5%
- local word1 = "百鸟朝凤枪"
- WAR.ZZLQF1 = 1
- if juexing() >= 1 then
- WAR.ZZLQF1 = 2
- word1 = "百鸟朝凤枪·改"
- end
- if juexing() >= 2 then
- WAR.ZZLQF1 = 3
- word1 = "真·百鸟朝凤枪"
- end
- if WAR.Person[id][CC.TXWZ1] ~= nil then
- WAR.Person[id][CC.TXWZ1] = WAR.Person[id][CC.TXWZ1] .. "+" ..word1
- else
- WAR.Person[id][CC.TXWZ1] = word1
- end
- elseif JLSD(0, math.modf(10 + (5 * wgnumber(0, 4))), pid) then
- local word2 = "七探蛇盘枪"
- WAR.ZZLQF2 = 1
- if juexing() >= 1 then
- WAR.ZZLQF2 = 2
- word2 = "七探蛇盘枪·改"
- end
- if juexing() >= 2 then
- WAR.ZZLQF2 = 3
- word2 = "真·七探蛇盘枪"
- end
- if WAR.Person[id][CC.TXWZ1] ~= nil then
- WAR.Person[id][CC.TXWZ1] = WAR.Person[id][CC.TXWZ1] .. "+" ..word2
- else
- WAR.Person[id][CC.TXWZ1] = word2
- end
-
- elseif JLSD(0, math.modf(10 + (5 * wgnumber(0, 4))), pid) then
- local word3 = "单手十八挑"
- WAR.ZZLQF3 = 1
- if juexing() >= 1 then
- WAR.ZZLQF3 = 2
- word3 = "单手十八挑·改"
- end
- if juexing() >= 2 then
- WAR.ZZLQF3 = 3
- word3 = "真·单手十八挑"
- end
- if WAR.Person[id][CC.TXWZ1] ~= nil then
- WAR.Person[id][CC.TXWZ1] = WAR.Person[id][CC.TXWZ1] .. "+" ..word3
- else
- WAR.Person[id][CC.TXWZ1] = word3
- end
- elseif JLSD(0, math.modf(10 + (5 * wgnumber(0, 4))), pid) then
- local word4 = "夹竹梅花枪"
- WAR.ZZLQF4 = 1
- if juexing() >= 1 then
- WAR.ZZLQF4 = 2
- word4 = "夹竹梅花枪·改"
- end
- if juexing() >= 2 then
- WAR.ZZLQF4 = 3
- word4 = "真·夹竹梅花枪"
- end
- if WAR.Person[id][CC.TXWZ1] ~= nil then
- WAR.Person[id][CC.TXWZ1] = WAR.Person[id][CC.TXWZ1] .. "+" ..word4
- else
- WAR.Person[id][CC.TXWZ1] = word4
- end
- elseif JLSD(0, math.modf(10 + (5 * wgnumber(0, 4))), pid) then
- local word5 = "落马金钱枪"
- WAR.ZZLQF5 = 1
- if juexing() >= 1 then
- WAR.ZZLQF5 = 2
- word5 = "落马金钱枪·改"
- end
- if juexing() >= 2 then
- WAR.ZZLQF5 = 3
- word5 = "真·落马金钱枪"
- end
- if WAR.Person[id][CC.TXWZ1] ~= nil then
- WAR.Person[id][CC.TXWZ1] = WAR.Person[id][CC.TXWZ1] .. "+" ..word5
- else
- WAR.Person[id][CC.TXWZ1] = word5
- end
- end
- end
复制代码 |
|