- UID
- 110956
- 帖子
- 729
- 主題
- 13
- 精華
- 0
- 積分
- 12
- 楓幣
- 111
- 威望
- 11
- 存款
- 301
- 贊助金額
- 0
- 推廣
- 0
- GP
- 12
- 閱讀權限
- 10
- 性別
- 保密
- 在線時間
- 15 小時
- 註冊時間
- 2015-8-18
- 最後登入
- 2016-2-3
|
--laiha riven beta 0.0.1
require('Inspired')
require('IAC')
require('twgank')
Config = scriptConfig("BoxBox", "BoxBox")
Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
Config.addParam("E", "Use Smart E", SCRIPT_PARAM_ONOFF, true)
Config.addParam("R", "Use R only kill", SCRIPT_PARAM_ONOFF, true)
Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
local lvl = GetLevel(myHero)
local ad = GetBaseDamage(myHero)
local bad = GetBonusDmg(myHero)
local Qlvl = GetCastLevel(myHero,_Q)
local Wlvl = GetCastLevel(myHero,_W)
local Rlvl = GetCastLevel(myHero,_R)
spellData =
{
[-1] = {dmg = function () return 5+math.max(5*math.floor((lvl+2)/3)+10,10*math.floor((lvl+2/3)-15)*ad/100) end, }, -- only 1 buff not 3
[_Q] = {dmg = function () return 20*Qlvl-10+(.05*Qlvl+.35)*ad end }, --only 1 strike end,
[_W] = {dmg = function () return 30*Wlvl+20+bad end, },
[_R] = {dmg = function () return math.min((40*Rlvl+40+.6*bad)*(1+(100-25)/100*8/3),120*Rlvl+120+1.8*bad) end, },
}
OnLoop(function(myHero)
myHero = GetMyHero()
unit = GetCurrentTarget()
wowistarget = GetCurrentTarget()
myHeroPos = GetOrigin(myHero)
mousePos=GetMousePos()
unitpos=GetOrigin(unit)
--if ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
-- CastSkillShot(_E,mousePos.x,mousePos.y,mousePos.z)
-- end
DrawDmgOverHpBar(target,GetCurrentHP(target),120,60,0xffffffff);
if Config.Combo then
-- if GotBuff(myHero, "rivenpassiveaaboost") > 0 and ValidTarget(unit, 125) then
--MoveToXYZ(GetOrigin(unit).x, GetOrigin(unit).y, GetOrigin(unit).z)
-- DelayAction(function() AttackObject(unit) end, 180)
-- end
if ValidTarget(unit, 260) then
if Config.Q then
--DelayAction(function() CastSkillShot(_Q,unitpos.x,unitpos.y,unitpos.z) end, 500)
--AttackUnit(unit)
end
if CanUseSpell(myHero,_W) == READY and GetDistance(unit)<125 then
CastTargetSpell(myHero,_W)
elseif CanUseSpell(myHero,_W) == READY and CanUseSpell(myHero,_E) == READY and GetDistance(unit) < 300 then
CastSkillShot(_E,unitpos.x,unitpos.y,unitpos.z)
CastTargetSpell(myHero,_W)
end
end
end
for _, enemy in pairs(GetEnemyHeroes()) do
local hp = GetCurrentHP(enemy)
local mhp = GetMaxHP(enemy)
if (mhp/hp)<25 and CanUseSpell(myHero, _R) == ACTIVE then
rpred=GetPredictionForPlayer(GetOrigin(myHero), unit, GetMoveSpeed(unit), 1600, 0.5, 1100, 200, false, true)
if GetCastName(myHero, _R) == "RivenFengShuiEngine" then
CastSkillShot(_R,rpred.PredPos.x,rpred.PredPos.y,rpred.PredPos.z)
end
end
end
end)
function DamageCalc()
for _,enemy in pairs(GetEnemyHeroes()) do
if ValidTarget(enemy,1000) then
ComboDmg = spellData[-1].dmg() + spellData[_Q].dmg() + spellData[_W].dmg() + spellData[_R].dmg()
if ComboDmg>GerCurrentHP(unit) then
local drawPos = WorldToScreen(1,unitPos.x,unitPos.y,unitPos.z)
DrawText( " KILL THAT BITCH ",20,drawPos.x,drawPos.y,0xffffffff)
end
end
end
end
AddGapcloseEvent(_W, 120, true)
--OnProcessSpell(function(unit, spell)
--if unit and unit == myHero and spell and spell.name and spell.name:lower():find("attack") then
--if KeyIsDown(0x20) and ValidTarget(wowistarget) then
-- targetPos = GetOrigin(wowistarget)
--DelayAction(function() CastSkillShot(_Q, targetPos.x, targetPos.y, targetPos.z) end, spell.windUpTime * 800)
--end
--end
--end)
改這樣試試看? |
|