- UID
- 42361
- 最後登錄
- 1970-1-1
- 精華
- 閱讀權限
- 10
- 積分
- 11
- 金錢
- 元
- 威望
- 點
- 貢獻
- 點
|
樓主 |
發表於 2016-6-11 22:59:42
|
顯示全部樓層
試左好多次之後,我透過將skill152.lua改成:
-- 非禮勿聽
local Targets = GetPotentialTargets(10)
local Target
local SkillLv = GetSkillLv(152)
local hitRate = 8 + SkillLv*0.2
idx, Target = next(Targets, nil)
local Result = {}
local Caster = GetTarget()
Result[1] = Caster
Result[2] = 0
i = 2
while idx ~= nil do
local AP = GetData("MAP") + (math.random(11) - 1) * GetData("MAP")/100
local DP = GetData("MDP", Target)
local Ability = GetData("Ability", Target)
local Damage = CalDamage (AP , DP) *hitRate
if Damage < 0 then
Damage = 1
end
if Damage > 199999 then
Damage = 199999
end
i = i+1
Result[i] = Target
i = i+1
Result[i] = Damage
if GetData("Attribute", Target) ~= 5 and math.random(100) < 50 then
AddStatus(8, 0.5, Target)
end
DamageTarget(Target, Damage)
idx, Target = next(Targets, idx)
end
SendUseSkill(152, i, Result)
咁樣之後,終於將非禮勿聽變番做爆技喇 haha |
|