Advertisement
Cloudhax23

Untitled

Aug 19th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.75 KB | None | 0 0
  1. --Version 5.2 *NEW* Cassiopiea QWE Smart E LastHit Laneclear KS.
  2.  
  3. -- Varus
  4. myIAC = IAC()
  5. unit = GetCurrentTarget()
  6. mymouse = GetMousePos()
  7. supportedHero = {["Graves"] = true ,["Ekko"] = true ,["Velkoz"] = true}
  8.  
  9. -- Cassiopeia
  10. if GetObjectName(GetMyHero()) == "Cassiopeia" then
  11. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Cassiopeia Loaded</font>"))
  12. --Menu
  13. Config = scriptConfig("Cassiopeia", "Cassiopeia")
  14. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  15. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  16. Config.addParam("E", "Use Smart E", SCRIPT_PARAM_ONOFF, true)
  17. Config.addParam("Es", "Use E", SCRIPT_PARAM_ONOFF, false)
  18. Config.addParam("Z", "LaneClear E", SCRIPT_PARAM_ONOFF, true)
  19. Config.addParam("U", "LaneClear W", SCRIPT_PARAM_ONOFF, true)
  20. Config.addParam("I", "LaneClear Q", SCRIPT_PARAM_ONOFF, true)
  21. Config.addParam("F", "LastHit E", SCRIPT_PARAM_ONOFF, true)
  22. Config.addParam("S", "Use HP W", SCRIPT_PARAM_ONOFF, true)
  23. Config.addParam("D", "Use Q KS", SCRIPT_PARAM_ONOFF, true)
  24. Config.addParam("O", "Use E KS", SCRIPT_PARAM_ONOFF, true)
  25. Config.addParam("V", "Use W KS", SCRIPT_PARAM_ONOFF, true)
  26. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  27. --Start
  28. OnLoop(function(myHero)
  29. AutoIgnite()
  30. LC()
  31. LH()
  32. KSC()
  33. if Config.Combo then
  34. local unit = GetCurrentTarget()
  35. if ValidTarget(unit, 1550) then
  36.  
  37. -- Cassiopeia E
  38. if IsInDistance(unit, 700) and Config.E and GotBuff(unit, "cassiopeianoxiousblastpoison") == 1 or GotBuff(unit, "cassiopeiamiasmapoison") == 1 or GotBuff(unit, "cassiopeiatwinfangdebuff") == 1 then
  39. CastTargetSpell(unit, _E)
  40. end
  41. if IsInDistance(unit, 700) and Config.Es then
  42. CastTargetSpell(unit, _E)
  43. end
  44. -- Cassiopeia W
  45. if Config.W then
  46. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,850,55,false,true)
  47. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 and IsInDistance(unit, 850) then
  48. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  49. end
  50. end
  51. -- Cassiopeia Q
  52. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,850,55,false,true)
  53. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and IsInDistance(unit, 850) and Config.Q then
  54. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  55. end
  56. -- Cassiopeia R
  57. end
  58. end
  59. end)
  60. function LC()
  61. if IWalkConfig.LaneClear then
  62. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  63. if IsInDistance(Q, 700) then
  64. if Config.Z then
  65. local EnemyPos = GetOrigin(Q)
  66. if CanUseSpell(myHero, _E) == READY and IsInDistance(Q, 700) and Config.Z and GotBuff(Q, "cassiopeianoxiousblastpoison") == 1 or GotBuff(Q, "cassiopeiamiasmapoison") == 1 or GotBuff(Q, "cassiopeiatwinfangdebuff") == 1 then
  67. CastTargetSpell(Q, _E)
  68. end
  69. local EnemyPos = GetOrigin(Q)
  70. if CanUseSpell(myHero, _Q) == READY and Config.I and IsInDistance(Q, 850) then
  71. CastSkillShot(_Q,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  72. end
  73. local EnemyPos = GetOrigin(Q)
  74. if CanUseSpell(myHero, _W) == READY and Config.U and IsInDistance(Q, 850) then
  75. CastSkillShot(_W,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  76. end
  77. end
  78. end
  79. end
  80. end
  81. end
  82. function LH()
  83. if IWalkConfig.LastHit then
  84. if Config.F then
  85. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  86. if IsInDistance(Q, 700) then
  87. local z = (GetCastLevel(myHero,_E)*25)+(GetBonusAP(myHero)*.55)
  88. local hp = GetCurrentHP(Q)
  89. local Dmg = CalcDamage(myHero, Q, z)
  90. local Fmg = CalcDamage(myHero, Q, H)
  91. if Dmg > hp then
  92. if CanUseSpell(myHero, _E) == READY then
  93. CastTargetSpell(Q, _E)
  94. end
  95. end
  96. end
  97. end
  98. end
  99. end
  100.  
  101. end
  102. end
  103. function KSC()
  104. for i,enemy in pairs(GetEnemyHeroes()) do
  105. local z = (GetCastLevel(myHero,_E)*25)+(GetBonusAP(myHero)*.55)
  106. local H = (GetCastLevel(myHero,_Q)*40)+(GetBonusAP(myHero)*.45)
  107. local G = (GetCastLevel(myHero,_W)*45)+(GetBonusAP(myHero)*.90)
  108. local WPred = GetPredictionForPlayer(GetMyHeroPos(),enemy,GetMoveSpeed(enemy),1600,250,850,55,false,true)
  109. if CanUseSpell(myHero, _Q) == READY and WPred.HitChance == 1 and IsInDistance(enemy, 850) and Confid.D and CalcDamage(myHero, enemy, H) > GetCurrentHP(enemy) then
  110. CastSkillShot(_Q,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  111. end
  112. if CalcDamage(myHero, enemy, z) > GetCurrentHP(enemy) and IsInDistance(enemy, 700) and Config.O then
  113. CastTargetSpell(enemy, _E)
  114. end
  115. local QPred = GetPredictionForPlayer(GetMyHeroPos(),enemy,GetMoveSpeed(enemy),1600,250,850,55,false,true)
  116. if CanUseSpell(myHero, _W) == READY and QPred.HitChance == 1 and IsInDistance(enemy, 850) and Config.V and CalcDamage(myHero, enemy, G) > GetCurrentHP(enemy) then
  117. CastSkillShot(_W,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  118. end
  119. end
  120. end
  121. if GetObjectName(GetMyHero()) == "Vladimir" then
  122. --Menu
  123. Config = scriptConfig("Vladimir", "Vladimir")
  124. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  125. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  126. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  127. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  128. Config.addParam("Z", "LaneClear E", SCRIPT_PARAM_ONOFF, true)
  129. Config.addParam("U", "LaneClear W", SCRIPT_PARAM_ONOFF, true)
  130. Config.addParam("I", "LaneClear Q", SCRIPT_PARAM_ONOFF, true)
  131. Config.addParam("F", "LastHit E", SCRIPT_PARAM_ONOFF, true)
  132. Config.addParam("Y", "LastHit Q", SCRIPT_PARAM_ONOFF, true)
  133. Config.addParam("S", "Use HP W", SCRIPT_PARAM_ONOFF, true)
  134. Config.addParam("D", "Use Q KS", SCRIPT_PARAM_ONOFF, true)
  135. Config.addParam("O", "Use E KS", SCRIPT_PARAM_ONOFF, true)
  136. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  137. --Start
  138. OnLoop(function(myHero)
  139. AutoIgnite()
  140. LaneCleared()
  141. LastHitd()
  142. KS()
  143. SaveMeW()
  144. if Config.Combo then
  145. local unit = GetCurrentTarget()
  146. if ValidTarget(unit, 1550) then
  147.  
  148. -- Vladimir E
  149. if Config.E then
  150. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,850,50,false,true)
  151. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 610) then
  152. CastSpell(_E)
  153. end
  154. end
  155.  
  156. -- Vladimir W
  157. if Config.W then
  158. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  159. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 and IsInDistance(unit, 150) then
  160. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  161. end
  162. end
  163. -- Vladimir Q
  164. if Config.Q then
  165. if CanUseSpell(myHero, _Q) == READY and IsObjectAlive(unit) and IsInDistance(unit, 600) then
  166. CastTargetSpell(unit,_Q)
  167. end
  168. end
  169. -- Vladimir R
  170. if Config.R then
  171. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,700,55,false,true)
  172. local ult = (GetCastLevel(myHero,_R)*112)+(GetBonusAP(myHero)*0.78)
  173. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 700) and CalcDamage(myHero, unit, ult) then
  174. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  175. end
  176. end
  177. end
  178.  
  179. end
  180. end)
  181. function LaneCleared()
  182. if IWalkConfig.LaneClear then
  183. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  184. if IsInDistance(Q, 650) then
  185. if Config.Z then
  186. local EnemyPos = GetOrigin(Q)
  187. if CanUseSpell(myHero, _E) == READY and IsInDistance(Q, 610) then
  188. CastSpell(_E)
  189. end
  190. if CanUseSpell(myHero, _W) == READY and IsInDistance(Q, 150) and Config.U then
  191. CastSpell(_W)
  192. end
  193. if CanUseSpell(myHero, _Q) == READY and IsInDistance(Q, 600) and Config.I then
  194. CastTargetSpell(Q, _Q)
  195. end
  196. end
  197. end
  198. end
  199. end
  200. end
  201. function LastHitd()
  202. if IWalkConfig.LastHit then
  203. if Config.F then
  204. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  205. if IsInDistance(Q, 610) then
  206. local z = (GetCastLevel(myHero,_Q)*25)+(GetBonusAP(myHero)*.45)
  207. local H = (GetCastLevel(myHero,_Q)*35)+(GetBonusAP(myHero)*.60)
  208.  
  209. local hp = GetCurrentHP(Q)
  210. local Dmg = CalcDamage(myHero, Q, z)
  211. local Fmg = CalcDamage(myHero, Q, H)
  212. if Dmg > hp then
  213. if CanUseSpell(myHero, _E) == READY then
  214. CastSpell(_E)
  215. end
  216. if Fmg > hp then
  217. if Config.Y then
  218. if CanUseSpell(myHero, _Q) == READY and IsObjectAlive(Q) and IsInDistance(Q, 600) then
  219. CastTargetSpell(Q,_Q)
  220. end
  221. end
  222. end
  223. end
  224. end
  225. end
  226. end
  227.  
  228. end
  229. end
  230. function SaveMeW()
  231. if Config.S then
  232. if CanUseSpell(myHero, _W) and (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.15 and GotBuff(myHero, "recall") == 0 then
  233. CastSpell(_W)
  234. end
  235. end
  236. end
  237. function KS()
  238. for i,enemy in pairs(GetEnemyHeroes()) do
  239. local z = (GetCastLevel(myHero,_Q)*25)+(GetBonusAP(myHero)*.45)
  240. local H = (GetCastLevel(myHero,_Q)*35)+(GetBonusAP(myHero)*.60)
  241. if CalcDamage(myHero, enemy, H) > GetCurrentHP(enemy) and IsInDistance(enemy, 600) and Config.D then
  242. CastTargetSpell(enemy, _Q)
  243. end
  244. if CalcDamage(myHero, enemy, z) > GetCurrentHP(enemy) and IsInDistance(enemy, 610) and Config.O then
  245. CastSpell(_E)
  246. end
  247. end
  248. end
  249. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Vladimir Loaded</font>"))
  250. end
  251. if GetObjectName(GetMyHero()) == "Varus" then
  252. --Menu
  253. Config = scriptConfig("Varus", "Varus")
  254. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  255. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  256. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  257. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  258. Config.addParam("F", "LaneClear", SCRIPT_PARAM_ONOFF, true)
  259. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  260. --Start
  261. OnLoop(function(myHero)
  262. AutoIgnite()
  263. LaneClearE()
  264. if Config.Combo then
  265. local unit = GetCurrentTarget()
  266. if ValidTarget(unit, 1550) then
  267.  
  268. -- Varus E
  269. if Config.E then
  270. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,850,50,false,true)
  271. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  272. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  273. end
  274. end
  275.  
  276. -- Varus W
  277. -- Varus Q
  278. if CanUseSpell(myHero, _Q) == READY and ValidTarget(target, 1625) and Config.Q then
  279. local myHeroPos = GetMyHeroPos()
  280. CastSkillShot(_Q, myHeroPos.x, myHeroPos.y, myHeroPos.z)
  281. for i=250, 1625, 250 do
  282. DelayAction(function()
  283. local _Qrange = 225 + math.min(225, i/2)
  284. local Pred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1625,50,false,true)
  285. if Pred.HitChance >= 1 then
  286. CastSkillShot2(_Q, Pred.PredPos.x, Pred.PredPos.y, Pred.PredPos.z)
  287. end
  288. end, i)
  289. end
  290. end
  291. -- Varus R
  292. if Config.R then
  293. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  294. local ult = (GetCastLevel(myHero,_R)*200)+(GetBonusAP(myHero)*.6)
  295. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  296. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  297. end
  298. end
  299. end
  300.  
  301. end
  302. end)
  303. function LaneClearE()
  304. if IWalkConfig.LaneClear then
  305. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  306. if IsInDistance(Q, 650) then
  307. if Config.F then
  308. -- Syndra cast W at Enemy
  309. local EnemyPos = GetOrigin(Q)
  310. if CanUseSpell(myHero, _E) == READY then
  311. CastSkillShot(_E,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. end
  318. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Varus Loaded</font>"))
  319. end
  320. if GetObjectName(GetMyHero()) == "Ziggs" then
  321. --Menu
  322. Config = scriptConfig("Ziggs", "Ziggs")
  323. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  324. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  325. Config.addParam("KsQ", "Use Q in KS", SCRIPT_PARAM_ONOFF, false)
  326. Config.addParam("KsW", "Use W in KS", SCRIPT_PARAM_ONOFF, false)
  327. Config.addParam("KsR", "Use R in KS", SCRIPT_PARAM_ONOFF, false)
  328. Config.addParam("F", "LaneClear", SCRIPT_PARAM_ONOFF, true)
  329. --Config.addParam("J", "JungleClear", SCRIPT_PARAM_ONOFF, true)
  330. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  331. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  332. Config.addParam("H", "Use Q Harass", SCRIPT_PARAM_ONOFF, false)
  333. Config.addParam("Z", "Use E Harass", SCRIPT_PARAM_ONOFF, false)
  334. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  335. LevelConfig = scriptConfig("Level", "Auto Level")
  336. LevelConfig.addParam("L1","Max QE",SCRIPT_PARAM_ONOFF,false)
  337. DrawingsConfig = scriptConfig("Drawings", "Drawings")
  338. DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
  339. DrawingsConfig.addParam("DrawW","Draw W", SCRIPT_PARAM_ONOFF, true)
  340. DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
  341. --Start
  342. OnLoop(function(myHero)
  343. AutoIgnite()
  344. LevelUp2()
  345. Harass2()
  346. Killsteal2()
  347. --LaneClear2()
  348. --JungleClear()
  349. -- Ziggs Q
  350. if Config.Combo then
  351. local unit = GetCurrentTarget()
  352. if ValidTarget(unit, 1550) then
  353. -- Ziggs Q
  354.  
  355. if Config.Q then
  356. if GetCastName(myHero, _Q) == "ZiggsQ" then
  357. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero, _Q),50,true,true)
  358. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  359. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  360. end
  361. end
  362. end
  363. -- Ziggs E
  364. if GetCastName(myHero, _E) == "ZiggsE" then
  365. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,true,true)
  366. if Config.E then
  367. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  368. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  369. end
  370. end
  371. end
  372. -- Ziggs W
  373. if GetCastName(myHero, _W) == "ZiggsW" then
  374. if Config.W then
  375. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,5300,50,false,true)
  376. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.3 and
  377. CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  378. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  379. end
  380. end
  381. end
  382. -- Ziggs R
  383. if GetCastName(myHero, _R) == "ZiggsR" then
  384. if Config.R then
  385. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,5300,55,false,true)
  386. local ult = (GetCastLevel(myHero,_R)*100)+(GetBonusDmg(myHero)*1.5)
  387. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  388. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  389. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  390. end
  391. end
  392. end
  393. end
  394. end
  395. end
  396. end)
  397. function JungleClear2()
  398. for _,Q in pairs(GetAllMinions(MINION_JUNGLE)) do
  399. if IsInDistance(Q, 650) then
  400. if Config.J then
  401. local QPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,800,50,false,true)
  402. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  403. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  404. end
  405. end
  406. if Config.Y then
  407. if CanUseSpell(myHero, _W) == READY then
  408. CastTargetSpell(Obj_AI_Minion, _W)
  409. end
  410. end
  411. -- Ziggs cast W at Enemy
  412. local WPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,925,50,false,true)
  413. if Config.Y then
  414. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  415. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  416. end
  417. end
  418. end
  419. end
  420. end
  421. function LevelUp2()
  422. if LevelConfig.L1 then
  423. if GetLevel(myHero) == 1 then
  424. LevelSpell(_Q)
  425. elseif GetLevel(myHero) == 2 then
  426. LevelSpell(_E)
  427. elseif GetLevel(myHero) == 3 then
  428. LevelSpell(_W)
  429. elseif GetLevel(myHero) == 4 then
  430. LevelSpell(_Q)
  431. elseif GetLevel(myHero) == 5 then
  432. LevelSpell(_Q)
  433. elseif GetLevel(myHero) == 6 then
  434. LevelSpell(_R)
  435. elseif GetLevel(myHero) == 7 then
  436. LevelSpell(_Q)
  437. elseif GetLevel(myHero) == 8 then
  438. LevelSpell(_Q)
  439. elseif GetLevel(myHero) == 9 then
  440. LevelSpell(_E)
  441. elseif GetLevel(myHero) == 10 then
  442. LevelSpell(_E)
  443. elseif GetLevel(myHero) == 11 then
  444. LevelSpell(_R)
  445. elseif GetLevel(myHero) == 12 then
  446. LevelSpell(_E)
  447. elseif GetLevel(myHero) == 13 then
  448. LevelSpell(_E)
  449. elseif GetLevel(myHero) == 14 then
  450. LevelSpell(_W)
  451. elseif GetLevel(myHero) == 15 then
  452. LevelSpell(_W)
  453. elseif GetLevel(myHero) == 16 then
  454. LevelSpell(_R)
  455. elseif GetLevel(myHero) == 17 then
  456. LevelSpell(_W)
  457. elseif GetLevel(myHero) == 18 then
  458. LevelSpell(_W)
  459. end
  460. end
  461. end
  462. end
  463. function Killsteal2()
  464. local unit = GetCurrentTarget()
  465. if ValidTarget(unit, 1550) then
  466. for i,enemy in pairs(GetEnemyHeroes()) do
  467. local z = ((GetCastLevel(myHero,_Q)*45)+(GetBonusAP(myHero)*1))
  468. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero, _Q),50,true,true)
  469. if CanUseSpell(myHero, _Q) == READY and ValidTarget(enemy,GetCastRange(myHero,_Q)) and Config.KsQ
  470. and CalcDamage(myHero, enemy, z) > GetCurrentHP(unit) then
  471. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  472. end
  473. end
  474. if GetCastName(myHero, _R) == "ZiggsR" then
  475. if Config.KsR then
  476. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,5300,55,false,true)
  477. local ult = (GetCastLevel(myHero,_R)*100)+(GetBonusDmg(myHero)*1.5)
  478. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  479. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  480. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  481. end
  482. end
  483. end
  484. end
  485. -- Ziggs cast W at Enemy
  486. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,925,50,true,true)
  487. if Config.KsW then
  488. local ult = (GetCastLevel(myHero,_R)*35)+(GetBonusAP(myHero)*.5)
  489. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 and CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  490. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  491. end
  492. end
  493. end
  494. end
  495. function LaneClear2()
  496. if IWalkConfig.LaneClear then
  497. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  498. local EnemyPos = GetOrigin(Q)
  499. if IsInDistance(Q, 650) then
  500. if Config.F then
  501. local QPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,800,50,false,true)
  502. if CanUseSpell(myHero, _Q) == READY and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  503. CastSkillShot(_Q,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  504. end
  505. end
  506. -- Ziggs cast W at Enemy
  507. local WPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,925,50,false,true)
  508. if CanUseSpell(myHero, _W) == READY and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  509. CastSkillShot(_W,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  510. end
  511. end
  512. end
  513. end
  514. end
  515.  
  516. function Harass2()
  517. if IWalkConfig.Harass then
  518. if Config.H then
  519. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero, _Q),50,true,true)
  520. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  521. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  522. end
  523. end
  524. if Config.Z then
  525. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,925,50,true,true)
  526. if CanUseSpell(myHero, _E) == READY and QPred.HitChance == 1 and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  527. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  528. end
  529. end
  530. end
  531. myHeroPos = GetOrigin(myHero)
  532. DrawCircle(9022, 52.840878, 4360,80,1,1,0xffffffff)
  533. DrawCircle(12060, 51, 4806,80,1,1,0xffffffff)
  534. if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,100,0xffff00ff) end
  535. if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z, GetCastRange(myHero,_E) ,3,100,0xffff00ff) end
  536. if CanUseSpell(myHero, _W) == READY and DrawingsConfig.DrawW then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_W),3,100,0xffff00ff) end
  537. end
  538. if GetObjectName(GetMyHero()) == "Syndra" then
  539. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Syndra Loaded</font>"))
  540. --Menu
  541. Config = scriptConfig("Syndra", "Syndra")
  542. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  543. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  544. Config.addParam("KsQ", "Use Q in KS", SCRIPT_PARAM_ONOFF, true)
  545. Config.addParam("KsW", "Use W in KS", SCRIPT_PARAM_ONOFF, true)
  546. Config.addParam("KsR", "Use R in KS", SCRIPT_PARAM_ONOFF, true)
  547. Config.addParam("F", "LaneClear", SCRIPT_PARAM_ONOFF, true)
  548. --Config.addParam("J", "JungleClear", SCRIPT_PARAM_ONOFF, true)
  549. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  550. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  551. Config.addParam("H", "Use Q Harass", SCRIPT_PARAM_ONOFF, true)
  552. Config.addParam("Y", "Use W Harass", SCRIPT_PARAM_ONOFF, true)
  553. Config.addParam("Stun", "Press to Stun", SCRIPT_PARAM_KEYDOWN, string.byte("T")) --Maxxel logic
  554. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  555. LevelConfig = scriptConfig("Level", "Auto Level")
  556. LevelConfig.addParam("L1","Max EQ",SCRIPT_PARAM_ONOFF,false)
  557. DrawingsConfig = scriptConfig("Drawings", "Drawings")
  558. DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
  559. DrawingsConfig.addParam("DrawW","Draw W", SCRIPT_PARAM_ONOFF, true)
  560. DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
  561. DrawingsConfig.addParam("DrawR","Draw R", SCRIPT_PARAM_ONOFF, true)
  562. --Start
  563. OnLoop(function(myHero)
  564. AutoIgnite()
  565. Stun()
  566. LevelUp3()
  567. Harass3()
  568.  
  569. Killsteal3()
  570. LaneClear3()
  571. --JungleClear()
  572. if Config.Combo then
  573. local unit = GetCurrentTarget()
  574. if ValidTarget(unit, 1200) then
  575.  
  576. -- Syndra Q cast
  577. if GetCastName(myHero, _Q) == "SyndraQ" then
  578. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,800,50,false,true)
  579. if Config.Q then
  580. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  581. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  582. end
  583. end
  584. end
  585.  
  586. -- Syndra cast W on Minion
  587. if GetCastName(myHero, _W) == "SyndraW" then
  588. if Config.W then
  589. if CanUseSpell(myHero, _W) == READY then
  590. CastTargetSpell(Obj_AI_Minion, _W)
  591. end
  592. end
  593. end
  594. -- Syndra cast W at Enemy
  595. if GetCastName(myHero, _W) == "SyndraW" then
  596. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,925,50,true,true)
  597. if Config.W then
  598. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  599. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  600. end
  601. end
  602. end
  603. -- Syndra PUSH
  604. if GetCastName(myHero, _E) == "SyndraE" then
  605. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,700,50,true,true)
  606. if Config.E then
  607. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  608. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  609. end
  610. end
  611. end
  612. -- Syndra Ultimate
  613. if GetCastName(myHero, _R) == "SyndraR" then
  614. if Config.R then
  615. if unit ~= nil then
  616. local ult = (GetCastLevel(myHero,_R)*135)+(GetBonusAP(myHero)*.6)
  617. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 675) then
  618. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  619. CastTargetSpell(unit, _R)
  620. end
  621. end
  622. end
  623. end
  624. end
  625.  
  626. end
  627. end
  628. end)
  629. function JungleClear3()
  630. for _,Q in pairs(GetAllMinions(MINION_JUNGLE)) do
  631. if IsInDistance(Q, 650) then
  632. if Config.J then
  633. if GetCastName(myHero, _Q) == "SyndraQ" then
  634. local QPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,800,50,false,true)
  635. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  636. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  637. end
  638. end
  639. end
  640. if GetCastName(myHero, _W) == "SyndraW" then
  641. if Config.Y then
  642. if CanUseSpell(myHero, _W) == READY then
  643. CastTargetSpell(Obj_AI_Minion, _W)
  644. end
  645. end
  646. end
  647. -- Syndra cast W at Enemy
  648. if GetCastName(myHero, _W) == "SyndraW" then
  649. local WPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,925,50,false,true)
  650. if Config.Y then
  651. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  652. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  653. end
  654. end
  655. end
  656. end
  657. end
  658. end
  659. function LevelUp3()
  660. if LevelConfig.L1 then
  661. if GetLevel(myHero) == 1 then
  662. LevelSpell(_Q)
  663. elseif GetLevel(myHero) == 2 then
  664. LevelSpell(_W)
  665. elseif GetLevel(myHero) == 3 then
  666. LevelSpell(_E)
  667. elseif GetLevel(myHero) == 4 then
  668. LevelSpell(_Q)
  669. elseif GetLevel(myHero) == 5 then
  670. LevelSpell(_Q)
  671. elseif GetLevel(myHero) == 6 then
  672. LevelSpell(_R)
  673. elseif GetLevel(myHero) == 7 then
  674. LevelSpell(_Q)
  675. elseif GetLevel(myHero) == 8 then
  676. LevelSpell(_Q)
  677. elseif GetLevel(myHero) == 9 then
  678. LevelSpell(_W)
  679. elseif GetLevel(myHero) == 10 then
  680. LevelSpell(_W)
  681. elseif GetLevel(myHero) == 11 then
  682. LevelSpell(_R)
  683. elseif GetLevel(myHero) == 12 then
  684. LevelSpell(_W)
  685. elseif GetLevel(myHero) == 13 then
  686. LevelSpell(_E)
  687. elseif GetLevel(myHero) == 14 then
  688. LevelSpell(_E)
  689. elseif GetLevel(myHero) == 15 then
  690. LevelSpell(_E)
  691. elseif GetLevel(myHero) == 16 then
  692. LevelSpell(_R)
  693. elseif GetLevel(myHero) == 17 then
  694. LevelSpell(_E)
  695. elseif GetLevel(myHero) == 18 then
  696. LevelSpell(_E)
  697. end
  698. end
  699. end
  700. end
  701. function Killsteal3()
  702. local unit = GetCurrentTarget()
  703. if ValidTarget(unit, 1550) then
  704. for i,enemy in pairs(GetEnemyHeroes()) do
  705. local z = ((GetCastLevel(myHero,_Q)*45)+(GetBonusAP(myHero)*1.6))
  706. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,800,50,true,true)
  707. if CanUseSpell(myHero, _Q) == READY and ValidTarget(enemy,GetCastRange(myHero,_Q)) and Config.KsQ
  708. and CalcDamage(myHero, enemy, z) > GetCurrentHP(unit) then
  709. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  710. end
  711. end
  712. if GetCastName(myHero, _R) == "SyndraR" then
  713. if Config.KsR then
  714. if unit ~= nil then
  715. local ult = (GetCastLevel(myHero,_R)*135)+(GetBonusAP(myHero)*1.5)
  716. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 675) then
  717. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  718. CastTargetSpell(unit, _R)
  719. end
  720. end
  721. end
  722. end
  723. end
  724. if GetCastName(myHero, _W) == "SyndraW" then
  725. if Config.KsW then
  726. local ult = (GetCastLevel(myHero,_R)*40)+(GetBonusAP(myHero)*1)
  727. if CanUseSpell(myHero, _W) == READY then if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  728. CastTargetSpell(Obj_AI_Minion, _W)
  729. end
  730. end
  731. end
  732. end
  733. -- Syndra cast W at Enemy
  734. if GetCastName(myHero, _W) == "SyndraW" then
  735. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,925,50,true,true)
  736. if Config.KsW then
  737. local ult = (GetCastLevel(myHero,_R)*40)+(GetBonusAP(myHero)*1)
  738.  
  739. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  740. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  741. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  742. end
  743. end
  744. end
  745. end
  746. end
  747. end
  748. function Stun()
  749. local unit = GetCurrentTarget() --Maxxxel logic
  750. local myHeroPos = GetOrigin(myHero)
  751. if Config.Stun then
  752. if ValidTarget(unit,1200) then
  753. local timea
  754. local distanceStun=0
  755. if timea~=nil and CanUseSpell(myHero, _Q) ~= READY and CanUseSpell(myHero, _E) ~= READY then
  756. timea=nil
  757. end
  758. ---Values---
  759. local enemyposition = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1200,50,true,true)
  760. enemyposx=enemyposition.PredPos.x
  761. enemyposy=enemyposition.PredPos.y
  762. enemyposz=enemyposition.PredPos.z
  763. local TargetPos = Vector(enemyposx,enemyposy,enemyposz)
  764. if GetDistance(unit)>=700 then
  765. distanceStun=GetDistance(unit)-700
  766. end
  767. if GetDistance(unit)<700 then
  768. distanceStun=0
  769. end
  770. local firePos = TargetPos-(TargetPos-myHeroPos)*(distanceStun/GetDistance(unit))
  771. local dPredict = GetDistance(myHero,firePosPoint)
  772. ---Values end---
  773. if CanUseSpell(myHero, _Q) == READY and CanUseSpell(myHero, _E) == READY and timea==nil then
  774. if dPredict < 1200 then
  775. CastSkillShot(_Q,firePos.x,0,firePos.z)
  776. timea = GetTickCount()
  777. end
  778. end
  779. if CanUseSpell(myHero, _E) == READY and timea~=GetTickCount() then
  780. CastSkillShot(_E,firePos.x,0,firePos.z)
  781. end
  782. end
  783. Move()
  784. end
  785. end
  786. function Move()
  787. local movePos = GenerateMovePos()
  788. if GetDistance(GetMousePos()) > GetHitBox(myHero) then
  789. MoveToXYZ(movePos.x, 0, movePos.z)
  790. end
  791. end
  792. function LaneClear3()
  793. if IWalkConfig.LaneClear then
  794. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  795.  
  796. if IsInDistance(Q, 700) then
  797. if Config.F then
  798. if GetCastName(myHero, _Q) == "SyndraQ" then
  799. local QPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,800,50,false,true)
  800. local EnemyPos = GetOrigin(Q)
  801. if CanUseSpell(myHero, _Q) == READY then
  802. CastSkillShot(_Q,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  803. end
  804. end
  805. end
  806. if GetCastName(myHero, _W) == "SyndraW" then
  807. local EnemyPos = GetOrigin(Q)
  808. if CanUseSpell(myHero, _W) == READY then
  809. CastTargetSpell(Obj_AI_Minion, _W)
  810. end
  811. end
  812.  
  813. -- Syndra cast W at Enemy
  814. if GetCastName(myHero, _W) == "SyndraW" then
  815. local WPred = GetPredictionForPlayer(GetMyHeroPos(),Q,GetMoveSpeed(Q),1700,250,925,50,false,true)
  816. local EnemyPos = GetOrigin(Q)
  817. if CanUseSpell(myHero, _W) == READY then
  818. CastSkillShot(_W,EnemyPos.x,EnemyPos.y,EnemyPos.z)
  819. end
  820. end
  821.  
  822. end
  823. end
  824. end
  825. end
  826.  
  827. function Harass3()
  828. if IWalkConfig.Harass then
  829. if Config.H then
  830. if GetCastName(myHero, _Q) == "SyndraQ" then
  831. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,800,50,true,true)
  832. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  833. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  834. end
  835. end
  836. end
  837. if GetCastName(myHero, _W) == "SyndraW" then
  838. if Config.Y then
  839. if CanUseSpell(myHero, _W) == READY and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  840. CastTargetSpell(Obj_AI_Minion, _W)
  841. end
  842. end
  843. end
  844. -- Syndra cast W at Enemy
  845. if GetCastName(myHero, _W) == "SyndraW" then
  846. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,925,50,true,true)
  847. if Config.Y then
  848. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .45 then
  849. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  850. end
  851. end
  852. end
  853. end
  854. myHeroPos = GetOrigin(myHero)
  855. DrawCircle(9022, 52.840878, 4360,80,1,1,0xffffffff)
  856. DrawCircle(12060, 51, 4806,80,1,1,0xffffffff)
  857. if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,100,0xffff00ff) end
  858. if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z, GetCastRange(myHero,_E) ,3,100,0xffff00ff) end
  859. if CanUseSpell(myHero, _W) == READY and DrawingsConfig.DrawW then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_W),3,100,0xffff00ff) end
  860. if CanUseSpell(myHero, _R) == READY and DrawingsConfig.DrawR then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z, GetCastRange(myHero,_R) ,3,100,0xffff00ff) end
  861. end
  862. -- kalista
  863. if GetObjectName(GetMyHero()) == "Kalista" then
  864. --Menu
  865. Config = scriptConfig("Kalista", "Kalista")
  866. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  867. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  868. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  869. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  870. Config.addParam("Rs", "Use R Save", SCRIPT_PARAM_ONOFF, true)
  871. Config.addParam("F", "E Clear", SCRIPT_PARAM_ONOFF, true)
  872. Config.addParam("Z", "Spam E", SCRIPT_PARAM_KEYDOWN, string.byte("C"))
  873. Config.addParam("M", "Execute Jungle", SCRIPT_PARAM_ONOFF, true)
  874. Config.addParam("N", "Auto E Kill", SCRIPT_PARAM_ONOFF, true)
  875. Config.addParam("I", "KS Q", SCRIPT_PARAM_ONOFF, true)
  876. Config.addParam("G", "Send Ghost", SCRIPT_PARAM_KEYDOWN, string.byte("T"))
  877. Config.addParam("X", "Wall Jump 1", SCRIPT_PARAM_KEYDOWN, string.byte("L"))
  878. Config.addParam("Y", "Wall Jump 2", SCRIPT_PARAM_KEYDOWN, string.byte("K"))
  879. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  880. ItemsConfig = scriptConfig("Items", "Items")
  881. ItemsConfig.addParam("I4","Use QSS",SCRIPT_PARAM_ONOFF,true)
  882. LevelConfig = scriptConfig("Level", "Auto Level")
  883. LevelConfig.addParam("L1","Max EQ",SCRIPT_PARAM_ONOFF,false)
  884. LevelConfig.addParam("L2","Max EW",SCRIPT_PARAM_ONOFF,false)
  885. DrawingsConfig = scriptConfig("Drawings", "Drawings")
  886. DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
  887. DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
  888. DrawingsConfig.addParam("DrawDMG", "Draw Damage", SCRIPT_PARAM_ONOFF, true)
  889. DrawingsConfig.addParam("DrawQW", "Draw Wall Jump", SCRIPT_PARAM_ONOFF, true)
  890. --Start
  891. OnLoop(function(myHero)
  892. Killsteal()
  893. AutoIgnite()
  894. Drawings()
  895. LevelUpMeleeSupport()
  896. LevelUp()
  897. LaneClear()
  898. JungleClear()
  899. Ghost()
  900. WallJump()
  901. if Config.Combo then
  902. local unit = GetCurrentTarget()
  903. if ValidTarget(unit, 1550) then
  904.  
  905. if DrawingsConfig.DrawDMG then
  906. local hp = GetCurrentHP(unit)
  907. local dmg = 0
  908. local targetPos = GetOrigin(unit)
  909. local drawPos = WorldToScreen(1,targetPos.x,targetPos.y,targetPos.z)
  910. if CanUseSpell(myHero, _Q) == READY then
  911. local Dmgz = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  912. dmg = dmg + CalcDamage(myHero, unit, GotBuff(unit,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(unit,"kalistaexpungemarker")-1) * (kalE(GetCastLevel(myHero,_E)) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  913. end
  914. if CanUseSpell(myHero, _E) == READY then
  915. dmg = dmg + CalcDamage(myHero, unit, 0, 10 + 10*GetCastLevel(myHero,_E) + 0.6*GetBonusDmg(myHero))
  916. end
  917. if dmg > hp then
  918. DrawText("Killable",20,drawPos.x,drawPos.y,0xffffffff)
  919. DrawDmgOverHpBar(unit,hp,0,hp,0xffffffff)
  920. else
  921. DrawText(math.floor(100 * dmg / hp).."%",20,drawPos.x,drawPos.y,0xffffffff)
  922. DrawDmgOverHpBar(unit
  923. ,hp,0,dmg,0xffffffff)
  924. end
  925. end
  926. if GetItemSlot(myHero,3140) > 0 and ItemsConfig.I4 and GotBuff(myHero, "Stun") == 1 then
  927. CastTargetSpell(unit, GetItemSlot(myHero,3140))
  928. end
  929. if GetItemSlot(myHero,3139) > 0 and ItemsConfig.I4 and GotBuff(myHero, "Stun") == 1 then
  930. CastTargetSpell(unit, GetItemSlot(myHero,3139))
  931. end
  932. if Config.Q then
  933. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1150,50,true,true)
  934. if CanUseSpell(myHero, _Q) == READY then
  935. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  936. end
  937. end
  938. --kalista E
  939.  
  940. if Config.E then
  941. local Dmgz= GetBonusDmg(myHero)+GetBaseDamage(myHero)
  942. 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)
  943. if CalcDamage(myHero, unit, dmg) > GetCurrentHP(unit) then
  944. if CanUseSpell(myHero,_E) == READY then
  945. CastSpell(_E)
  946. end
  947. end
  948. end
  949. if IWalkConfig.Harass then
  950. if Config.Z then
  951. if GotBuff(unit,"kalistaexpungemarker") > 4 then
  952. if CanUseSpell(myHero,_E) == READY and IsInDistance(unit, 1200) then
  953. CastSpell(_E)
  954. end
  955. end
  956. end
  957. end
  958. -- Cast R
  959. if Config.R then
  960. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.6 and
  961. IsObjectAlive(unit) and
  962. CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1200) and EnemiesAround(GetMyHeroPos(), 1400) >= 2 then
  963. CastSpell(_R)
  964. end
  965. end
  966. end
  967. end
  968. end)
  969. -- LanClear
  970. function LaneClear()
  971. if IWalkConfig.LaneClear then
  972. if Config.F then
  973. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  974. if IsInDistance(Q, 650) then
  975. local Dmgz = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  976. local dmg = (GotBuff(Q,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(Q,"kalistaexpungemarker")-1) * (kalE(GetCastLevel(myHero,_E)) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  977. local hp = GetCurrentHP(Q)
  978. local Dmg = CalcDamage(myHero, Q, dmg)
  979. if Dmg > hp then
  980. if CanUseSpell(myHero,_E) == READY and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .35 then
  981. CastSpell(_E)
  982. end
  983. end
  984. end
  985. end
  986. end
  987. end
  988. end
  989. function Ghost()
  990. if Config.G then
  991. if CanUseSpell(myHero, _W) == READY then
  992. CastSkillShot(_W,10092.000000, -71.240601, 4452.000000)
  993. end
  994. end
  995. end
  996. function WallJump()
  997. local HeroPos = GetOrigin(myHero)
  998. if Config.X and HeroPos.x == 11972 and HeroPos.z == 4708 then
  999. CastSkillShot(_Q,11572, -71.240601, 4102)
  1000. MoveToXYZ(11572, -71.240601, 4102)
  1001. elseif Config.X then
  1002. MoveToXYZ(11972, 59.729401, 4708)
  1003.  
  1004. end
  1005. if Config.Y and HeroPos.x == 9022 and HeroPos.z == 4360 then
  1006. CastSkillShot(_Q,9744, -71.240601, 4654)
  1007. MoveToXYZ(9634, -71.240601, 4544)
  1008. elseif Config.Y then
  1009. MoveToXYZ(9022, 52.840878, 4360)
  1010.  
  1011. end
  1012. end
  1013. function JungleClear()
  1014. if IWalkConfig.JungleClear then
  1015. if Config.M then
  1016. for _,Q in pairs(GetAllMinions(MINION_JUNGLE)) do
  1017. if IsInDistance(Q, 650) then
  1018. local Dmgz = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  1019. local dmg = (GotBuff(Q,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(Q,"kalistaexpungemarker")-1) * (kalE(GetCastLevel(myHero,_E)) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  1020. local hp = GetCurrentHP(Q)
  1021. local Dmg = CalcDamage(myHero, Q, dmg)
  1022. if Dmg > hp then
  1023. if CanUseSpell(myHero,_E) == READY and (GetCurrentMana(myHero)/GetMaxMana(myHero)) > .35 then
  1024. CastSpell(_E)
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. end
  1032. function Killsteal()
  1033. local unit = GetCurrentTarget()
  1034. if ValidTarget(unit, 1550) then
  1035. for i,enemy in pairs(GetEnemyHeroes()) do
  1036. local z = ((GetCastLevel(myHero,_Q)*30)+(GetBonusDmg(myHero)*1.9))
  1037. if CanUseSpell(myHero, _Q) == READY and ValidTarget(enemy,GetCastRange(myHero,_Q)) and Config.I
  1038. and (GetCastLevel(myHero,_Q)*60)+(GetBonusDmg(myHero)*1) and CalcDamage(myHero, enemy, z) > GetCurrentHP(unit) then
  1039. CastTargetSpell(enemy, _Q)
  1040. end
  1041. end
  1042. if Config.N then
  1043. local Dmgz= GetBonusDmg(myHero)+GetBaseDamage(myHero)
  1044. local dmg = (GotBuff(unit,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (Dmgz * 0.6)) + (GotBuff(unit,"kalistaexpungemarker")-1) * (kalE(GetCastLevel(myHero,_E)) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*Dmgz) or 0)
  1045. if CalcDamage(myHero, unit, dmg) > GetCurrentHP(unit) then
  1046. if CanUseSpell(myHero,_E) == READY then
  1047. CastSpell(_E)
  1048. end
  1049. end
  1050. end
  1051. end
  1052. end
  1053. function LevelUpMeleeSupport()
  1054. if LevelConfig.L2 then
  1055. if GetLevel(myHero) == 1 then
  1056. LevelSpell(_E)
  1057. elseif GetLevel(myHero) == 2 then
  1058. LevelSpell(_W)
  1059. elseif GetLevel(myHero) == 3 then
  1060. LevelSpell(_Q)
  1061. elseif GetLevel(myHero) == 4 then
  1062. LevelSpell(_E)
  1063. elseif GetLevel(myHero) == 5 then
  1064. LevelSpell(_E)
  1065. elseif GetLevel(myHero) == 6 then
  1066. LevelSpell(_R)
  1067. elseif GetLevel(myHero) == 7 then
  1068. LevelSpell(_E)
  1069. elseif GetLevel(myHero) == 8 then
  1070. LevelSpell(_E)
  1071. elseif GetLevel(myHero) == 9 then
  1072. LevelSpell(_W)
  1073. elseif GetLevel(myHero) == 10 then
  1074. LevelSpell(_W)
  1075. elseif GetLevel(myHero) == 11 then
  1076. LevelSpell(_R)
  1077. elseif GetLevel(myHero) == 12 then
  1078. LevelSpell(_W)
  1079. elseif GetLevel(myHero) == 13 then
  1080. LevelSpell(_Q)
  1081. elseif GetLevel(myHero) == 14 then
  1082. LevelSpell(_Q)
  1083. elseif GetLevel(myHero) == 15 then
  1084. LevelSpell(_Q)
  1085. elseif GetLevel(myHero) == 16 then
  1086. LevelSpell(_R)
  1087. elseif GetLevel(myHero) == 17 then
  1088. LevelSpell(_Q)
  1089. elseif GetLevel(myHero) == 18 then
  1090. LevelSpell(_Q)
  1091. end
  1092. end
  1093. end
  1094. function LevelUp()
  1095. if LevelConfig.L1 then
  1096. if GetLevel(myHero) == 1 then
  1097. LevelSpell(_E)
  1098. elseif GetLevel(myHero) == 2 then
  1099. LevelSpell(_Q)
  1100. elseif GetLevel(myHero) == 3 then
  1101. LevelSpell(_W)
  1102. elseif GetLevel(myHero) == 4 then
  1103. LevelSpell(_E)
  1104. elseif GetLevel(myHero) == 5 then
  1105. LevelSpell(_E)
  1106. elseif GetLevel(myHero) == 6 then
  1107. LevelSpell(_R)
  1108. elseif GetLevel(myHero) == 7 then
  1109. LevelSpell(_E)
  1110. elseif GetLevel(myHero) == 8 then
  1111. LevelSpell(_E)
  1112. elseif GetLevel(myHero) == 9 then
  1113. LevelSpell(_Q)
  1114. elseif GetLevel(myHero) == 10 then
  1115. LevelSpell(_Q)
  1116. elseif GetLevel(myHero) == 11 then
  1117. LevelSpell(_R)
  1118. elseif GetLevel(myHero) == 12 then
  1119. LevelSpell(_Q)
  1120. elseif GetLevel(myHero) == 13 then
  1121. LevelSpell(_W)
  1122. elseif GetLevel(myHero) == 14 then
  1123. LevelSpell(_W)
  1124. elseif GetLevel(myHero) == 15 then
  1125. LevelSpell(_W)
  1126. elseif GetLevel(myHero) == 16 then
  1127. LevelSpell(_R)
  1128. elseif GetLevel(myHero) == 17 then
  1129. LevelSpell(_W)
  1130. elseif GetLevel(myHero) == 18 then
  1131. LevelSpell(_W)
  1132. end
  1133. end
  1134. end
  1135. function kalE(x) if x <= 1 then return 10 else return kalE(x-1) + 2 + x end end -- Insipireds code.
  1136. function Drawings()
  1137. myHeroPos = GetOrigin(myHero)
  1138. DrawCircle(9022, 52.840878, 4360,80,1,1,0xffffffff)
  1139. DrawCircle(12060, 51, 4806,80,1,1,0xffffffff)
  1140. if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,100,0xffff00ff) end
  1141. if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z, GetCastRange(myHero,_E) ,3,100,0xffff00ff) end
  1142. end
  1143. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Kalista Loaded</font>"))
  1144. end
  1145. -- Vi
  1146. if GetObjectName(GetMyHero()) == "Vi" then
  1147. --Menu
  1148. Config = scriptConfig("Vi", "Vi")
  1149. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1150. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1151. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1152. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1153. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1154. --Start
  1155. OnLoop(function(myHero)
  1156. AutoIgnite()
  1157. if Config.Combo and waitTickCount < GetTickCount() then
  1158. local unit = GetCurrentTarget()
  1159. if ValidTarget(unit, 1550) then
  1160.  
  1161.  
  1162. local target = GetTarget(725, DAMAGE_PHYSICAL) -- Q from Deftsu
  1163. if CanUseSpell(myHero, _Q) == READY and ValidTarget(target, 725) and Config.Q then
  1164. local myHeroPos = GetMyHeroPos()
  1165. CastSkillShot(_Q, myHeroPos.x, myHeroPos.y, myHeroPos.z)
  1166. for i=250, 725, 250 do
  1167. DelayAction(function()
  1168. local _Qrange = 225 + math.min(225, i/2)
  1169. local Pred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),math.huge,600,_Qrange,100,true,true)
  1170. if Pred.HitChance >= 1 then
  1171. CastSkillShot2(_Q, Pred.PredPos.x, Pred.PredPos.y, Pred.PredPos.z)
  1172. end
  1173. end, i)
  1174. end
  1175. end
  1176. --Vi E
  1177.  
  1178. if Config.E then
  1179. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 175) then
  1180. CastSpell(_E)
  1181. end
  1182. end
  1183. -- Cast R
  1184. if Config.R then
  1185. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 800) then
  1186. CastTargetSpell(unit, _R)
  1187. end
  1188. end
  1189. end
  1190. end
  1191. end)
  1192. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Vi Loaded</font>"))
  1193. end
  1194. -- Yasuo
  1195. if GetObjectName(GetMyHero()) == "Yasuo" then
  1196. --Menu
  1197. Config = scriptConfig("Yasuo", "Yasuo")
  1198. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1199. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1200. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1201. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1202. Config.addParam("F", "E to Minion (Combo)", SCRIPT_PARAM_ONOFF, true)
  1203. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1204. --Start
  1205. OnLoop(function(myHero)
  1206. local unit = GetCurrentTarget()
  1207. AutoIgnite()
  1208. if Config.Combo then
  1209. if ValidTarget(unit, 1550) then
  1210. -- Gang Q
  1211.  
  1212. if Config.Q then
  1213. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero, _Q),50,false,true)
  1214. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1200) and QPred.HitChance == 1 then
  1215. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1216. end
  1217. end
  1218. -- Yasuo E
  1219. if GetCastName(myHero, _E) == "YasuoDashWrapper" then
  1220. if Config.E then
  1221. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 475) then
  1222. CastTargetSpell(unit,_E)
  1223. end
  1224. end
  1225. end
  1226. -- Yasuo R
  1227. if Config.R then
  1228. local ult = (GetCastLevel(myHero,_R)*100)+(GetBonusDmg(myHero)*1.50)
  1229. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) and CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 1200) then
  1230. CastSpell(_R)
  1231. end
  1232. end
  1233. end
  1234. end
  1235. end)
  1236.  
  1237. OnLoop(function(myHero)
  1238. if Config.Combo then
  1239. if Config.F then
  1240. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  1241. local unit = GetCurrentTarget()
  1242. if unit == nil then return end
  1243. if IsInDistance(Q, 750) or IsInDistance(unit, 750) then
  1244. local targetPos = GetOrigin(Q)
  1245. local drawPos = WorldToScreen(1,targetPos.x,targetPos.y,targetPos.z)
  1246. local hp = GetCurrentHP(Q)
  1247. local Dmg = CalcDamage(myHero, Q, GetBonusDmg(myHero)+GetBaseDamage(myHero))
  1248. local unit = GetCurrentTarget()
  1249. if Dmg < hp or Dmg > hp then
  1250. elseif GotBuff(unit, "YasuoDashWrapper") > 1 then return end
  1251. if GetCastName(myHero, _E) == "YasuoDashWrapper" then
  1252. if CanUseSpell(myHero, _E) == READY then
  1253. CastTargetSpell(Q,_E)
  1254. end
  1255. end
  1256. end
  1257. end
  1258. end
  1259.  
  1260. end
  1261. end)
  1262. OnProcessSpell(function(unit, spell) -- All of this is from ispired
  1263. myHero = GetMyHero()
  1264. if Config.W and unit and GetTeam(unit) ~= GetTeam(myHero) and GetObjectType(unit) == GetObjectType(myHero) and GetDistance(unit) < 1500 then
  1265. if myHero == spell.target and spell.name:lower():find("attack") and GetRange(unit) >= 450 and CalcDamage(unit, myHero, GetBonusDmg(unit)+GetBaseDamage(unit))/GetCurrentHP(myHero) > 0.1337 then
  1266. local wPos = GenerateWallPos(GetOrigin(unit))
  1267. CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
  1268. elseif spell.endPos then
  1269. local makeUpPos = GenerateSpellPos(GetOrigin(unit), spell.endPos, GetDistance(unit, myHero))
  1270. if GetDistanceSqr(makeUpPos) < (GetHitBox(myHero)*3)^2 or GetDistanceSqr(spell.endPos) < (GetHitBox(myHero)*3)^2 then
  1271. local wPos = GenerateWallPos(GetOrigin(unit))
  1272. CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
  1273. end
  1274. end
  1275. end
  1276. end)
  1277. function GenerateWallPos(unitPos)
  1278. local tV = {x = (unitPos.x-GetMyHeroPos().x), z = (unitPos.z-GetMyHeroPos().z)}
  1279. local len = math.sqrt(tV.x * tV.x + tV.z * tV.z)
  1280. return {x = GetMyHeroPos().x + 400 * tV.x / len, y = 0, z = GetMyHeroPos().z + 400 * tV.z / len}
  1281. end
  1282.  
  1283. function GenerateSpellPos(unitPos, spellPos, range)
  1284. local tV = {x = (spellPos.x-unitPos.x), z = (spellPos.z-unitPos.z)}
  1285. local len = math.sqrt(tV.x * tV.x + tV.z * tV.z)
  1286. return {x = unitPos.x + range * tV.x / len, y = 0, z = unitPos.z + range * tV.z / len}
  1287. end -- Inspireds END
  1288. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Yasuo Loaded</font>"))
  1289. end
  1290. -- Sona
  1291. if GetObjectName(GetMyHero()) == "Sona" then
  1292. --Menu
  1293. Config = scriptConfig("Sona", "Sona")
  1294. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1295. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1296. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1297. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1298. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1299. --Start
  1300. OnLoop(function(myHero)
  1301. local unit = GetCurrentTarget()
  1302. if Config.W then
  1303. for _, ally in pairs(GetAllyHeroes()) do
  1304. if Config.W then
  1305. if (GetCurrentHP(ally)/GetMaxHP(ally))<0.6 and
  1306. CanUseSpell(myHero, _W) == READY and IsInDistance(ally, 1000) and IsObjectAlive(ally) then
  1307. CastSpell(_W)
  1308. end
  1309. end
  1310. end
  1311. end
  1312. if GetCastName(myHero, _W) == "SonaW" then
  1313. if Config.W then
  1314. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.5 and
  1315. CanUseSpell(myHero, _W) == READY and IsObjectAlive(myHero) then
  1316. CastSpell(_W)
  1317. end
  1318. end
  1319. end
  1320. AutoIgnite()
  1321. if Config.Combo then
  1322. if ValidTarget(unit, 1550) then
  1323. -- Sona Q
  1324. if Config.Q then
  1325. if GetCastName(myHero, _Q) == "SonaQ" then
  1326. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,260,50,false,true)
  1327. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 850) then
  1328. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1329. end
  1330. end
  1331. end
  1332. -- Sona R
  1333. if Config.R then
  1334. if GetCastName(myHero, _R) == "SonaR" then
  1335. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1000,50,false,true)
  1336. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.6 and
  1337. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  1338. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  1339. end
  1340. end
  1341. end
  1342. end
  1343. end
  1344. end)
  1345. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Sona Loaded</font>"))
  1346. end
  1347. --Khazix
  1348. if GetObjectName(GetMyHero()) == "Khazix" then
  1349. --Menu
  1350. Config = scriptConfig("Khazix", "Khazix")
  1351. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1352. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1353. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1354. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1355. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1356. --Start
  1357. OnLoop(function(myHero)
  1358. AutoIgnite()
  1359. if Config.Combo then
  1360. local unit = GetCurrentTarget()
  1361. if ValidTarget(unit, 1700) then
  1362.  
  1363. -- Khazix E
  1364. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero,_E),50,false,true)
  1365. if Config.E then
  1366. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  1367. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  1368. end
  1369. end
  1370. -- Khazix Q
  1371. if Config.Q then
  1372. if CanUseSpell(myHero, _Q) == READY and IsObjectAlive(unit) and IsInDistance(unit, 325) then
  1373. CastTargetSpell(unit,_Q)
  1374. end
  1375. end
  1376. -- Khazix Q
  1377. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,600,50,true,true)
  1378. if Config.Q then
  1379. if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 1000) and WPred.HitChance == 1 then
  1380. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end)
  1386. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Khazix Loaded</font>"))
  1387. end
  1388. --Rumble
  1389. if GetObjectName(GetMyHero()) == "Rumble" then
  1390. --Menu
  1391. Config = scriptConfig("Rumble", "Rumble")
  1392. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1393. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1394. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1395. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1396. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1397. --Start
  1398. OnLoop(function(myHero)
  1399. AutoIgnite()
  1400. if Config.Combo then
  1401. local unit = GetCurrentTarget()
  1402. if ValidTarget(unit, 1700) then
  1403.  
  1404. -- Rumble Q
  1405. if GetCastName(myHero, _Q) == "RumbleFlameThrower" then
  1406. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,600,50,false,true)
  1407. if Config.Q then
  1408. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 600) and QPred.HitChance == 1 then
  1409. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1410. end
  1411. end
  1412. end
  1413. -- Rumble E
  1414. if GetCastName(myHero, _E) == "RumbleGrenade" then
  1415. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,850,50,true,true)
  1416. if Config.E then
  1417. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 850) and EPred.HitChance == 1 then
  1418. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  1419. end
  1420. end
  1421. end
  1422. -- Rumble R
  1423. local myorigin = GetOrigin(unit)
  1424. local mymouse = GetCastRange(myHero,_R)
  1425. if Config.R then
  1426. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1700,55,false,true)
  1427. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1700) then
  1428. CastSkillShot3(_R,myorigin,EPred)
  1429. end
  1430. end
  1431. local myorigin = GetOrigin(unit)
  1432. local mymouse = GetCastRange(myHero,_R)
  1433. if Config.R then
  1434. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1700,55,false,true)
  1435. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1700) then
  1436. CastSkillShot3(_R,myorigin,EPred)
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end)
  1442. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Rumble Loaded</font>"))
  1443. end
  1444. -- Alistar
  1445. if GetObjectName(GetMyHero()) == "Alistar" then
  1446. --Menu
  1447. Config = scriptConfig("Alistar", "Alistar")
  1448. Config.addParam("QW", "Use QW Combo", SCRIPT_PARAM_ONOFF, false)
  1449. Config.addParam("WQ", "Use WQ Combo", SCRIPT_PARAM_ONOFF, true)
  1450. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1451. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1452. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1453. --Start
  1454. OnLoop(function(myHero)
  1455. local unit = GetCurrentTarget()
  1456. if GetCastName(myHero, _R) == "FerociousHowl" then
  1457. if Config.R then
  1458. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.4 and
  1459. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  1460. CastSpell(_R)
  1461. end
  1462. end
  1463. end
  1464. for _, ally in pairs(GetAllyHeroes()) do
  1465. if Config.E then
  1466. if (GetCurrentHP(ally)/GetMaxHP(ally))<0.7 and
  1467. CanUseSpell(myHero, _E) == READY and IsInDistance(ally, 575) and IsObjectAlive(ally) then
  1468. CastSpell(_E)
  1469. end
  1470. end
  1471. end
  1472. if GetCastName(myHero, _E) == "TriumphantRoar" then
  1473. if Config.E then
  1474. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.7 and
  1475. CanUseSpell(myHero, _E) == READY and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  1476. CastSpell(_E)
  1477. end
  1478. end
  1479. end
  1480. AutoIgnite()
  1481. if Config.Combo then
  1482. if ValidTarget(unit, 1550) then
  1483. -- Alistar W
  1484. if GetCastName(myHero, _W) == "Headbutt" then
  1485. if Config.WQ then
  1486. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 650) then
  1487. CastTargetSpell(unit, _W)
  1488. end
  1489. end
  1490. end
  1491. -- Alistar Q
  1492. if Config.WQ then
  1493. if GetCastName(myHero, _Q) == "Pulverize" then
  1494. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,260,50,false,true)
  1495. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 365) then
  1496. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1497. end
  1498. end
  1499. end
  1500. -- Alistar Q
  1501. if Config.QW then
  1502. if GetCastName(myHero, _Q) == "Pulverize" then
  1503. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,260,50,false,true)
  1504. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 365) then
  1505. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1506. end
  1507. end
  1508. end
  1509. -- Alistar W
  1510. if GetCastName(myHero, _W) == "Headbutt" then
  1511. if Config.QW then
  1512. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 300) then
  1513. CastTargetSpell(unit, _W)
  1514. end
  1515. end
  1516. end
  1517. end
  1518. end
  1519. end)
  1520. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Alistar Loaded</font>"))
  1521. end
  1522. -- Leona
  1523. if GetObjectName(GetMyHero()) == "Leona" then
  1524. --Menu
  1525. Config = scriptConfig("Leona", "Leona")
  1526. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1527. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1528. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1529. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1530. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1531. --Start
  1532. OnLoop(function(myHero)
  1533. AutoIgnite()
  1534. LeonaW()
  1535. local unit = GetCurrentTarget()
  1536. if Config.Combo then
  1537. if ValidTarget(unit, 1550) then
  1538.  
  1539. -- Leona Q
  1540. if Config.Q then
  1541. if GetCastName(myHero, _Q) == "LeonaShieldOfDaybreak" then
  1542. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 625) then
  1543. CastTargetSpell(unit,_Q)
  1544. end
  1545. end
  1546. end
  1547. --Leona E
  1548. if Config.E then
  1549. if GetCastName(myHero, _E) == "LeonaZenithBlade" then
  1550. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero,_E),50,false,true)
  1551. if CanUseSpell(myHero, _E) == READY and IsObjectAlive(unit) and IsInDistance(unit, 700) then
  1552. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  1553. end
  1554. end
  1555. end
  1556. -- Leona R
  1557. if Config.R then
  1558. if GetCastName(myHero, _R) == "LeonaSolarFlare" then
  1559. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero,_R),50,false,true)
  1560. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.8 and
  1561. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 1100) then
  1562. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end
  1568. end)
  1569. function LeonaW()
  1570. if GetCastName(myHero, _W) == "LeonaSolarBarrier" then
  1571. if Config.W then
  1572. local unit = GetCurrentTarget()
  1573. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.75 and
  1574. CanUseSpell(myHero, _W) == READY and GotBuff(myHero, "recall") == 0 then
  1575. CastTargetSpell(myHero, _W)
  1576. end
  1577. end
  1578. end
  1579. end
  1580. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Leona Loaded</font>"))
  1581. end
  1582. -- Swain
  1583. if GetObjectName(GetMyHero()) == "Swain" then
  1584. --Menu
  1585. Config = scriptConfig("Swain", "Swain")
  1586. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1587. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1588. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1589. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1590. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1591. --Start
  1592. OnLoop(function(myHero)
  1593. local unit = GetCurrentTarget()
  1594. if GetCastName(myHero, _R) == "SwainMetamorphism" then
  1595. if Config.R then
  1596. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.3 and
  1597. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  1598. CastTargetSpell(myHero,_R)
  1599. end
  1600. end
  1601. end
  1602. AutoIgnite()
  1603. if Config.Combo then
  1604. if ValidTarget(unit, 1550) then
  1605.  
  1606. -- Swain Q
  1607. if Config.Q then
  1608. if GetCastName(myHero, _Q) == "SwainDecrepify" then
  1609. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 625) then
  1610. CastTargetSpell(unit,_Q)
  1611. end
  1612. end
  1613. end
  1614. --Swain E
  1615. if Config.E then
  1616. if GetCastName(myHero, _E) == "SwainTorment" then
  1617. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 625) then
  1618. CastTargetSpell(unit,_E)
  1619. end
  1620. end
  1621. end
  1622. -- Swain W
  1623. if Config.W then
  1624. if GetCastName(myHero, _W) == "SwainShadowGrasp" then
  1625. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero,_W),50,false,true)
  1626. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 625) then
  1627. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1628. end
  1629. end
  1630. end
  1631. if Config.R then
  1632. if GetCastName(myHero, _R) == "SwainMetamorphism" then
  1633. local ult = (GetCastLevel(myHero,_R)*50+130)+(GetBonusAP(myHero)*.2)
  1634. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) and
  1635. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 700) then
  1636. CastTargetSpell(myHero, _R)
  1637. end
  1638. end
  1639. end
  1640. end
  1641. end
  1642. end)
  1643. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Swain Loaded</font>"))
  1644. end
  1645. -- Gnar
  1646. if GetObjectName(GetMyHero()) == "Gnar" then
  1647. --Menu
  1648. Config = scriptConfig("Gnar", "Gnar")
  1649. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1650. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1651. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1652. --Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1653. Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
  1654. Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
  1655. Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
  1656. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1657. --Start
  1658. OnLoop(function(myHero)
  1659. AutoIgnite()
  1660. if Config.Combo then
  1661. local mymouse = GetMousePos()
  1662. local unit = GetCurrentTarget()
  1663. if ValidTarget(unit, 1550) then
  1664.  
  1665. -- Gnar Q
  1666. if Config.Q then
  1667. if GetCastName(myHero, _Q) == "GnarQ" then
  1668. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1100,50,true,true)
  1669. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1100) then
  1670. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1671. end
  1672. end
  1673. end
  1674. --Gnar E gnarbigqwe
  1675. if Config.E then
  1676. if GetCastName(myHero, _E) == "GnarE" then
  1677. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 1100) then
  1678. CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
  1679. end
  1680. end
  1681. end
  1682. -- Gnar W
  1683. if Config.W2 then
  1684. if GetCastName(myHero, _W) == "gnarbigw" then
  1685. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,GetCastRange(myHero,_W),50,false,true)
  1686. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and ValidTarget(unit, GetCastRange(myHero,_W)) then
  1687. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1688. end
  1689. end
  1690. end
  1691. if Config.Q2 then
  1692. if GetCastName(myHero, _Q) == "gnarbigq" then
  1693. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1100,50,true,true)
  1694. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1100) then
  1695. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1696. end
  1697. end
  1698. end
  1699. if Config.E2 then
  1700. if GetCastName(myHero, _E) == "gnarbige" then
  1701. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,475,50,false,true)
  1702. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 1100) then
  1703. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  1704. end
  1705. end
  1706. end
  1707.  
  1708. end
  1709. end
  1710. end)
  1711. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Gnar Loaded</font>"))
  1712. end
  1713. -- Udyr
  1714. if GetObjectName(GetMyHero()) == "Udyr" then
  1715. --Menu
  1716. Config = scriptConfig("Udyr", "Udyr")
  1717. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1718. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1719. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1720. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1721. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1722. --Start
  1723. OnLoop(function(myHero)
  1724. AutoIgnite()
  1725. if Config.Combo then
  1726. local unit = GetCurrentTarget()
  1727. if ValidTarget(unit, 1550) then
  1728.  
  1729. --Udyr E
  1730. if GetCastName(myHero, _E) == "UdyrBearStance" then
  1731. if Config.E then
  1732. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 125) then
  1733. CastTargetSpell(myHero,_E)
  1734. end
  1735. end
  1736. end
  1737. -- Udyr Q
  1738. if Config.Q then
  1739. if GetCastName(myHero, _Q) == "UdyrTigerStance" then
  1740. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 125) then
  1741. CastTargetSpell(myHero,_Q)
  1742. end
  1743. end
  1744. end
  1745. -- Udyr W
  1746. if GetCastName(myHero, _W) == "UdyrTurtleStance" then
  1747. if Config.W then
  1748. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,false,true)
  1749. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 125) then
  1750. CastTargetSpell(myHero,_W)
  1751. end
  1752. end
  1753. end
  1754. -- Cast R
  1755. if GetCastName(myHero, _R) == "UdyrPhoenixStance" then
  1756. if Config.R then
  1757. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 250) then
  1758. CastTargetSpell(myHero, _R)
  1759. end
  1760. end
  1761. end
  1762. end
  1763. end
  1764. end)
  1765. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Udyr Loaded</font>"))
  1766. end
  1767. -- Brand
  1768. if GetObjectName(GetMyHero()) == "Brand" then
  1769. --Menu
  1770. Config = scriptConfig("Brand", "Brand")
  1771. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1772. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1773. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1774. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1775. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1776. --Start
  1777. OnLoop(function(myHero)
  1778. AutoIgnite()
  1779. if Config.Combo then
  1780. local unit = GetCurrentTarget()
  1781. if ValidTarget(unit, 1550) then
  1782.  
  1783. --Brand E
  1784. if GetCastName(myHero, _E) == "BrandConflagration" then
  1785. if Config.E then
  1786. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 625) then
  1787. CastTargetSpell(unit,_E)
  1788. end
  1789. end
  1790. end
  1791. -- Brand Q
  1792. if Config.Q then
  1793. if GetCastName(myHero, _Q) == "BrandBlaze" then
  1794. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1050,50,true,true)
  1795. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1050) and GotBuff(unit, "brandablaze") == 1 then
  1796. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1797. end
  1798. end
  1799. end
  1800. -- Brand W
  1801. if GetCastName(myHero, _W) == "BrandFissure" then
  1802. if Config.W then
  1803. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,false,true)
  1804. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 900) then
  1805. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1806. end
  1807. end
  1808. end
  1809. -- Cast R
  1810. if GetCastName(myHero, _R) == "BrandWildfire" then
  1811. if Config.R then
  1812. local ult = (GetCastLevel(myHero,_R)*100)+(GetBonusAP(myHero)*.50)
  1813. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) and
  1814. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 750) then
  1815. CastTargetSpell(unit, _R)
  1816. end
  1817. end
  1818. end
  1819. end
  1820. end
  1821. end)
  1822. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Brand Loaded</font>"))
  1823. end
  1824. -- Fiora
  1825. if GetObjectName(GetMyHero()) == "Fiora" then
  1826. --Menu
  1827. Config = scriptConfig("Fiora", "Fiora")
  1828. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1829. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1830. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1831. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1832. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1833. --Start
  1834. OnLoop(function(myHero)
  1835. AutoIgnite()
  1836. if Config.Combo then
  1837. local unit = GetCurrentTarget()
  1838. if ValidTarget(unit, 1550) then
  1839.  
  1840. -- Fiora Q
  1841. if Config.Q then
  1842. if GetCastName(myHero, _Q) == "FioraQ" then
  1843. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,400,50,false,true)
  1844. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 400) then
  1845. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1846. end
  1847. end
  1848. end
  1849. -- Fiora W
  1850. if GetCastName(myHero, _W) == "FioraW" then
  1851. if Config.W then
  1852. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,false,true)
  1853. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 750) then
  1854. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1855. end
  1856. end
  1857. end
  1858. --Fiora E
  1859. if GetCastName(myHero, _E) == "FioraE" then
  1860. if Config.E then
  1861. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 260) then
  1862. CastTargetSpell(myHero,_E)
  1863. end
  1864. end
  1865. end
  1866. -- Cast R
  1867. if GetCastName(myHero, _R) == "FioraR" then
  1868. if Config.R then
  1869. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.4 and
  1870. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 500) then
  1871. CastTargetSpell(unit, _R)
  1872. end
  1873. end
  1874. end
  1875. end
  1876. end
  1877. end)
  1878. OnProcessSpell(function(unit, spell) -- Modified Yasuo Wall Code
  1879. myHero = GetMyHero()
  1880. if Config.W and unit and GetTeam(unit) ~= GetTeam(myHero) and GetObjectType(unit) == GetObjectType(myHero) and GetDistance(unit) < 1500 then
  1881. if myHero == spell.target and spell.name:lower():find("attack") and GetRange(unit) >= 450 and CalcDamage(unit, myHero, GetBonusDmg(unit)+GetBaseDamage(unit))/GetCurrentHP(myHero) > 0.1337 then
  1882. local wPos = GenerateWPos(GetOrigin(unit))
  1883. CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
  1884. elseif spell.endPos then
  1885. local makeUpPos = GenerateSpellPos(GetOrigin(unit), spell.endPos, GetDistance(unit, myHero))
  1886. if GetDistanceSqr(makeUpPos) < (GetHitBox(myHero)*3)^2 or GetDistanceSqr(spell.endPos) < (GetHitBox(myHero)*3)^2 then
  1887. local wPos = GenerateWPos(GetOrigin(unit))
  1888. CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
  1889. end
  1890. end
  1891. end
  1892. end)
  1893. function GenerateWPos(unitPos)
  1894. local tV = {x = (unitPos.x-GetMyHeroPos().x), z = (unitPos.z-GetMyHeroPos().z)}
  1895. local len = math.sqrt(tV.x * tV.x + tV.z * tV.z)
  1896. return {x = GetMyHeroPos().x + 400 * tV.x / len, y = 0, z = GetMyHeroPos().z + 400 * tV.z / len}
  1897. end
  1898.  
  1899. function GenerateSpellPos(unitPos, spellPos, range)
  1900. local tV = {x = (spellPos.x-unitPos.x), z = (spellPos.z-unitPos.z)}
  1901. local len = math.sqrt(tV.x * tV.x + tV.z * tV.z)
  1902. return {x = unitPos.x + range * tV.x / len, y = 0, z = unitPos.z + range * tV.z / len}
  1903. end -- END of AUTOPARRY
  1904. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Fiora Loaded</font>"))
  1905. end
  1906.  
  1907. -- Riven
  1908. if GetObjectName(GetMyHero()) == "Riven" then
  1909. --Menu
  1910. Config = scriptConfig("Riven", "Riven")
  1911. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1912. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1913. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1914. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1915. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1916. --Start
  1917. OnLoop(function(myHero)
  1918. AutoIgnite()
  1919. if Config.Combo then
  1920. local unit = GetCurrentTarget()
  1921. if ValidTarget(unit, 1550) then
  1922. --Riven E
  1923. if GetCastName(myHero, _E) == "RivenFeint" then
  1924. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,325,50,true,true)
  1925. if Config.E then
  1926. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  1927. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  1928. end
  1929. end
  1930. end
  1931. -- Riven Q
  1932. if Config.Q then
  1933. if GetCastName(myHero, _Q) == "RivenTriCleave" then
  1934. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,260,50,false,true)
  1935. DelayAction(function() AttackUnit(unit) end, 1800)
  1936. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 260) then
  1937. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1938. end
  1939. end
  1940. end
  1941. -- Riven W
  1942. if GetCastName(myHero, _W) == "RivenMartyr" then
  1943. if Config.W then
  1944. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,125,50,false,true)
  1945. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 125) then
  1946. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  1947. end
  1948. end
  1949. end
  1950. -- Cast R
  1951. if GetCastName(myHero, _R) == "RivenFengShuiEngine" then
  1952. if Config.R then
  1953. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.3 and
  1954. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 900) then
  1955. CastTargetSpell(myHero, _R)
  1956. end
  1957. end
  1958. end
  1959. --Cast R windslash
  1960. if GetCastName(myHero, _R) == "rivenizunablade" then
  1961. if Config.R then
  1962. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,false,true)
  1963. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.4 and
  1964. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 900) then
  1965. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  1966. end
  1967. end
  1968. end
  1969. end
  1970. end
  1971. end)
  1972.  
  1973. OnProcessSpell(function(unit, spell)
  1974. local unit = GetCurrentTarget()
  1975. if unit and unit == myHero and spell and spell.name and spell.name:lower():find("attack") then
  1976. if Config.Combo and ValidTarget(unit) then
  1977. local targetPos = GetOrigin(unit)
  1978. DelayAction(function() CastSkillShot(_Q, targetPos.x, targetPos.y, targetPos.z) end, spell.windUpTime * 800)
  1979. end
  1980. end
  1981. end)
  1982. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Riven Loaded</font>"))
  1983. end
  1984.  
  1985. -- Gangplank
  1986. if GetObjectName(GetMyHero()) == "Gangplank" then
  1987. --Menu
  1988. Config = scriptConfig("Gangplank", "Gangplank")
  1989. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  1990. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  1991. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  1992. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  1993. Config.addParam("F", "LastHit", SCRIPT_PARAM_ONOFF, true)
  1994. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  1995. --Start
  1996. OnLoop(function(myHero)
  1997. local unit = GetCurrentTarget()
  1998. --Auto heal if under or 30% HP AND ENEMY IS IN 1000 RANGE.
  1999. if GetCastName(myHero, _W) == "GangplankW" then
  2000. if Config.R then
  2001. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.3 and
  2002. CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 1000) then
  2003. CastTargetSpell(myHero, _W)
  2004. end
  2005. end
  2006. end
  2007. -- Auto R (ks)
  2008. if GetCastName(myHero, _R) == "GangplankR" then
  2009. if Config.R then
  2010. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,10000,50,false,true)
  2011. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  2012. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 10000) then
  2013. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2014. end
  2015. end
  2016. end
  2017. AutoIgnite()
  2018. QFarm()
  2019. if Config.Combo then
  2020. if ValidTarget(unit, 1550) then
  2021. -- Gang Q
  2022.  
  2023. if Config.Q then
  2024. if GetCastName(myHero, _Q) == "GangplankQWrapper" then
  2025. if CanUseSpell(myHero, _Q) == READY then
  2026. CastTargetSpell(unit ,_Q)
  2027. end
  2028. end
  2029. end
  2030. -- Gangplank E
  2031. if GetCastName(myHero, _E) == "GangplankE" then
  2032. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1000,50,false,true)
  2033. if Config.E then
  2034. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  2035. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2036. end
  2037. end
  2038. end
  2039. -- Gangplank R
  2040. if GetCastName(myHero, _R) == "GangplankR" then
  2041. if Config.R then
  2042. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,10000,50,false,true)
  2043. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.2 and
  2044. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 10000) then
  2045. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2046. end
  2047. end
  2048. end
  2049. end
  2050. end
  2051. end)
  2052. function QFarm()
  2053. if IWalkConfig.LastHit then
  2054. if Config.F then
  2055. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  2056. if IsInDistance(Q, 750) then
  2057. local z = (GetCastLevel(myHero,_Q)*25)+(GetBonusDmg(myHero)*1.7)
  2058. local hp = GetCurrentHP(Q)
  2059. local Dmg = CalcDamage(myHero, Q, z)
  2060. if Dmg > hp then
  2061. if CanUseSpell(myHero, _Q) == READY then
  2062. CastTargetSpell(Q,_Q)
  2063. end
  2064. end
  2065. end
  2066. end
  2067. end
  2068. end
  2069. end
  2070. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Gangplank Loaded</font>"))
  2071. end
  2072.  
  2073. -- Irelia
  2074. if GetObjectName(GetMyHero()) == "Irelia" then
  2075. --Menu
  2076. Config = scriptConfig("Irelia", "Irelia")
  2077. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2078. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2079. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2080. Config.addParam("Es", "Use E Stun", SCRIPT_PARAM_ONOFF, false)
  2081. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2082. Config.addParam("F", "LastHit", SCRIPT_PARAM_ONOFF, true)
  2083. Config.addParam("G", "KS Q", SCRIPT_PARAM_ONOFF, true)
  2084. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2085. --Start
  2086. OnLoop(function(myHero)
  2087. Killsteal4()
  2088. AutoIgnite()
  2089. QFamr()
  2090. if Config.Combo then
  2091. local unit = GetCurrentTarget()
  2092. if ValidTarget(unit, 1550) then
  2093. -- Irelia Q
  2094. if Config.Q then
  2095. if GetCastName(myHero, _Q) == "IreliaGatotsu" then
  2096. if CanUseSpell(myHero, _Q) == READY then
  2097. CastTargetSpell(unit,_Q)
  2098. end
  2099. end
  2100. end
  2101. -- Irelia E
  2102. if Config.E then
  2103. if GetCastName(myHero, _E) == "IreliaEquilibriumStrike" then
  2104. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 325) then
  2105. CastTargetSpell(unit,_E)
  2106. end
  2107. end
  2108. end
  2109. -- Irelia E
  2110. if Config.Es then
  2111. if GetCastName(myHero, _E) == "IreliaEquilibriumStrike" then
  2112. if (GetCurrentHP(myHero) < GetCurrentHP(unit)) and CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 325) then
  2113. CastTargetSpell(unit,_E)
  2114. end
  2115. end
  2116. end
  2117. if Config.W then
  2118. if GetCastName(myHero, _W) == "IreliaHitenStyle" then
  2119. if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 325) then
  2120. CastTargetSpell(unit,_W)
  2121. end
  2122. end
  2123. end
  2124. -- Irelia R
  2125. if Config.R then
  2126. if GetCastName(myHero, _R) == "IreliaTranscendentBlades" then
  2127. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1000,55,false,true)
  2128. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.3 and IsObjectAlive(unit) and CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1000) then
  2129. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2130. end
  2131. end
  2132. end
  2133. end
  2134. end
  2135. end)
  2136. function QFamr()
  2137. if IWalkConfig.LastHit then
  2138. if Config.F then
  2139. for _,Q in pairs(GetAllMinions(MINION_ENEMY)) do
  2140. if IsInDistance(Q, 750) then
  2141. local z = (GetCastLevel(myHero,_Q)*30)+(GetBonusDmg(myHero)*1.9)
  2142. local hp = GetCurrentHP(Q)
  2143. local Dmg = CalcDamage(myHero, Q, z)
  2144. if Dmg > hp then
  2145. if CanUseSpell(myHero, _Q) == READY then
  2146. CastTargetSpell(Q,_Q)
  2147. end
  2148. end
  2149. end
  2150. end
  2151. end
  2152. end
  2153. end
  2154. function Killsteal4()
  2155. local unit = GetCurrentTarget()
  2156. if ValidTarget(unit, 1550) then
  2157. for i,enemy in pairs(GetEnemyHeroes()) do
  2158. local z = ((GetCastLevel(myHero,_Q)*30)+(GetBonusDmg(myHero)*1.9))
  2159. if CanUseSpell(myHero, _Q) == READY and ValidTarget(enemy,GetCastRange(myHero,_Q)) and Config.I
  2160. and (GetCastLevel(myHero,_Q)*30)+(GetBonusDmg(myHero)*1.9) and CalcDamage(myHero, enemy, z) > GetCurrentHP(unit) then
  2161. CastTargetSpell(enemy, _Q)
  2162. end
  2163. end
  2164. end
  2165. end
  2166. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Irelia Loaded</font>"))
  2167. end
  2168.  
  2169. --Evelynn
  2170. if GetObjectName(GetMyHero()) == "Evelynn" then
  2171. --Menu
  2172. Config = scriptConfig("Evelynn", "Evelynn")
  2173. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2174. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2175. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2176. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2177. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2178. --Start
  2179. OnLoop(function(myHero)
  2180. AutoIgnite()
  2181. if Config.Combo then
  2182. local unit = GetCurrentTarget()
  2183. if ValidTarget(unit, 1550) then
  2184.  
  2185. -- Evelynn W
  2186. if Config.W then
  2187. if GetCastName(myHero, _W) == "EvelynnW" then
  2188. if CanUseSpell(myHero, _W) == READY then
  2189. CastTargetSpell(myHero,_W)
  2190. end
  2191. end
  2192. end
  2193. -- Evelynn Q
  2194. if Config.Q then
  2195. if GetCastName(myHero, _Q) == "EvelynnQ" then
  2196. if CanUseSpell(myHero, _Q) == READY then
  2197. CastTargetSpell(myHero,_Q)
  2198. end
  2199. end
  2200. end
  2201. -- Evelynn E
  2202. if Config.E then
  2203. if GetCastName(myHero, _E) == "EvelynnE" then
  2204. if CanUseSpell(myHero, _E) == READY then
  2205. CastTargetSpell(unit,_E)
  2206. end
  2207. end
  2208. end
  2209. -- Evelynn R
  2210. if Config.R then
  2211. if GetCastName(myHero, _R) == "EvelynnR" then
  2212. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,650,55,false,true)
  2213. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  2214. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2215. end
  2216. end
  2217. end
  2218. end
  2219. end
  2220. end)
  2221. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Evelynn Loaded</font>"))
  2222. end
  2223.  
  2224. --Akali
  2225. if GetObjectName(GetMyHero()) == "Akali" then
  2226. --Menu
  2227. Config = scriptConfig("Akali", "Akali")
  2228. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2229. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2230. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2231. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2232. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2233. --Start
  2234. OnLoop(function(myHero)
  2235. AutoIgnite()
  2236. if Config.Combo then
  2237. local unit = GetCurrentTarget()
  2238. if ValidTarget(unit, 1550) then
  2239. if Config.Q then
  2240. if GetCastName(myHero, _Q) == "AkaliMota" then
  2241. if CanUseSpell(myHero, _Q) == READY then
  2242. CastTargetSpell(unit,_Q)
  2243. end
  2244. end
  2245. end
  2246. -- Akali E
  2247. if Config.E then
  2248. if GetCastName(myHero, _E) == "AkaliShadowSwipe" then
  2249. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,325,55,false,true)
  2250. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 325) then
  2251. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2252. end
  2253. end
  2254. -- Akali W
  2255. if Config.W then
  2256. if GetCastName(myHero, _W) == "AkaliSmokeBomb" then
  2257. if CanUseSpell(myHero, _W) == READY then
  2258. CastTargetSpell(unit,_W)
  2259. end
  2260. end
  2261. end
  2262. -- Akali R
  2263. if Config.R then
  2264. if GetCastName(myHero, _R) == "AkaliShadowDance" then
  2265. if CanUseSpell(myHero, _R) == READY then
  2266. CastTargetSpell(unit,_R)
  2267. end
  2268. end
  2269. end
  2270. end
  2271. end
  2272. end
  2273. end)
  2274. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Akali Loaded</font>"))
  2275. end
  2276.  
  2277. --Menu
  2278. if GetObjectName(GetMyHero()) == "Azir" then
  2279. --Azir
  2280. Config = scriptConfig("Azir", "Azir")
  2281. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2282. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2283. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2284. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2285. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2286. --Start
  2287. OnLoop(function(myHero)
  2288. AutoIgnite()
  2289. if Config.Combo then
  2290. local unit = GetCurrentTarget()
  2291. if ValidTarget(unit, 1550) then
  2292.  
  2293. -- Azir W
  2294. if Config.W then
  2295. if GetCastName(myHero, _W) == "AzirW" then
  2296. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,850,55,false,true)
  2297. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  2298. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2299. end
  2300. end
  2301. end
  2302. -- Azir Q
  2303. if Config.Q then
  2304. if GetCastName(myHero, _Q) == "AzirQ" then
  2305. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  2306. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  2307. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2308. end
  2309. end
  2310. end
  2311. -- Azir E
  2312. if Config.E then
  2313. if GetCastName(myHero, _E) == "AzirE" then
  2314. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,850,50,false,true)
  2315. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  2316. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2317. end
  2318. end
  2319. end
  2320. -- Azir R
  2321. if Config.R then
  2322. if GetCastName(myHero, _R) == "AzirR" then
  2323. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,250,55,false,true)
  2324. local ult = (GetCastLevel(myHero,_R)*75)+(GetBonusAP(myHero)*.6)
  2325. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) or (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.27 and CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 250) then
  2326. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2327. end
  2328. end
  2329. end
  2330. end
  2331. end
  2332. end)
  2333. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Azir Loaded</font>"))
  2334. end
  2335.  
  2336. --Viktor
  2337. if GetObjectName(GetMyHero()) == "Viktor" then
  2338. --Menu
  2339. Config = scriptConfig("Viktor", "Viktor")
  2340. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2341. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2342. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2343. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2344. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2345. --Start
  2346. OnLoop(function(myHero)
  2347. AutoIgnite()
  2348. if Config.Combo then
  2349. local unit = GetCurrentTarget()
  2350. if ValidTarget(unit, 1550) then
  2351.  
  2352. -- Viktor W
  2353. if Config.W then
  2354. if GetCastName(myHero, _W) == "ViktorGravitonField" then
  2355. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,700,55,false,true)
  2356. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  2357. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2358. end
  2359. end
  2360. end
  2361. -- Viktor Q
  2362. if Config.Q then
  2363. if GetCastName(myHero, _Q) == "ViktorPowerTransfer" then
  2364. if CanUseSpell(myHero, _Q) == READY then
  2365. CastTargetSpell(unit,_Q)
  2366. end
  2367. end
  2368. end
  2369. -- Viktor E
  2370. local myorigin = GetOrigin(unit)
  2371. local mymouse = GetCastRange(myHero,_E)
  2372. if Config.E then
  2373. if GetCastName(myHero, _E) == "ViktorDeathRay" then
  2374. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  2375. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 1500) then
  2376. CastSkillShot3(_E,myorigin,myorigin)
  2377. end
  2378. end
  2379. end
  2380. -- Viktor R
  2381. if Config.R then
  2382. if GetCastName(myHero, _R) == "ViktorChaosStorm" then
  2383. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,700,55,false,true)
  2384. local ult = (GetCastLevel(myHero,_R)*200+25)+(GetBonusDmg(myHero)*1.6)
  2385. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  2386. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  2387. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2388. end
  2389. end
  2390. end
  2391. end
  2392. end
  2393. end
  2394. end)
  2395. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Viktor Loaded</font>"))
  2396. end
  2397. -- VelKoz
  2398. class "Velkoz"
  2399. function Velkoz:__init()
  2400. OnLoop(function(myHero) self:Loop(myHero) end)
  2401. --Menu
  2402. self.Config = scriptConfig("VelKoz", "VelKoz")
  2403. self.Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2404. self.Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2405. self.Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2406. self.Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2407. self.Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2408. --Start
  2409. function Velkoz:Loop(myHero)
  2410. self:Checks()
  2411. if _G.IWalkConfig.Combo then
  2412. self:Combo()
  2413. end
  2414. end
  2415. function Velkoz:Checks()
  2416. self.QREADY = CanUseSpell(myHero,_Q) == READY
  2417. self.WREADY = CanUseSpell(myHero,_W) == READY
  2418. self.EREADY = CanUseSpell(myHero,_E) == READY
  2419. self.RREADY = CanUseSpell(myHero,_R) == READY
  2420. self.target = GetTarget(1500, DAMAGE_MAGIC)
  2421. self.targetPos = GetOrigin(self.target)
  2422. self.mymouse = GetMousePos()
  2423. end
  2424. -- Velkoz E
  2425. function Velkoz:CastE(unit)
  2426. if self.Config.E then
  2427. if GetCastName(myHero, _E) == "VelkozE" then
  2428. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,850,50,false,true)
  2429. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  2430. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2431. end
  2432. end
  2433. end
  2434. end
  2435.  
  2436. -- Velkoz W
  2437. function Velkoz:CastW(unit)
  2438. if self.Config.W then
  2439. if GetCastName(myHero, _W) == "VelkozW" then
  2440. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  2441. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 and IsInDistance(unit, 1500) then
  2442. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2443. end
  2444. end
  2445. end
  2446. end
  2447. -- Velkoz Q
  2448. function Velkoz:CastQ(unit)
  2449. if self.Config.Q then
  2450. if GetCastName(myHero, _Q) == "VelkozQ" then
  2451. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1050,55,true,true)
  2452. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  2453. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2454. end
  2455. end
  2456. end
  2457. end
  2458. -- Velkoz R
  2459. function Velkoz:CastR(unit)
  2460. if self.Config.R then
  2461. if GetCastName(myHero, _R) == "VelkozR" then
  2462. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,false,true)
  2463. local ult = (GetCastLevel(myHero,_R)*200)+(GetBonusAP(myHero)*.6)
  2464. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 1550) then
  2465. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  2466. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2467. end
  2468. end
  2469. end
  2470. end
  2471. function Velkoz:Combo()
  2472. if ValidTarget(self.target, 1000) then
  2473. if self.EREADY then
  2474. self:CastE(self.target)
  2475. elseif self.WREADY then
  2476. self:CastW(self.target)
  2477. elseif self.QREADY then
  2478. self:CastQ(self.target)
  2479. elseif self.RREADY then
  2480. self:CastR(self.target)
  2481. end
  2482. end
  2483. end
  2484. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Velkoz Loaded</font>"))
  2485. end
  2486. -- Ekko
  2487. class "Ekko"
  2488. function Ekko:__init()
  2489. OnLoop(function(myHero) self:Loop(myHero) end)
  2490. --Menu
  2491. self.Config = scriptConfig("Ekko", "Ekko")
  2492. self.Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2493. self.Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2494. self.Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2495. self.Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2496. self.Config.addParam("Rs", "Use R Save", SCRIPT_PARAM_ONOFF, true)
  2497. self.Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2498. --Start
  2499. function Ekko:Loop(myHero)
  2500. self:Checks()
  2501. if _G.IWalkConfig.Combo then
  2502. self:Combo()
  2503. end
  2504. end
  2505. function Ekko:Checks()
  2506. self.QREADY = CanUseSpell(myHero,_Q) == READY
  2507. self.WREADY = CanUseSpell(myHero,_W) == READY
  2508. self.EREADY = CanUseSpell(myHero,_E) == READY
  2509. self.RREADY = CanUseSpell(myHero,_R) == READY
  2510. self.target = GetTarget(1500, DAMAGE_MAGIC)
  2511. self.targetPos = GetOrigin(self.target)
  2512. self.mymouse = GetMousePos()
  2513. end
  2514.  
  2515. -- Q cast
  2516. function Ekko:CastQ(unit)
  2517. if GetCastName(myHero, _Q) == "EkkoQ" then
  2518. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,false,true)
  2519. if self.Config.Q then
  2520. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  2521. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2522. end
  2523. end
  2524. end
  2525. end
  2526. -- W Cast
  2527. function Ekko:CastW(unit)
  2528. if GetCastName(myHero, _W) == "EkkoW" then
  2529. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1600,50,false,true)
  2530. if self.Config.W then
  2531. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  2532. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2533. end
  2534. end
  2535. end
  2536. end
  2537. function Ekko:CastE(unit)
  2538. -- E Cast Will cast E and if im correct then GoS will click champ and Ekko will blink Cast = 325 range Blink= 425
  2539. if GetCastName(myHero, _E) == "EkkoE" then
  2540. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,false,true)
  2541. if self.Config.E then
  2542. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 then
  2543. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2544. end
  2545. end
  2546. end
  2547. end
  2548. -- R cast
  2549. function Ekko:CastR(unit)
  2550. if GetCastName(myHero, _R) == "EkkoR" then
  2551. if self.Config.R then
  2552. local ult = (GetCastLevel(myHero,_R)*150+50)+(GetBonusAP(myHero)*1.30)
  2553. local EPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,325,50,false,true)
  2554. if CanUseSpell(myHero, _R) and IsInDistance(unit, 325) then
  2555. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  2556. CastSkillShot(_R,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2557. end
  2558. end
  2559. end
  2560. end
  2561. end
  2562. function Ekko:CastRs(unit)
  2563. if GetCastName(myHero, _R) == "EkkoR" then
  2564. if self.Config.Rs then
  2565. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  2566. CanUseSpell(myHero, _R) == READY and IsObjectAlive(myHero) and IsInDistance(unit, 1000) then
  2567. CastTargetSpell(myHero,_R)
  2568. end
  2569. end
  2570. end
  2571. end
  2572. function Ekko:Combo()
  2573. if ValidTarget(self.target, 1000) then
  2574. if self.QREADY then
  2575. self:CastQ(self.target)
  2576. elseif self.WREADY then
  2577. self:CastW(self.target)
  2578. elseif self.EREADY then
  2579. self:CastE(self.target)
  2580. elseif self.RREADY then
  2581. self:CastR(self.target)
  2582. elseif self.RREADY then
  2583. self:CastRs(self.target)
  2584. end
  2585. end
  2586. end
  2587. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Ekko Loaded</font>"))
  2588. end
  2589.  
  2590.  
  2591. --Nidalee
  2592. if GetObjectName(GetMyHero()) == "Nidalee" then
  2593. --Menu
  2594. Config = scriptConfig("Nidalee", "Nidalee")
  2595. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2596. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2597. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2598. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2599. Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
  2600. Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
  2601. Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
  2602. Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2603. --Start
  2604. OnLoop(function(myHero)
  2605. -- Nidalee human heal --THANKS SNOWBALL
  2606. if GetCastName(myHero, _E) == "PrimalSurge" then
  2607. if Config.E then
  2608. if (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.2 and
  2609. CanUseSpell(myHero, _E) == READY and IsObjectAlive(myHero) then
  2610. CastTargetSpell(myHero,_E)
  2611. end
  2612. end
  2613. end
  2614. AutoIgnite()
  2615. if Config.Combo then
  2616. local unit = GetCurrentTarget()
  2617. if ValidTarget(unit, 1500) then
  2618.  
  2619. -- Nidalee Human Trap
  2620. if GetCastName(myHero, _W) == "Bushwhack" then
  2621. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,true,true)
  2622. if Config.W then
  2623. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  2624. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2625. end
  2626. end
  2627. end
  2628. -- Nidalee human spear
  2629. if GetCastName(myHero, _Q) == "JavelinToss"then
  2630. -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  2631. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,true,true)
  2632. if Config.Q then
  2633. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  2634. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2635. end
  2636. end
  2637. end
  2638. -- Tansform to cougar
  2639. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  2640. if Config.R then
  2641. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.6 and
  2642. CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) == READY and CanUseSpell(myHero, _Q) ~= READY and IsInDistance(unit, 750) then
  2643. CastTargetSpell(myHero, _R)
  2644. end
  2645. end
  2646. end
  2647. -- Cougar attack Q
  2648. if GetCastName(myHero, _Q) == "Takedown" then
  2649. if Config.Q2 then
  2650. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 475) then
  2651. CastTargetSpell(unit, _Q)
  2652. end
  2653. end
  2654. end
  2655. -- Cougar pounce W
  2656. if GetCastName(myHero, _W) == "Pounce" then
  2657. if Config.W2 then
  2658. if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 375) then
  2659. CastTargetSpell(unit, _W)
  2660. end
  2661. end
  2662. end
  2663. -- E cast in cougar form
  2664. if GetCastName(myHero, _E) == "Swipe" then
  2665. if Config.E2 then
  2666. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 300) then
  2667. CastTargetSpell(unit, _E)
  2668. end
  2669. end
  2670. end
  2671. -- Transform back
  2672. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  2673. if Config.R then
  2674. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.6 and
  2675. CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 750) and GotBuff(myHero, "nidaleepassivehunting") == 1 then
  2676. CastSpell(_R)
  2677. end
  2678. end
  2679. end
  2680. end
  2681.  
  2682. end
  2683. end)
  2684. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Nidalee Loaded</font>"))
  2685. end
  2686. -- Graves
  2687. class "Graves"
  2688. function Graves:__init()
  2689. OnLoop(function(myHero) self:Loop(myHero) end)
  2690. --Menu
  2691. self.Config = scriptConfig("Graves", "Graves")
  2692. self.Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  2693. self.Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  2694. self.Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  2695. self.Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  2696. self.Config.addParam("Combo", "Combo", SCRIPT_PARAM_KEYDOWN, string.byte(" "))
  2697. end
  2698. --Start
  2699. function Graves:Loop(myHero)
  2700. self:Checks()
  2701. if _G.IWalkConfig.Combo then
  2702. self:Combo()
  2703. end
  2704. end
  2705. function Graves:Checks()
  2706. self.QREADY = CanUseSpell(myHero,_Q) == READY
  2707. self.WREADY = CanUseSpell(myHero,_W) == READY
  2708. self.EREADY = CanUseSpell(myHero,_E) == READY
  2709. self.RREADY = CanUseSpell(myHero,_R) == READY
  2710. self.target = GetTarget(1200, DAMAGE_PHYSICAL)
  2711. self.targetPos = GetOrigin(self.target)
  2712. self.mymouse = GetMousePos()
  2713. end
  2714. -- Q cast
  2715. function Graves:CastQ(unit)
  2716. if GetCastName(myHero, _Q) == "GravesClusterShot" then
  2717. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,false,true)
  2718. if self.Config.Q then
  2719. if self.QREADY and QPred.HitChance == 1 then
  2720. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2721. end
  2722. end
  2723. end
  2724. end
  2725. -- W Cast
  2726. function Graves:CastW(unit)
  2727. if GetCastName(myHero, _W) == "GravesSmokeGrenade" then
  2728. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1600,50,false,true)
  2729. if self.Config.W then
  2730. if self.WREADY and WPred.HitChance == 1 then
  2731. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  2732. end
  2733. end
  2734. end
  2735. end
  2736. -- E Cast
  2737. function Graves:CastE(mymouse)
  2738. if GetCastName(myHero, _E) == "GravesMove" then
  2739. if self.Config.E and self.EREADY then
  2740. CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
  2741. end
  2742. end
  2743. end
  2744. -- R Cast
  2745. function Graves:CastR(unit)
  2746. if GetCastName(myHero, _R) == "GravesChargedShot" then
  2747. if self.Config.R then
  2748. local ult = (GetCastLevel(myHero,_R)*150+150)+(GetBonusDmg(myHero)*1.50)
  2749. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1000,50,true,true)
  2750. if CanUseSpell(myHero_R) == READY and RPred.HitChance == 1 and IsInDistance(target, GetCastRange(myHero,_R)) and self.RREADY then
  2751. if CalcDamage(myHero, unit, ult) > GetCurrentHP(unit) then
  2752. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2753. end
  2754. end
  2755. end
  2756. end
  2757. end
  2758. function Graves:Combo()
  2759. if ValidTarget(self.target, 1000) then
  2760. if self.QREADY then
  2761. self:CastQ(self.target)
  2762. elseif self.WREADY then
  2763. self:CastW(self.target)
  2764. elseif self.EREADY then
  2765. self:CastE(self.mymouse)
  2766. elseif self.RREADY then
  2767. self:CastR(self.target)
  2768. end
  2769. end
  2770. PrintChat(string.format("<font color='#1244EA'>[CloudAIO]</font> <font color='#FFFFFF'>Graves Loaded</font>"))
  2771. end
  2772.  
  2773. if supportedHero[GetObjectName(myHero)] == true then
  2774. if _G[GetObjectName(myHero)] then
  2775. _G[GetObjectName(myHero)]()
  2776. end
  2777. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement