Advertisement
Cloudhax23

Untitled

Aug 13th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. -- kalista
  2. if GetObjectName(GetMyHero()) == "Kalista" then
  3. --Menu
  4. Config = scriptConfig("Kalista", "Kalista")
  5. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  7. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  8. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  9. Config.addParam("Rs", "Use R Save", SCRIPT_PARAM_ONOFF, true)
  10. Config.addParam("F", "E Clear", SCRIPT_PARAM_ONOFF, true)
  11. Config.addParam("G", "Send Ghost", SCRIPT_PARAM_KEYDOWN, string.byte("T"))
  12. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  13. --Start
  14. OnLoop(function(myHero)
  15. for _, ally in pairs(GetAllyHeroes()) do
  16. if Config.Rs then
  17. if (GetCurrentHP(ally)/GetMaxHP(ally))<0.2 and
  18. CanUseSpell(myHero, _R) == READY and IsInDistance(ally, 1400) and IsObjectAlive(ally) and GotBuff(ally, "kalistacoopstrikeally") == 1 then
  19. CastSpell(_R)
  20. end
  21. end
  22. end
  23. AutoIgnite()
  24. if Config.Combo then
  25. local unit = GetCurrentTarget()
  26. if ValidTarget(unit, 1550) then
  27.  
  28.  
  29. if Config.Q then
  30. local QPred = GetPredictionForPlayer(myHeroPos,unit,GetMoveSpeed(unit),1750,250,1150,70,true,true)
  31. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and IsInDistance(unit, 1150) then
  32. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  33. end
  34. end
  35. --kalista E
  36.  
  37. if Config.E then
  38. local Dmgz= GetBonusDmg(myHero)+GetBaseDamage(myHero)
  39. local dmg = (GotBuff(unit,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(unit,"kalistaexpungemarker")-1) * (GetCastLevel(myHero,_E) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  40. if CalcDamage(myHero, unit, dmg) > GetCurrentHP(unit) then
  41. if CanUseSpell(myHero,_E) == READY then
  42. CastSpell(_E)
  43. end
  44. end
  45. end
  46. -- Cast R
  47. if Config.R then
  48. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.6 and
  49. IsObjectAlive(unit) and
  50. CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1200) and EnemiesAround(GetMyHeroPos(), 1400) >= 2 then
  51. CastSpell(_R)
  52. end
  53. end
  54. end
  55. end
  56. end)
  57. -- LanClear
  58. OnLoop(function(myHero)
  59. if Config.LaneClear then
  60. if Config.F then
  61. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  62. if IsInDistance(Q, 650) then
  63. local Dmgz = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  64. local dmg = (GotBuff(Q,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(Q,"kalistaexpungemarker")-1) * (GetCastLevel(myHero,_E) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  65. local hp = GetCurrentHP(Q)
  66. local Dmg = CalcDamage(myHero, Q, dmg)
  67. if Dmg > hp then
  68. if CanUseSpell(myHero,_E) == READY then
  69. CastSpell(_E)
  70. end
  71. end
  72. end
  73. end
  74. end
  75. end
  76. end)
  77. --OnLoop(function(myHero)
  78. --if Config.G then
  79. --if CanUseSpell(myHero, _W) == READY then
  80. --CastSkillShot(_W,4023.3271484375, 51, 8794.64453125)
  81. --end
  82. --end
  83. --end)
  84. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Kalista Loaded</font>"))
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement