Advertisement
Cloudhax23

Untitled

Aug 21st, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.81 KB | None | 0 0
  1. require('Inspired')
  2.  
  3. local upv = "If you like UpVote!"
  4. local sig = "Made by TheWelder"
  5. local ver = "1.0.0.5 12:23AM 3/08/2015"
  6. local info = "KarmaPlugin Loaded"
  7. --textTable = {info,upv,sig,ver}
  8. --PrintChat(textTable[1])
  9. --PrintChat(textTable[2])
  10. --PrintChat(textTable[3])
  11. --PrintChat(textTable[4])
  12.  
  13. OnLoop(function(Object,myHero)
  14. local myHero = GetMyHero()
  15. local myHeroPos = GetOrigin(myHero)
  16. local QRange = GetCastRange(myHero,_Q)
  17. local WRange = GetCastRange(myHero,_W)
  18. local ERange = GetCastRange(myHero,_E)
  19. local RRange = GetCastRange(myHero,_R)
  20. local target = GetCurrentTarget()
  21. local myAttackRange = GetRange(myHero)
  22. local tarAttackRange = GetRange(target)
  23. local Obj_Type = GetObjectType(Object)
  24. if "Karma" == GetObjectName(myHero) then
  25. if ValidTarget(target,QRange) and IsInDistance(target,QRange) then
  26. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  27. if CanUseSpell(myHero,_Q) == READY then
  28. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  29. AttackUnit(target)
  30. end
  31. end
  32. if ValidTarget(target,WRange) then
  33. if CanUseSpell(myHero,_W) == READY then
  34. CastSpell(_W)
  35. AttackUnit(target)
  36. end
  37. end
  38. if ValidTarget(target,myAttackRange) then
  39. if CanUseSpell(myHero,_E) == READY then
  40. CastTargetSpell(target,_E)
  41. AttackUnit(target)
  42. end
  43. end
  44. if ValidTarget(target,QRange) then
  45. if CanUseSpell(myHero,_R) == READY then
  46. CastSpell(_R)
  47. AttackUnit(target)
  48. end
  49. end
  50.  
  51.  
  52.  
  53. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  54. BuyItem(2003)
  55. end
  56. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  57. -- Boots of Speed
  58. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  59. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  60. BuyItem(1001)
  61. end
  62. end
  63. -- Sorcerer's Shoes
  64. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  65. BuyItem(3020)
  66. end
  67. ------------------------------------------------------------------------- Liandry's Torment Sequence
  68. --Ruby Crystal
  69. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  70. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  71. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  72. BuyItem(1028)
  73. end
  74. end
  75. end
  76. --Amplifying Tome
  77. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  78. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  79. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  80. BuyItem(1052)
  81. end
  82. end
  83. end
  84. --Blasting Wand
  85. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  86. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  87. BuyItem(1026)
  88. end
  89. end
  90. --Liandry's Torment
  91. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  92. BuyItem(3151)
  93. end
  94. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  95. --Amplifying Tome
  96. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  97. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  98. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  99. BuyItem(1052)
  100. end
  101. end
  102. end
  103. --Fiendish Codex
  104. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  105. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  106. BuyItem(3108)
  107. end
  108. end
  109. -- Faerie Charm
  110. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  111. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  112. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  113. BuyItem(1004)
  114. end
  115. end
  116. end
  117. -- Null-Magic Mantle
  118. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  119. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  120. BuyItem(1033)
  121. end
  122. end
  123. --Amplifying Tome
  124. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  125. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  126. BuyItem(1052)
  127. end
  128. end
  129. -- Athene's Unholy Grail
  130. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  131. BuyItem(2700)
  132. end
  133. ------------------------------------------------------------------------- Morellonomicon Sequence
  134.  
  135. --Amplifying Tome
  136. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  137. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  138. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  139. BuyItem(1052)
  140. end
  141. end
  142. end
  143. --Fiendish Codex
  144. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  145. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  146. BuyItem(3108)
  147. end
  148. end
  149. -- Faerie Charm
  150. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  151. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  152. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  153. BuyItem(1004)
  154. end
  155. end
  156. end
  157. -- Forbidden Idol
  158. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  159. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  160. BuyItem(3114)
  161. end
  162. end
  163. --Amplifying Tome
  164. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  165. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  166. BuyItem(1052)
  167. end
  168. end
  169. -- Morellonomicon
  170. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  171. BuyItem(3165)
  172. end
  173. ------------------------------------------------------------------------- Twin Shadows Sequence
  174.  
  175. --Amplifying Tome
  176. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  177. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  178. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  179. BuyItem(1052)
  180. end
  181. end
  182. end
  183. --Fiendish Codex
  184. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  185. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  186. BuyItem(3108)
  187. end
  188. end
  189. --Amplifying Tome
  190. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  191. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  192. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  193. BuyItem(1052)
  194. end
  195. end
  196. end
  197. -- Aether Wisp
  198. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  199. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  200. BuyItem(3113)
  201. end
  202. end
  203. -- Twin Shadows
  204. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  205. BuyItem(3023)
  206. end
  207. end
  208. if "Shen" == GetObjectName(myHero) then
  209. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  210. if CanUseSpell(myHero,_Q) == READY then
  211. CastTargetSpell(target,_Q)
  212. AttackUnit(target)
  213. end
  214. end
  215. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  216. if CanUseSpell(myHero,_W) == READY then
  217. CastSpell(_W)
  218. AttackUnit(target)
  219. end
  220. end
  221. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  222. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  223. if CanUseSpell(myHero,_E) == READY then
  224. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  225. AttackUnit(target)
  226. end
  227. end
  228. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  229. if CanUseSpell(myHero,_R) == READY then
  230. CastSpell(_R)
  231. AttackUnit(target)
  232. end
  233. end
  234. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  235. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  236. BuyItem(1001)
  237. end
  238. end
  239. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  240. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  241. BuyItem(3047)
  242. end
  243. end
  244. if GetItemSlot(myHero,3143) == 0 or GetItemSlot(myHero,3143) < 1 then
  245. BuyItem(3143)
  246. end
  247. if GetItemSlot(myHero,3068) == 0 or GetItemSlot(myHero,3068) < 1 then
  248. BuyItem(3068)
  249. end
  250. if GetItemSlot(myHero,3065) == 0 or GetItemSlot(myHero,3065) < 1 then
  251. BuyItem(3065)
  252. end
  253. if GetItemSlot(myHero,3091) == 0 or GetItemSlot(myHero,3091) < 1 then
  254. BuyItem(3091)
  255. end
  256.  
  257. end
  258. if "Twitch" == GetObjectName(myHero) then
  259. local Rspeed = 7*GetAttackSpeed(myHero)
  260. local Rdmg = ((GetBaseDamage(myHero)+(GetCastLevel(myHero,_R)*8)+12))*Rspeed
  261. --DrawText(string.format("RA-TA %s ", GetObjectName(myHero)),24,750,50,0xff00ff00);
  262. DrawDmgOverHpBar(target,GetCurrentHP(target),120,60,0xffffffff);
  263. --if Config.Combo and IsObjectAlive(target) then
  264. if ValidTarget(target, 3000) then
  265. --if Config.Q then
  266. if CanUseSpell(myHero, _Q) == READY then
  267. CastTargetSpell(myHero,_Q)
  268. end
  269. --end
  270. end
  271. if ValidTarget(target, 950) then
  272. local WPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,950,55,true,true)
  273. --if Config.W then
  274. if CanUseSpell(myHero,_W) == READY and WPred.HitChance == 1 then
  275. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  276. end
  277. --end
  278. end
  279. if ValidTarget(target,1200) then
  280. --if Config.E then
  281. local Edmg = (GetCastLevel(myHero,_E)*10)+5+(GotBuff(GetCurrentTarget(),"twitchdeadlyvenom")*(5+(GetBaseDamage(myHero)*(GotBuff(GetCurrentTarget(),"twitchdeadlyvenom")*0.20))))
  282. if CalcDamage(myHero, target, Edmg) > GetCurrentHP(target) + GetHPRegen(target) then
  283. if CanUseSpell(myHero,_E) == READY then
  284. CastTargetSpell(myHero,_E)
  285. end
  286. end
  287. --end
  288.  
  289. --if Config.sE then
  290. if GotBuff(GetCurrentTarget(),"twitchdeadlyvenom") == 6 then
  291. if CanUseSpell(myHero,_E) == READY then
  292. CastTargetSpell(myHero,_E)
  293. end
  294. end
  295. --end
  296. end
  297. if ValidTarget(target,850) then
  298. if CalcDamage(myHero, target, Rdmg) > GetCurrentHP(target) + GetHPRegen(target) then
  299. if CanUseSpell(myHero,_R) == READY then
  300. --if Config.R then
  301. CastTargetSpell(myHero,_R)
  302. --end
  303. end
  304. end
  305. end
  306. --end
  307. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  308. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  309. BuyItem(1001)
  310. end
  311. end
  312. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  313. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  314. BuyItem(3006)
  315. end
  316. end
  317. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  318. BuyItem(2003)
  319. end
  320. if GetItemSlot(myHero,3031) == 0 or GetItemSlot(myHero,3031) < 1 then
  321. BuyItem(3031)
  322. end
  323. if GetItemSlot(myHero,3153) == 0 or GetItemSlot(myHero,3153) < 1 then
  324. BuyItem(3153)
  325. end
  326. if GetItemSlot(myHero,3035) == 0 or GetItemSlot(myHero,3035) < 1 then
  327. BuyItem(3035)
  328. end
  329. if GetItemSlot(myHero,3046) == 0 or GetItemSlot(myHero,3046) < 1 then
  330. BuyItem(3046)
  331. end
  332. end
  333. if "Blitzcrank" == GetObjectName(myHero) then
  334. local target = GetTarget(900, DAMAGE_MAGIC)
  335. if ValidTarget(target, 900) then
  336. local QPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1800,250,900,70,true,true)
  337. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_Q)) and Config.Q then
  338. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  339. end
  340.  
  341. if CanUseSpell(myHero, _W) == READY and not IsInDistance(target, 150) and IsInDistance(target, 700) and Config.W then
  342. CastSpell(_W)
  343. end
  344.  
  345. if CanUseSpell(myHero, _E) == READY and ValidTarget(target, 250) and IsInDistance(target, 250) and Config.E then
  346. CastSpell(_E)
  347. end
  348.  
  349. if CanUseSpell(myHero, _R) == READY and ValidTarget(target, GetCastRange(myHero,_R)) and IsInDistance(target, 550) and Config.R then
  350. CastSpell(_R)
  351. end
  352.  
  353. end
  354.  
  355. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  356. BuyItem(2003)
  357. end
  358. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  359. -- Boots of Speed
  360. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  361. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  362. BuyItem(1001)
  363. end
  364. end
  365. -- Sorcerer's Shoes
  366. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  367. BuyItem(3020)
  368. end
  369. ------------------------------------------------------------------------- Liandry's Torment Sequence
  370. --Ruby Crystal
  371. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  372. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  373. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  374. BuyItem(1028)
  375. end
  376. end
  377. end
  378. --Amplifying Tome
  379. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  380. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  381. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  382. BuyItem(1052)
  383. end
  384. end
  385. end
  386. --Blasting Wand
  387. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  388. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  389. BuyItem(1026)
  390. end
  391. end
  392. --Liandry's Torment
  393. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  394. BuyItem(3151)
  395. end
  396. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  397. --Amplifying Tome
  398. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  399. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  400. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  401. BuyItem(1052)
  402. end
  403. end
  404. end
  405. --Fiendish Codex
  406. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  407. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  408. BuyItem(3108)
  409. end
  410. end
  411. -- Faerie Charm
  412. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  413. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  414. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  415. BuyItem(1004)
  416. end
  417. end
  418. end
  419. -- Null-Magic Mantle
  420. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  421. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  422. BuyItem(1033)
  423. end
  424. end
  425. --Amplifying Tome
  426. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  427. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  428. BuyItem(1052)
  429. end
  430. end
  431. -- Athene's Unholy Grail
  432. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  433. BuyItem(2700)
  434. end
  435. ------------------------------------------------------------------------- Morellonomicon Sequence
  436.  
  437. --Amplifying Tome
  438. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  439. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  440. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  441. BuyItem(1052)
  442. end
  443. end
  444. end
  445. --Fiendish Codex
  446. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  447. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  448. BuyItem(3108)
  449. end
  450. end
  451. -- Faerie Charm
  452. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  453. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  454. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  455. BuyItem(1004)
  456. end
  457. end
  458. end
  459. -- Forbidden Idol
  460. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  461. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  462. BuyItem(3114)
  463. end
  464. end
  465. --Amplifying Tome
  466. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  467. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  468. BuyItem(1052)
  469. end
  470. end
  471. -- Morellonomicon
  472. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  473. BuyItem(3165)
  474. end
  475. ------------------------------------------------------------------------- Twin Shadows Sequence
  476.  
  477. --Amplifying Tome
  478. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  479. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  480. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  481. BuyItem(1052)
  482. end
  483. end
  484. end
  485. --Fiendish Codex
  486. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  487. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  488. BuyItem(3108)
  489. end
  490. end
  491. --Amplifying Tome
  492. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  493. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  494. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  495. BuyItem(1052)
  496. end
  497. end
  498. end
  499. -- Aether Wisp
  500. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  501. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  502. BuyItem(3113)
  503. end
  504. end
  505. -- Twin Shadows
  506. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  507. BuyItem(3023)
  508. end
  509.  
  510.  
  511.  
  512. if GetLevel(myHero) == 1 then
  513. LevelSpell(_Q)
  514. end
  515. if GetLevel(myHero) == 2 then
  516. LevelSpell(_W)
  517. end
  518. if GetLevel(myHero) == 3 then
  519. LevelSpell(_Q)
  520. end
  521.  
  522. if GetLevel(myHero) == 4 then
  523. LevelSpell(_E)
  524. end
  525. if GetLevel(myHero) == 5 then
  526. LevelSpell(_W)
  527. end
  528. if GetLevel(myHero) == 6 then
  529. LevelSpell(_R)
  530. end
  531. if GetLevel(myHero) == 7 then
  532. LevelSpell(_Q)
  533. end
  534. if GetLevel(myHero) == 8 then
  535. LevelSpell(_W)
  536. end
  537. if GetLevel(myHero) == 9 then
  538. LevelSpell(_Q)
  539. end
  540. if GetLevel(myHero) == 10 then
  541. LevelSpell(_E)
  542. end
  543. if GetLevel(myHero) == 11 then
  544. LevelSpell(_R)
  545. end
  546. if GetLevel(myHero) == 12 then
  547. LevelSpell(_Q)
  548. end
  549. if GetLevel(myHero) == 13 then
  550. LevelSpell(_W)
  551. end
  552. if GetLevel(myHero) == 14 then
  553. LevelSpell(_E)
  554. end
  555. if GetLevel(myHero) == 15 then
  556. LevelSpell(_W)
  557. end
  558. if GetLevel(myHero) == 16 then
  559. LevelSpell(_R)
  560. end
  561. if GetLevel(myHero) == 17 then
  562. LevelSpell(_E)
  563. end
  564. if GetLevel(myHero) == 18 then
  565. LevelSpell(_E)
  566. end
  567. end
  568. if "MasterYi" == GetObjectName(myHero) then
  569. if ValidTarget(target, QRange) then
  570. if CanUseSpell(myHero, _Q) == READY then
  571. CastTargetSpell(myHero,_Q)
  572. end
  573. end
  574. if CanUseSpell(myHero,_W) == READY then
  575. CastSpell(_W)
  576. end
  577. if ValidTarget(target,myAttackRange) then
  578. if CanUseSpell(myHero,_E) == READY then
  579. CastTargetSpell(myHero,_E)
  580. end
  581. end
  582. if ValidTarget(target,QRange) then
  583. if CanUseSpell(myHero,_R) == READY then
  584. CastSpell(_R)
  585. end
  586. end
  587. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  588. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  589. BuyItem(1001)
  590. end
  591. end
  592. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  593. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  594. BuyItem(3006)
  595. end
  596. end
  597. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  598. BuyItem(2003)
  599. end
  600. if GetItemSlot(myHero,3031) == 0 or GetItemSlot(myHero,3031) < 1 then
  601. BuyItem(3031)
  602. end
  603. if GetItemSlot(myHero,3153) == 0 or GetItemSlot(myHero,3153) < 1 then
  604. BuyItem(3153)
  605. end
  606. if GetItemSlot(myHero,3035) == 0 or GetItemSlot(myHero,3035) < 1 then
  607. BuyItem(3035)
  608. end
  609. if GetItemSlot(myHero,3046) == 0 or GetItemSlot(myHero,3046) < 1 then
  610. BuyItem(3046)
  611. end
  612. end
  613. if "LeeSin" == GetObjectName(myHero) then
  614. local allDMG = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  615. local perc90 = (allDMG*90)/100
  616. local Qdmg = (GetCastLevel(myHero,_Q)*30)+50+perc90
  617. local Edmg =(GetCastLevel(myHero,_E)*35)+25+allDMG
  618. local Rdmg = (GetCastLevel(myHero,_R)*200)+(allDMG*2)
  619.  
  620. local minionPos = GetOrigin(minion)
  621. local hero_origin = myHeroPos
  622. local targetPos = GetOrigin(target)
  623. if IsObjectAlive(target) then
  624. if ValidTarget(target,1000) then
  625. local FQpred = GetPredictionForPlayer(myHeroPos,target,GetMoveSpeed(target),2000,250,900,50,true,true)
  626. if CanUseSpell(myHero,_Q) == READY and FQpred.HitChance == 1 then
  627. CastSkillShot(_Q,FQpred.PredPos.x,FQpred.PredPos.y,FQpred.PredPos.z)
  628. end
  629. end
  630. if ValidTarget(target,350) then
  631. local FQpred = GetPredictionForPlayer(myHero,target,GetMoveSpeed(target),2000,250,350,50,true,true)
  632. if CanUseSpell(myHero,_E) == READY then
  633. CastSkillShot(_E,FQpred.PredPos.x,FQpred.PredPos.y,FQpred.PredPos.z)
  634. CastTargetSpell(target,GetItemSlot(myHero,3077))
  635. CastTargetSpell(target,GetItemSlot(myHero,3074))
  636. CastTargetSpell(target,GetItemSlot(myHero,3143))
  637. else end
  638. end
  639. if IsInDistance(target,1300) and IsObjectAlive(target) then
  640. local minion = XlosestMinion(myHeroPos,MINION_ALLY)
  641. if minion and GetOrigin(minion) ~= nil then
  642. if GetDistance(minion,target) < GetDistance(myHero,target) and GetDistance(myHero,target) > 200 then
  643. if CanUseSpell(myHero,_W) == READY then
  644. CastTargetSpell(minion,_W)
  645. end
  646. end
  647. end
  648. else
  649. if GetDistance(myHero,target) < 200 then
  650. if CanUseSpell(myHero,_W) == READY then
  651. CastTargetSpell(myHero,_W)
  652. end
  653. end
  654. end
  655. if ValidTarget(target,375) then
  656. if CalcDamage(myHero, target, Rdmg) > GetCurrentHP(target) + GetHPRegen(target) then
  657. if CanUseSpell(myHero,_R) == READY then
  658. CastTargetSpell(target,_R)
  659. end
  660. end
  661. end
  662.  
  663. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  664. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  665. BuyItem(1001)
  666. end
  667. end
  668. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  669. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  670. BuyItem(3047)
  671. end
  672. end
  673. if GetItemSlot(myHero,3143) == 0 or GetItemSlot(myHero,3143) < 1 then
  674. BuyItem(3143)
  675. end
  676. if GetItemSlot(myHero,3068) == 0 or GetItemSlot(myHero,3068) < 1 then
  677. BuyItem(3068)
  678. end
  679. if GetItemSlot(myHero,3065) == 0 or GetItemSlot(myHero,3065) < 1 then
  680. BuyItem(3065)
  681. end
  682. if GetItemSlot(myHero,3091) == 0 or GetItemSlot(myHero,3091) < 1 then
  683. BuyItem(3091)
  684. end
  685. end
  686. end
  687. if "Elise" == GetObjectName(myHero) then
  688. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  689. if CanUseSpell(myHero,_Q) == READY then
  690. CastTargetSpell(target,_Q)
  691. end
  692. end
  693. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  694. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,WRange,55,true,true)
  695. if CanUseSpell(myHero,_W) == READY then
  696. CastSkillShot(_W,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  697. end
  698. end
  699. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  700. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  701. if CanUseSpell(myHero,_E) == READY then
  702. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  703. end
  704. end
  705. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  706. if CanUseSpell(myHero,_R) == READY and CanUseSpell(myHero,_Q) == ONCOOLDOWN and CanUseSpell(myHero,_W) == ONCOOLDOWN then
  707. CastSpell(_R)
  708. end
  709. end
  710.  
  711.  
  712.  
  713. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  714. BuyItem(2003)
  715. end
  716. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  717. -- Boots of Speed
  718. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  719. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  720. BuyItem(1001)
  721. end
  722. end
  723. -- Sorcerer's Shoes
  724. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  725. BuyItem(3020)
  726. end
  727. ------------------------------------------------------------------------- Liandry's Torment Sequence
  728. --Ruby Crystal
  729. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  730. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  731. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  732. BuyItem(1028)
  733. end
  734. end
  735. end
  736. --Amplifying Tome
  737. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  738. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  739. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  740. BuyItem(1052)
  741. end
  742. end
  743. end
  744. --Blasting Wand
  745. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  746. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  747. BuyItem(1026)
  748. end
  749. end
  750. --Liandry's Torment
  751. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  752. BuyItem(3151)
  753. end
  754. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  755. --Amplifying Tome
  756. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  757. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  758. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  759. BuyItem(1052)
  760. end
  761. end
  762. end
  763. --Fiendish Codex
  764. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  765. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  766. BuyItem(3108)
  767. end
  768. end
  769. -- Faerie Charm
  770. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  771. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  772. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  773. BuyItem(1004)
  774. end
  775. end
  776. end
  777. -- Null-Magic Mantle
  778. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  779. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  780. BuyItem(1033)
  781. end
  782. end
  783. --Amplifying Tome
  784. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  785. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  786. BuyItem(1052)
  787. end
  788. end
  789. -- Athene's Unholy Grail
  790. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  791. BuyItem(2700)
  792. end
  793. ------------------------------------------------------------------------- Morellonomicon Sequence
  794.  
  795. --Amplifying Tome
  796. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  797. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  798. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  799. BuyItem(1052)
  800. end
  801. end
  802. end
  803. --Fiendish Codex
  804. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  805. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  806. BuyItem(3108)
  807. end
  808. end
  809. -- Faerie Charm
  810. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  811. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  812. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  813. BuyItem(1004)
  814. end
  815. end
  816. end
  817. -- Forbidden Idol
  818. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  819. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  820. BuyItem(3114)
  821. end
  822. end
  823. --Amplifying Tome
  824. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  825. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  826. BuyItem(1052)
  827. end
  828. end
  829. -- Morellonomicon
  830. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  831. BuyItem(3165)
  832. end
  833. ------------------------------------------------------------------------- Twin Shadows Sequence
  834.  
  835. --Amplifying Tome
  836. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  837. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  838. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  839. BuyItem(1052)
  840. end
  841. end
  842. end
  843. --Fiendish Codex
  844. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  845. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  846. BuyItem(3108)
  847. end
  848. end
  849. --Amplifying Tome
  850. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  851. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  852. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  853. BuyItem(1052)
  854. end
  855. end
  856. end
  857. -- Aether Wisp
  858. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  859. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  860. BuyItem(3113)
  861. end
  862. end
  863. -- Twin Shadows
  864. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  865. BuyItem(3023)
  866. end
  867. end
  868. if "Kalista" == GetObjectName(myHero)then
  869.  
  870. -- iterate through all enemy heroes
  871. for _,target in pairs(GetEnemyHeroes()) do
  872. -- is the current target is a valid target
  873. if ValidTarget(target, 1500) then
  874. -- our total ad
  875. local TotalDmg = GetBonusDmg(myHero)+GetBaseDamage(myHero)
  876. -- out e damage, taken stack count into calc
  877. local dmgE = (GotBuff(target,"kalistaexpungemarker") > 0 and (10 + (10 * GetCastLevel(myHero,_E)) + (TotalDmg * 0.6)) + (GotBuff(target,"kalistaexpungemarker")-1) * (kalE(GetCastLevel(myHero,_E)) + (0.175 + 0.025 * GetCastLevel(myHero,_E))*TotalDmg) or 0)
  878. -- calculates damage on enemy, with armor taken into calc
  879. -- CalcDamage(source, target, addmg, apdmg)
  880. local dmg = CalcDamage(myHero, target, dmgE)
  881. -- hp of target
  882. local hp = GetCurrentHP(target)
  883. -- get target position
  884. local targetPos = GetOrigin(target)
  885. -- make draw position
  886. local drawPos = WorldToScreen(1,targetPos.x,targetPos.y,targetPos.z)
  887. -- if we do some dmg
  888. if dmg > 0 then
  889. -- if our dmg is greater than target hp
  890. if hp > 0 and dmg >= hp and ValidTarget(target, 1000) then
  891. -- cast e
  892. CastTargetSpell(myHero, _E)
  893. end
  894. end
  895. end
  896. end
  897. -- if we dont press spacebar we do nothing
  898. -- grab best target in 1175 range
  899. local target = GetTarget(1175)
  900. -- if the target is valid and (still) in 1175 range
  901. if target then
  902. -- following line is used to predict enemy position
  903. -- GetPredictionForPlayer(startPosition, targettarget, targettargetMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  904. local QPred = GetPredictionForPlayer(myHeroPos,target,GetMoveSpeed(target),1750,250,1150,70,true,true)
  905. -- is q ready? is hitchance high enough?
  906. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  907. -- cast q towards position where enemy will be!
  908. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  909. end
  910. end
  911.  
  912.  
  913.  
  914. -- recursively calculates stackdmg
  915. function kalE(x) if x <= 1 then return 10 else return kalE(x-1) + 2 + x end end
  916.  
  917. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  918. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  919. BuyItem(1001)
  920. end
  921. end
  922. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  923. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  924. BuyItem(3006)
  925. end
  926. end
  927. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  928. BuyItem(2003)
  929. end
  930. if GetItemSlot(myHero,3031) == 0 or GetItemSlot(myHero,3031) < 1 then
  931. BuyItem(3031)
  932. end
  933. if GetItemSlot(myHero,3153) == 0 or GetItemSlot(myHero,3153) < 1 then
  934. BuyItem(3153)
  935. end
  936. if GetItemSlot(myHero,3035) == 0 or GetItemSlot(myHero,3035) < 1 then
  937. BuyItem(3035)
  938. end
  939. if GetItemSlot(myHero,3046) == 0 or GetItemSlot(myHero,3046) < 1 then
  940. BuyItem(3046)
  941. end
  942.  
  943.  
  944. end
  945. if "Graves" == GetObjectName(myHero) then
  946. if IsObjectAlive(target) then
  947. if ValidTarget(target, 700) then
  948. local QPred = GetPredictionForPlayer(myHeroPos,target,GetMoveSpeed(target),1875,250,700,55,true,true)
  949. --if Config.Q then
  950. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  951. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  952. end
  953. --end
  954. end
  955. if ValidTarget(target, 900) then
  956. local WPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1875,250,900,55,true,true)
  957. --if Config.W then
  958. if CanUseSpell(myHero,_W) == READY and WPred.HitChance == 1 then
  959. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  960. end
  961. --end
  962. end
  963. if ValidTarget(target,1000) then
  964. local mousePos = GetMousePos()
  965. --if Config.E then
  966. if CanUseSpell(myHero,_E) == READY then
  967. CastSkillShot(_E,mousePos.x,mousePos.y,mousePos.z)
  968. end
  969. --end
  970. end
  971. if ValidTarget(target,1000) then
  972. local TargetPos = GetOrigin(target)
  973. local bonusaddmg = GetBonusDmg(myHero)/2
  974. local ultipred = GetCastLevel(myHero,_R)*250+(bonusaddmg*3)
  975. local addmg = ultipred + GetHPRegen(target)
  976. if GetCurrentHP(target) < CalcDamage(myHero, target, addmg) then
  977. --if Config.R then
  978. local RPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1875,250,1000,55,true,true)
  979. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  980. end
  981. --end
  982. end
  983. end
  984.  
  985. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  986. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  987. BuyItem(1001)
  988. end
  989. end
  990. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  991. BuyItem(2003)
  992. end
  993. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  994. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  995. BuyItem(3006)
  996. end
  997. end
  998. if GetItemSlot(myHero,3031) == 0 or GetItemSlot(myHero,3031) < 1 then
  999. BuyItem(3031)
  1000. end
  1001. if GetItemSlot(myHero,3153) == 0 or GetItemSlot(myHero,3153) < 1 then
  1002. BuyItem(3153)
  1003. end
  1004. if GetItemSlot(myHero,3035) == 0 or GetItemSlot(myHero,3035) < 1 then
  1005. BuyItem(3035)
  1006. end
  1007. if GetItemSlot(myHero,3046) == 0 or GetItemSlot(myHero,3046) < 1 then
  1008. BuyItem(3046)
  1009. end
  1010. end
  1011. if "Sion" == GetObjectName(myHero) then
  1012. if ValidTarget(target,600) and IsInDistance(myHero,600) then
  1013. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,600,55,true,true)
  1014. if CanUseSpell(myHero,_Q) == READY then
  1015. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1016. AttackUnit(target)
  1017. end
  1018. end
  1019. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  1020. if CanUseSpell(myHero,_W) == READY then
  1021. CastSpell(_W)
  1022. AttackUnit(target)
  1023. end
  1024. end
  1025. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1026. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  1027. if CanUseSpell(myHero,_E) == READY then
  1028. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1029. AttackUnit(target)
  1030. end
  1031. end
  1032. if ValidTarget(target,900) and IsInDistance(myHero,900) then
  1033. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,900,55,true,true)
  1034. if CanUseSpell(myHero,_R) == READY then
  1035. CastSkillShot(_R,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1036. AttackUnit(target)
  1037. end
  1038. end
  1039. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  1040. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1041. BuyItem(1001)
  1042. end
  1043. end
  1044. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  1045. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  1046. BuyItem(3047)
  1047. end
  1048. end
  1049. if GetItemSlot(myHero,3143) == 0 or GetItemSlot(myHero,3143) < 1 then
  1050. BuyItem(3143)
  1051. end
  1052. if GetItemSlot(myHero,3068) == 0 or GetItemSlot(myHero,3068) < 1 then
  1053. BuyItem(3068)
  1054. end
  1055. if GetItemSlot(myHero,3065) == 0 or GetItemSlot(myHero,3065) < 1 then
  1056. BuyItem(3065)
  1057. end
  1058. if GetItemSlot(myHero,3091) == 0 or GetItemSlot(myHero,3091) < 1 then
  1059. BuyItem(3091)
  1060. end
  1061.  
  1062. end
  1063. if "Gangplank" == GetObjectName(myHero) then
  1064. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1065. if CanUseSpell(myHero,_Q) == READY then
  1066. CastTargetSpell(target,_Q)
  1067. end
  1068. end
  1069. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  1070. if CanUseSpell(myHero,_W) == READY then
  1071. CastSpell(_W)
  1072. AttackUnit(target)
  1073. end
  1074. end
  1075. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1076. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  1077. if CanUseSpell(myHero,_E) == READY then
  1078. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1079. AttackUnit(target)
  1080. end
  1081. end
  1082. if ValidTarget(target,900) and IsInDistance(myHero,900) then
  1083. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,900,55,true,true)
  1084. if CanUseSpell(myHero,_R) == READY then
  1085. CastSkillShot(_R,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1086. AttackUnit(target)
  1087. end
  1088. end
  1089. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  1090. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1091. BuyItem(1001)
  1092. end
  1093. end
  1094. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  1095. if GetItemSlot(myHero,3006) == 0 or GetItemSlot(myHero,3006) < 1 then
  1096. BuyItem(3006)
  1097. end
  1098. end
  1099. if GetItemSlot(myHero,3031) == 0 or GetItemSlot(myHero,3031) < 1 then
  1100. BuyItem(3031)
  1101. end
  1102. if GetItemSlot(myHero,3153) == 0 or GetItemSlot(myHero,3153) < 1 then
  1103. BuyItem(3153)
  1104. end
  1105. if GetItemSlot(myHero,3035) == 0 or GetItemSlot(myHero,3035) < 1 then
  1106. BuyItem(3035)
  1107. end
  1108. if GetItemSlot(myHero,3046) == 0 or GetItemSlot(myHero,3046) < 1 then
  1109. BuyItem(3046)
  1110. end
  1111.  
  1112. end
  1113. if "Heimerdinger" == GetObjectName(myHero) then
  1114. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1115. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  1116. if CanUseSpell(myHero,_Q) == READY then
  1117. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1118. AttackUnit(target)
  1119. end
  1120. end
  1121. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  1122. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,WRange,55,true,true)
  1123. if CanUseSpell(myHero,_Q) == READY then
  1124. CastSkillShot(_W,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1125. AttackUnit(target)
  1126. end
  1127. end
  1128. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1129. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  1130. if CanUseSpell(myHero,_E) == READY then
  1131. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1132. AttackUnit(target)
  1133. end
  1134. end
  1135. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1136. if CanUseSpell(myHero,_R) == READY then
  1137. CastSpell(_R)
  1138. AttackUnit(target)
  1139. end
  1140. end
  1141.  
  1142.  
  1143.  
  1144. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  1145. BuyItem(2003)
  1146. end
  1147. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  1148. -- Boots of Speed
  1149. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1150. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1151. BuyItem(1001)
  1152. end
  1153. end
  1154. -- Sorcerer's Shoes
  1155. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1156. BuyItem(3020)
  1157. end
  1158. ------------------------------------------------------------------------- Liandry's Torment Sequence
  1159. --Ruby Crystal
  1160. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1161. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1162. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  1163. BuyItem(1028)
  1164. end
  1165. end
  1166. end
  1167. --Amplifying Tome
  1168. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1169. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1170. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1171. BuyItem(1052)
  1172. end
  1173. end
  1174. end
  1175. --Blasting Wand
  1176. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1177. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  1178. BuyItem(1026)
  1179. end
  1180. end
  1181. --Liandry's Torment
  1182. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1183. BuyItem(3151)
  1184. end
  1185. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  1186. --Amplifying Tome
  1187. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1188. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1189. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1190. BuyItem(1052)
  1191. end
  1192. end
  1193. end
  1194. --Fiendish Codex
  1195. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1196. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1197. BuyItem(3108)
  1198. end
  1199. end
  1200. -- Faerie Charm
  1201. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1202. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  1203. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1204. BuyItem(1004)
  1205. end
  1206. end
  1207. end
  1208. -- Null-Magic Mantle
  1209. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1210. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  1211. BuyItem(1033)
  1212. end
  1213. end
  1214. --Amplifying Tome
  1215. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1216. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1217. BuyItem(1052)
  1218. end
  1219. end
  1220. -- Athene's Unholy Grail
  1221. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1222. BuyItem(2700)
  1223. end
  1224. ------------------------------------------------------------------------- Morellonomicon Sequence
  1225.  
  1226. --Amplifying Tome
  1227. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1228. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1229. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1230. BuyItem(1052)
  1231. end
  1232. end
  1233. end
  1234. --Fiendish Codex
  1235. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1236. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1237. BuyItem(3108)
  1238. end
  1239. end
  1240. -- Faerie Charm
  1241. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1242. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1243. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1244. BuyItem(1004)
  1245. end
  1246. end
  1247. end
  1248. -- Forbidden Idol
  1249. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1250. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1251. BuyItem(3114)
  1252. end
  1253. end
  1254. --Amplifying Tome
  1255. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1256. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1257. BuyItem(1052)
  1258. end
  1259. end
  1260. -- Morellonomicon
  1261. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1262. BuyItem(3165)
  1263. end
  1264. ------------------------------------------------------------------------- Twin Shadows Sequence
  1265.  
  1266. --Amplifying Tome
  1267. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1268. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1269. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1270. BuyItem(1052)
  1271. end
  1272. end
  1273. end
  1274. --Fiendish Codex
  1275. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1276. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1277. BuyItem(3108)
  1278. end
  1279. end
  1280. --Amplifying Tome
  1281. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1282. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1283. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1284. BuyItem(1052)
  1285. end
  1286. end
  1287. end
  1288. -- Aether Wisp
  1289. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1290. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1291. BuyItem(3113)
  1292. end
  1293. end
  1294. -- Twin Shadows
  1295. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1296. BuyItem(3023)
  1297. end
  1298. end
  1299. if "Katarina" == GetObjectName(myHero) then
  1300. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1301. if CanUseSpell(myHero,_Q) == READY then
  1302. CastTargetSpell(target,_Q)
  1303. AttackUnit(target)
  1304. end
  1305. end
  1306. if ValidTarget(target,WRange) and IsInDistance(myHero,WRange) then
  1307. if CanUseSpell(myHero,_W) == READY then
  1308. CastSpell(_W)
  1309. AttackUnit(target)
  1310. end
  1311. end
  1312. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,tarAttackRange) then
  1313. if CanUseSpell(myHero,_E) == READY then
  1314. CastTargetSpell(target,_E)
  1315. AttackUnit(target)
  1316. end
  1317. end
  1318. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  1319. if CanUseSpell(myHero,_R) == READY then
  1320. HoldPosition()
  1321. CastSpell(_R)
  1322. end
  1323. end
  1324. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  1325. BuyItem(2003)
  1326. end
  1327. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  1328. -- Boots of Speed
  1329. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1330. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1331. BuyItem(1001)
  1332. end
  1333. end
  1334. -- Sorcerer's Shoes
  1335. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1336. BuyItem(3020)
  1337. end
  1338. ------------------------------------------------------------------------- Liandry's Torment Sequence
  1339. --Ruby Crystal
  1340. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1341. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1342. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  1343. BuyItem(1028)
  1344. end
  1345. end
  1346. end
  1347. --Amplifying Tome
  1348. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1349. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1350. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1351. BuyItem(1052)
  1352. end
  1353. end
  1354. end
  1355. --Blasting Wand
  1356. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1357. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  1358. BuyItem(1026)
  1359. end
  1360. end
  1361. --Liandry's Torment
  1362. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1363. BuyItem(3151)
  1364. end
  1365. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  1366. --Amplifying Tome
  1367. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1368. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1369. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1370. BuyItem(1052)
  1371. end
  1372. end
  1373. end
  1374. --Fiendish Codex
  1375. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1376. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1377. BuyItem(3108)
  1378. end
  1379. end
  1380. -- Faerie Charm
  1381. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1382. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  1383. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1384. BuyItem(1004)
  1385. end
  1386. end
  1387. end
  1388. -- Null-Magic Mantle
  1389. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1390. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  1391. BuyItem(1033)
  1392. end
  1393. end
  1394. --Amplifying Tome
  1395. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1396. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1397. BuyItem(1052)
  1398. end
  1399. end
  1400. -- Athene's Unholy Grail
  1401. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1402. BuyItem(2700)
  1403. end
  1404. ------------------------------------------------------------------------- Morellonomicon Sequence
  1405.  
  1406. --Amplifying Tome
  1407. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1408. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1409. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1410. BuyItem(1052)
  1411. end
  1412. end
  1413. end
  1414. --Fiendish Codex
  1415. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1416. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1417. BuyItem(3108)
  1418. end
  1419. end
  1420. -- Faerie Charm
  1421. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1422. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1423. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1424. BuyItem(1004)
  1425. end
  1426. end
  1427. end
  1428. -- Forbidden Idol
  1429. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1430. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1431. BuyItem(3114)
  1432. end
  1433. end
  1434. --Amplifying Tome
  1435. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1436. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1437. BuyItem(1052)
  1438. end
  1439. end
  1440. -- Morellonomicon
  1441. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1442. BuyItem(3165)
  1443. end
  1444. ------------------------------------------------------------------------- Twin Shadows Sequence
  1445.  
  1446. --Amplifying Tome
  1447. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1448. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1449. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1450. BuyItem(1052)
  1451. end
  1452. end
  1453. end
  1454. --Fiendish Codex
  1455. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1456. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1457. BuyItem(3108)
  1458. end
  1459. end
  1460. --Amplifying Tome
  1461. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1462. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1463. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1464. BuyItem(1052)
  1465. end
  1466. end
  1467. end
  1468. -- Aether Wisp
  1469. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1470. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1471. BuyItem(3113)
  1472. end
  1473. end
  1474. -- Twin Shadows
  1475. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1476. BuyItem(3023)
  1477. end
  1478.  
  1479.  
  1480. end
  1481. if "Fizz" == GetObjectName(myHero) then
  1482. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1483. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  1484. if CanUseSpell(myHero,_E) == READY then
  1485. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1486. AttackUnit(target)
  1487. end
  1488. end
  1489. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  1490. if CanUseSpell(myHero,_W) == READY then
  1491. CastSpell(_W)
  1492. AttackUnit(target)
  1493. end
  1494. end
  1495. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1496. if CanUseSpell(myHero,_Q) == READY then
  1497. CastTargetSpell(target,_Q)
  1498. AttackUnit(target)
  1499. end
  1500. end
  1501. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  1502. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,RRange,55,true,true)
  1503. if CanUseSpell(myHero,_R) == READY then
  1504. CastSkillShot(_R,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1505. AttackUnit(target)
  1506. end
  1507. end
  1508.  
  1509.  
  1510.  
  1511. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  1512. BuyItem(2003)
  1513. end
  1514. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  1515. -- Boots of Speed
  1516. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1517. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1518. BuyItem(1001)
  1519. end
  1520. end
  1521. -- Sorcerer's Shoes
  1522. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1523. BuyItem(3020)
  1524. end
  1525. ------------------------------------------------------------------------- Liandry's Torment Sequence
  1526. --Ruby Crystal
  1527. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1528. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1529. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  1530. BuyItem(1028)
  1531. end
  1532. end
  1533. end
  1534. --Amplifying Tome
  1535. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1536. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1537. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1538. BuyItem(1052)
  1539. end
  1540. end
  1541. end
  1542. --Blasting Wand
  1543. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1544. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  1545. BuyItem(1026)
  1546. end
  1547. end
  1548. --Liandry's Torment
  1549. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1550. BuyItem(3151)
  1551. end
  1552. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  1553. --Amplifying Tome
  1554. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1555. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1556. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1557. BuyItem(1052)
  1558. end
  1559. end
  1560. end
  1561. --Fiendish Codex
  1562. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1563. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1564. BuyItem(3108)
  1565. end
  1566. end
  1567. -- Faerie Charm
  1568. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1569. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  1570. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1571. BuyItem(1004)
  1572. end
  1573. end
  1574. end
  1575. -- Null-Magic Mantle
  1576. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1577. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  1578. BuyItem(1033)
  1579. end
  1580. end
  1581. --Amplifying Tome
  1582. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1583. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1584. BuyItem(1052)
  1585. end
  1586. end
  1587. -- Athene's Unholy Grail
  1588. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1589. BuyItem(2700)
  1590. end
  1591. ------------------------------------------------------------------------- Morellonomicon Sequence
  1592.  
  1593. --Amplifying Tome
  1594. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1595. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1596. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1597. BuyItem(1052)
  1598. end
  1599. end
  1600. end
  1601. --Fiendish Codex
  1602. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1603. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1604. BuyItem(3108)
  1605. end
  1606. end
  1607. -- Faerie Charm
  1608. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1609. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1610. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1611. BuyItem(1004)
  1612. end
  1613. end
  1614. end
  1615. -- Forbidden Idol
  1616. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1617. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1618. BuyItem(3114)
  1619. end
  1620. end
  1621. --Amplifying Tome
  1622. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1623. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1624. BuyItem(1052)
  1625. end
  1626. end
  1627. -- Morellonomicon
  1628. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1629. BuyItem(3165)
  1630. end
  1631. ------------------------------------------------------------------------- Twin Shadows Sequence
  1632.  
  1633. --Amplifying Tome
  1634. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1635. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1636. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1637. BuyItem(1052)
  1638. end
  1639. end
  1640. end
  1641. --Fiendish Codex
  1642. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1643. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1644. BuyItem(3108)
  1645. end
  1646. end
  1647. --Amplifying Tome
  1648. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1649. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1650. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1651. BuyItem(1052)
  1652. end
  1653. end
  1654. end
  1655. -- Aether Wisp
  1656. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1657. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1658. BuyItem(3113)
  1659. end
  1660. end
  1661. -- Twin Shadows
  1662. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1663. BuyItem(3023)
  1664. end
  1665. end
  1666. if "Galio" == GetObjectName(myHero) then
  1667. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1668. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  1669. if CanUseSpell(myHero,_E) == READY then
  1670. CastSkillShot(_E,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1671. AttackUnit(target)
  1672. end
  1673. end
  1674. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  1675. if CanUseSpell(myHero,_W) == READY then
  1676. CastSpell(_W)
  1677. AttackUnit(target)
  1678. end
  1679. end
  1680. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1681. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  1682. if CanUseSpell(myHero,_Q) == READY then
  1683. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1684. AttackUnit(target)
  1685. end
  1686. end
  1687. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  1688. if CanUseSpell(myHero,_R) == READY then
  1689. CastSpell(_R)
  1690. end
  1691. end
  1692. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  1693. BuyItem(2003)
  1694. end
  1695. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  1696. -- Boots of Speed
  1697. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1698. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1699. BuyItem(1001)
  1700. end
  1701. end
  1702. -- Sorcerer's Shoes
  1703. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1704. BuyItem(3020)
  1705. end
  1706. ------------------------------------------------------------------------- Liandry's Torment Sequence
  1707. --Ruby Crystal
  1708. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1709. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1710. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  1711. BuyItem(1028)
  1712. end
  1713. end
  1714. end
  1715. --Amplifying Tome
  1716. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1717. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1718. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1719. BuyItem(1052)
  1720. end
  1721. end
  1722. end
  1723. --Blasting Wand
  1724. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1725. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  1726. BuyItem(1026)
  1727. end
  1728. end
  1729. --Liandry's Torment
  1730. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1731. BuyItem(3151)
  1732. end
  1733. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  1734. --Amplifying Tome
  1735. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1736. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1737. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1738. BuyItem(1052)
  1739. end
  1740. end
  1741. end
  1742. --Fiendish Codex
  1743. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1744. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1745. BuyItem(3108)
  1746. end
  1747. end
  1748. -- Faerie Charm
  1749. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1750. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  1751. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1752. BuyItem(1004)
  1753. end
  1754. end
  1755. end
  1756. -- Null-Magic Mantle
  1757. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1758. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  1759. BuyItem(1033)
  1760. end
  1761. end
  1762. --Amplifying Tome
  1763. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1764. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1765. BuyItem(1052)
  1766. end
  1767. end
  1768. -- Athene's Unholy Grail
  1769. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1770. BuyItem(2700)
  1771. end
  1772. ------------------------------------------------------------------------- Morellonomicon Sequence
  1773.  
  1774. --Amplifying Tome
  1775. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1776. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1777. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1778. BuyItem(1052)
  1779. end
  1780. end
  1781. end
  1782. --Fiendish Codex
  1783. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1784. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1785. BuyItem(3108)
  1786. end
  1787. end
  1788. -- Faerie Charm
  1789. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1790. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1791. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1792. BuyItem(1004)
  1793. end
  1794. end
  1795. end
  1796. -- Forbidden Idol
  1797. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1798. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  1799. BuyItem(3114)
  1800. end
  1801. end
  1802. --Amplifying Tome
  1803. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1804. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1805. BuyItem(1052)
  1806. end
  1807. end
  1808. -- Morellonomicon
  1809. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  1810. BuyItem(3165)
  1811. end
  1812. ------------------------------------------------------------------------- Twin Shadows Sequence
  1813.  
  1814. --Amplifying Tome
  1815. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1816. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1817. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1818. BuyItem(1052)
  1819. end
  1820. end
  1821. end
  1822. --Fiendish Codex
  1823. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1824. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1825. BuyItem(3108)
  1826. end
  1827. end
  1828. --Amplifying Tome
  1829. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1830. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1831. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1832. BuyItem(1052)
  1833. end
  1834. end
  1835. end
  1836. -- Aether Wisp
  1837. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1838. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  1839. BuyItem(3113)
  1840. end
  1841. end
  1842. -- Twin Shadows
  1843. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  1844. BuyItem(3023)
  1845. end
  1846. end
  1847. if "Nautilus" == GetObjectName(myHero) then
  1848. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1849. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  1850. if CanUseSpell(myHero,_Q) == READY then
  1851. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1852. AttackUnit(target)
  1853. end
  1854. end
  1855. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  1856. if CanUseSpell(myHero,_W) == READY then
  1857. CastSpell(_W)
  1858. AttackUnit(target)
  1859. end
  1860. end
  1861. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  1862. if CanUseSpell(myHero,_E) == READY then
  1863. CastSpell(_E)
  1864. AttackUnit(target)
  1865. end
  1866. end
  1867. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  1868. if CanUseSpell(myHero,_R) == READY then
  1869. CastTargetSpell(target,_R)
  1870. end
  1871. end
  1872. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  1873. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1874. BuyItem(1001)
  1875. end
  1876. end
  1877. if GetItemSlot(myHero,1001) == 1 or GetItemSlot(myHero,1001) > 1 then
  1878. if GetItemSlot(myHero,3047) == 0 or GetItemSlot(myHero,3047) < 1 then
  1879. BuyItem(3047)
  1880. end
  1881. end
  1882. if GetItemSlot(myHero,3143) == 0 or GetItemSlot(myHero,3143) < 1 then
  1883. BuyItem(3143)
  1884. end
  1885. if GetItemSlot(myHero,3068) == 0 or GetItemSlot(myHero,3068) < 1 then
  1886. BuyItem(3068)
  1887. end
  1888. if GetItemSlot(myHero,3065) == 0 or GetItemSlot(myHero,3065) < 1 then
  1889. BuyItem(3065)
  1890. end
  1891. if GetItemSlot(myHero,3091) == 0 or GetItemSlot(myHero,3091) < 1 then
  1892. BuyItem(3091)
  1893. end
  1894. end
  1895. if "TwistedFate" == GetObjectName(myHero) then
  1896. if ValidTarget(target,900) then
  1897. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,900,55,true,true)
  1898. if CanUseSpell(myHero,_Q) == READY then
  1899. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  1900. AttackUnit(target)
  1901. end
  1902. end
  1903. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  1904. if CanUseSpell(myHero,_W) == READY then
  1905. CastSpell(_W)
  1906. AttackUnit(target)
  1907. end
  1908. end
  1909. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  1910. if CanUseSpell(myHero,_R) == READY then
  1911. CastSpell(_R)
  1912. AttackUnit(target)
  1913. end
  1914. end
  1915.  
  1916.  
  1917.  
  1918. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  1919. BuyItem(2003)
  1920. end
  1921. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  1922. -- Boots of Speed
  1923. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1924. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  1925. BuyItem(1001)
  1926. end
  1927. end
  1928. -- Sorcerer's Shoes
  1929. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  1930. BuyItem(3020)
  1931. end
  1932. ------------------------------------------------------------------------- Liandry's Torment Sequence
  1933. --Ruby Crystal
  1934. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1935. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1936. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  1937. BuyItem(1028)
  1938. end
  1939. end
  1940. end
  1941. --Amplifying Tome
  1942. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1943. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  1944. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1945. BuyItem(1052)
  1946. end
  1947. end
  1948. end
  1949. --Blasting Wand
  1950. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1951. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  1952. BuyItem(1026)
  1953. end
  1954. end
  1955. --Liandry's Torment
  1956. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  1957. BuyItem(3151)
  1958. end
  1959. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  1960. --Amplifying Tome
  1961. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1962. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1963. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1964. BuyItem(1052)
  1965. end
  1966. end
  1967. end
  1968. --Fiendish Codex
  1969. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1970. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  1971. BuyItem(3108)
  1972. end
  1973. end
  1974. -- Faerie Charm
  1975. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1976. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  1977. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  1978. BuyItem(1004)
  1979. end
  1980. end
  1981. end
  1982. -- Null-Magic Mantle
  1983. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1984. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  1985. BuyItem(1033)
  1986. end
  1987. end
  1988. --Amplifying Tome
  1989. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1990. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  1991. BuyItem(1052)
  1992. end
  1993. end
  1994. -- Athene's Unholy Grail
  1995. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  1996. BuyItem(2700)
  1997. end
  1998. ------------------------------------------------------------------------- Morellonomicon Sequence
  1999.  
  2000. --Amplifying Tome
  2001. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2002. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2003. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2004. BuyItem(1052)
  2005. end
  2006. end
  2007. end
  2008. --Fiendish Codex
  2009. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2010. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2011. BuyItem(3108)
  2012. end
  2013. end
  2014. -- Faerie Charm
  2015. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2016. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2017. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2018. BuyItem(1004)
  2019. end
  2020. end
  2021. end
  2022. -- Forbidden Idol
  2023. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2024. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2025. BuyItem(3114)
  2026. end
  2027. end
  2028. --Amplifying Tome
  2029. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2030. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2031. BuyItem(1052)
  2032. end
  2033. end
  2034. -- Morellonomicon
  2035. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2036. BuyItem(3165)
  2037. end
  2038. ------------------------------------------------------------------------- Twin Shadows Sequence
  2039.  
  2040. --Amplifying Tome
  2041. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2042. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2043. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2044. BuyItem(1052)
  2045. end
  2046. end
  2047. end
  2048. --Fiendish Codex
  2049. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2050. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2051. BuyItem(3108)
  2052. end
  2053. end
  2054. --Amplifying Tome
  2055. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2056. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2057. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2058. BuyItem(1052)
  2059. end
  2060. end
  2061. end
  2062. -- Aether Wisp
  2063. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2064. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2065. BuyItem(3113)
  2066. end
  2067. end
  2068. -- Twin Shadows
  2069. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2070. BuyItem(3023)
  2071. end
  2072. end
  2073. if "Zilean" == GetObjectName(myHero) then
  2074. if IsObjectAlive(target) then
  2075. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  2076. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  2077. if CanUseSpell(myHero,_Q) == READY then
  2078. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2079. end
  2080. end
  2081. if ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  2082. if CanUseSpell(myHero,_Q) == ONCOOLDOWN or CanUseSpell(myHero,_E) == ONCOOLDOWN then
  2083. if CanUseSpell(myHero,_W) == READY then
  2084. CastSpell(_W)
  2085. end
  2086. end
  2087. end
  2088. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  2089. if CanUseSpell(myHero,_E) == READY then
  2090. CastSpell(_E)
  2091. end
  2092. end
  2093. if Config.R and ValidTarget(target,myAttackRange) and IsInDistance(myHero,myAttackRange) then
  2094. if GetCurrentHP(myHero)*100/GetMaxHP(myHero) < 20 then
  2095. if CanUseSpell(myHero,_R) == READY then
  2096. CastSpell(_R)
  2097. end
  2098. end
  2099. end
  2100. end
  2101. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  2102. BuyItem(2003)
  2103. end
  2104. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  2105. -- Boots of Speed
  2106. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2107. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  2108. BuyItem(1001)
  2109. end
  2110. end
  2111. -- Sorcerer's Shoes
  2112. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2113. BuyItem(3020)
  2114. end
  2115. ------------------------------------------------------------------------- Liandry's Torment Sequence
  2116. --Ruby Crystal
  2117. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2118. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2119. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  2120. BuyItem(1028)
  2121. end
  2122. end
  2123. end
  2124. --Amplifying Tome
  2125. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2126. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2127. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2128. BuyItem(1052)
  2129. end
  2130. end
  2131. end
  2132. --Blasting Wand
  2133. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2134. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  2135. BuyItem(1026)
  2136. end
  2137. end
  2138. --Liandry's Torment
  2139. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2140. BuyItem(3151)
  2141. end
  2142. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  2143. --Amplifying Tome
  2144. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2145. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2146. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2147. BuyItem(1052)
  2148. end
  2149. end
  2150. end
  2151. --Fiendish Codex
  2152. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2153. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2154. BuyItem(3108)
  2155. end
  2156. end
  2157. -- Faerie Charm
  2158. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2159. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  2160. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2161. BuyItem(1004)
  2162. end
  2163. end
  2164. end
  2165. -- Null-Magic Mantle
  2166. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2167. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  2168. BuyItem(1033)
  2169. end
  2170. end
  2171. --Amplifying Tome
  2172. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2173. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2174. BuyItem(1052)
  2175. end
  2176. end
  2177. -- Athene's Unholy Grail
  2178. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2179. BuyItem(2700)
  2180. end
  2181. ------------------------------------------------------------------------- Morellonomicon Sequence
  2182.  
  2183. --Amplifying Tome
  2184. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2185. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2186. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2187. BuyItem(1052)
  2188. end
  2189. end
  2190. end
  2191. --Fiendish Codex
  2192. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2193. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2194. BuyItem(3108)
  2195. end
  2196. end
  2197. -- Faerie Charm
  2198. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2199. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2200. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2201. BuyItem(1004)
  2202. end
  2203. end
  2204. end
  2205. -- Forbidden Idol
  2206. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2207. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2208. BuyItem(3114)
  2209. end
  2210. end
  2211. --Amplifying Tome
  2212. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2213. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2214. BuyItem(1052)
  2215. end
  2216. end
  2217. -- Morellonomicon
  2218. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2219. BuyItem(3165)
  2220. end
  2221. ------------------------------------------------------------------------- Twin Shadows Sequence
  2222.  
  2223. --Amplifying Tome
  2224. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2225. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2226. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2227. BuyItem(1052)
  2228. end
  2229. end
  2230. end
  2231. --Fiendish Codex
  2232. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2233. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2234. BuyItem(3108)
  2235. end
  2236. end
  2237. --Amplifying Tome
  2238. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2239. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2240. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2241. BuyItem(1052)
  2242. end
  2243. end
  2244. end
  2245. -- Aether Wisp
  2246. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2247. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2248. BuyItem(3113)
  2249. end
  2250. end
  2251. -- Twin Shadows
  2252. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2253. BuyItem(3023)
  2254. end
  2255.  
  2256.  
  2257.  
  2258. end
  2259. if "Nami" == GetObjectName(myHero) then
  2260. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  2261. local QPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,QRange,55,true,true)
  2262. if CanUseSpell(myHero,_Q) == READY then
  2263. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  2264. end
  2265. end
  2266. if GetCurrentHP(myHero)*100/GetMaxHP(myHero) < 70 then
  2267. if CanUseSpell(myHero,_W) == READY then
  2268. CastTargetSpell(myHero,_W)
  2269. end
  2270. end
  2271. if GetCurrentHP(myHero)*100/GetMaxHP(myHero) < 70 then
  2272. if CanUseSpell(myHero,_E) == READY then
  2273. CastTargetSpell(myHero,_E)
  2274. end
  2275. end
  2276. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  2277. local RPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,RRange,55,true,true)
  2278. if CanUseSpell(myHero,_R) == READY then
  2279. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2280. end
  2281. end
  2282.  
  2283.  
  2284.  
  2285. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  2286. BuyItem(2003)
  2287. end
  2288. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  2289. -- Boots of Speed
  2290. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2291. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  2292. BuyItem(1001)
  2293. end
  2294. end
  2295. -- Sorcerer's Shoes
  2296. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2297. BuyItem(3020)
  2298. end
  2299. ------------------------------------------------------------------------- Liandry's Torment Sequence
  2300. --Ruby Crystal
  2301. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2302. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2303. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  2304. BuyItem(1028)
  2305. end
  2306. end
  2307. end
  2308. --Amplifying Tome
  2309. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2310. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2311. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2312. BuyItem(1052)
  2313. end
  2314. end
  2315. end
  2316. --Blasting Wand
  2317. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2318. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  2319. BuyItem(1026)
  2320. end
  2321. end
  2322. --Liandry's Torment
  2323. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2324. BuyItem(3151)
  2325. end
  2326. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  2327. --Amplifying Tome
  2328. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2329. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2330. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2331. BuyItem(1052)
  2332. end
  2333. end
  2334. end
  2335. --Fiendish Codex
  2336. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2337. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2338. BuyItem(3108)
  2339. end
  2340. end
  2341. -- Faerie Charm
  2342. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2343. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  2344. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2345. BuyItem(1004)
  2346. end
  2347. end
  2348. end
  2349. -- Null-Magic Mantle
  2350. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2351. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  2352. BuyItem(1033)
  2353. end
  2354. end
  2355. --Amplifying Tome
  2356. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2357. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2358. BuyItem(1052)
  2359. end
  2360. end
  2361. -- Athene's Unholy Grail
  2362. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2363. BuyItem(2700)
  2364. end
  2365. ------------------------------------------------------------------------- Morellonomicon Sequence
  2366.  
  2367. --Amplifying Tome
  2368. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2369. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2370. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2371. BuyItem(1052)
  2372. end
  2373. end
  2374. end
  2375. --Fiendish Codex
  2376. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2377. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2378. BuyItem(3108)
  2379. end
  2380. end
  2381. -- Faerie Charm
  2382. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2383. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2384. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2385. BuyItem(1004)
  2386. end
  2387. end
  2388. end
  2389. -- Forbidden Idol
  2390. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2391. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2392. BuyItem(3114)
  2393. end
  2394. end
  2395. --Amplifying Tome
  2396. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2397. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2398. BuyItem(1052)
  2399. end
  2400. end
  2401. -- Morellonomicon
  2402. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2403. BuyItem(3165)
  2404. end
  2405. ------------------------------------------------------------------------- Twin Shadows Sequence
  2406.  
  2407. --Amplifying Tome
  2408. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2409. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2410. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2411. BuyItem(1052)
  2412. end
  2413. end
  2414. end
  2415. --Fiendish Codex
  2416. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2417. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2418. BuyItem(3108)
  2419. end
  2420. end
  2421. --Amplifying Tome
  2422. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2423. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2424. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2425. BuyItem(1052)
  2426. end
  2427. end
  2428. end
  2429. -- Aether Wisp
  2430. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2431. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2432. BuyItem(3113)
  2433. end
  2434. end
  2435. -- Twin Shadows
  2436. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2437. BuyItem(3023)
  2438. end
  2439. end
  2440. if "Annie" == GetObjectName(myHero) then
  2441. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  2442. if CanUseSpell(myHero,_Q) == READY then
  2443. CastTargetSpell(target,_Q)
  2444. end
  2445. end
  2446. if ValidTarget(target,QRange) and IsInDistance(myHero,QRange) then
  2447. if CanUseSpell(myHero,_E) == READY then
  2448. CastSpell(myHero,_E)
  2449. end
  2450. end
  2451. if ValidTarget(target,ERange) and IsInDistance(myHero,ERange) then
  2452. local EPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,ERange,55,true,true)
  2453. if CanUseSpell(myHero,_E) == READY then
  2454. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  2455. end
  2456. end
  2457. if ValidTarget(target,RRange) and IsInDistance(myHero,RRange) then
  2458. local RPred = GetPredictionForPlayer(myHeroPos, target,GetMoveSpeed(target),1400,250,RRange,55,true,true)
  2459. if CanUseSpell(myHero,_R) == READY then
  2460. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  2461. end
  2462. end
  2463.  
  2464.  
  2465.  
  2466. if GetItemSlot(myHero,2003) == 0 or GetItemSlot(myHero,2003) < 3 then
  2467. BuyItem(2003)
  2468. end
  2469. ------------------------------------------------------------------------- Sorcerer's Shoes Sequence
  2470. -- Boots of Speed
  2471. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2472. if GetItemSlot(myHero,1001) == 0 or GetItemSlot(myHero,1001) < 1 then
  2473. BuyItem(1001)
  2474. end
  2475. end
  2476. -- Sorcerer's Shoes
  2477. if GetItemSlot(myHero,3020) == 0 or GetItemSlot(myHero,3020) < 1 then
  2478. BuyItem(3020)
  2479. end
  2480. ------------------------------------------------------------------------- Liandry's Torment Sequence
  2481. --Ruby Crystal
  2482. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2483. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2484. if GetItemSlot(myHero,1028) == 0 or GetItemSlot(myHero,1028) < 1 then
  2485. BuyItem(1028)
  2486. end
  2487. end
  2488. end
  2489. --Amplifying Tome
  2490. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2491. if GetItemSlot(myHero,3136) == 0 or GetItemSlot(myHero,3136) < 1 then
  2492. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2493. BuyItem(1052)
  2494. end
  2495. end
  2496. end
  2497. --Blasting Wand
  2498. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2499. if GetItemSlot(myHero,1026) == 0 or GetItemSlot(myHero,1026) < 1 then
  2500. BuyItem(1026)
  2501. end
  2502. end
  2503. --Liandry's Torment
  2504. if GetItemSlot(myHero,3151) == 0 or GetItemSlot(myHero,3151) < 1 then
  2505. BuyItem(3151)
  2506. end
  2507. ------------------------------------------------------------------------- Athene's Unholy Grail Sequence
  2508. --Amplifying Tome
  2509. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2510. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2511. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2512. BuyItem(1052)
  2513. end
  2514. end
  2515. end
  2516. --Fiendish Codex
  2517. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2518. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2519. BuyItem(3108)
  2520. end
  2521. end
  2522. -- Faerie Charm
  2523. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2524. if GetItemSlot(myHero,3028) == 0 or GetItemSlot(myHero,3028) < 1 then
  2525. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2526. BuyItem(1004)
  2527. end
  2528. end
  2529. end
  2530. -- Null-Magic Mantle
  2531. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2532. if GetItemSlot(myHero,1033) == 0 or GetItemSlot(myHero,1033) < 1 then
  2533. BuyItem(1033)
  2534. end
  2535. end
  2536. --Amplifying Tome
  2537. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2538. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2539. BuyItem(1052)
  2540. end
  2541. end
  2542. -- Athene's Unholy Grail
  2543. if GetItemSlot(myHero,2700) == 0 or GetItemSlot(myHero,2700) < 1 then
  2544. BuyItem(2700)
  2545. end
  2546. ------------------------------------------------------------------------- Morellonomicon Sequence
  2547.  
  2548. --Amplifying Tome
  2549. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2550. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2551. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2552. BuyItem(1052)
  2553. end
  2554. end
  2555. end
  2556. --Fiendish Codex
  2557. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2558. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2559. BuyItem(3108)
  2560. end
  2561. end
  2562. -- Faerie Charm
  2563. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2564. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2565. if GetItemSlot(myHero,1004) == 0 or GetItemSlot(myHero,1004) < 2 then
  2566. BuyItem(1004)
  2567. end
  2568. end
  2569. end
  2570. -- Forbidden Idol
  2571. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2572. if GetItemSlot(myHero,3114) == 0 or GetItemSlot(myHero,3114) < 1 then
  2573. BuyItem(3114)
  2574. end
  2575. end
  2576. --Amplifying Tome
  2577. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2578. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2579. BuyItem(1052)
  2580. end
  2581. end
  2582. -- Morellonomicon
  2583. if GetItemSlot(myHero,3165) == 0 or GetItemSlot(myHero,3165) < 1 then
  2584. BuyItem(3165)
  2585. end
  2586. ------------------------------------------------------------------------- Twin Shadows Sequence
  2587.  
  2588. --Amplifying Tome
  2589. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2590. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2591. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2592. BuyItem(1052)
  2593. end
  2594. end
  2595. end
  2596. --Fiendish Codex
  2597. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2598. if GetItemSlot(myHero,3108) == 0 or GetItemSlot(myHero,3108) < 1 then
  2599. BuyItem(3108)
  2600. end
  2601. end
  2602. --Amplifying Tome
  2603. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2604. if GetItemSlot(myHero,1052) == 0 or GetItemSlot(myHero,1052) < 1 then
  2605. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2606. BuyItem(1052)
  2607. end
  2608. end
  2609. end
  2610. -- Aether Wisp
  2611. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2612. if GetItemSlot(myHero,3113) == 0 or GetItemSlot(myHero,3113) < 1 then
  2613. BuyItem(3113)
  2614. end
  2615. end
  2616. -- Twin Shadows
  2617. if GetItemSlot(myHero,3023) == 0 or GetItemSlot(myHero,3023) < 1 then
  2618. BuyItem(3023)
  2619. end
  2620. end
  2621.  
  2622. end)
  2623. function XlosestMinion(pos, team)
  2624. local minion = nil
  2625. for k,v in pairs(GetAllMinions()) do
  2626. local objTeam = GetTeam(v)
  2627. if not minion and v and objTeam == team then minion = v end
  2628. if minion and v and objTeam == team and GetDistanceSqr(GetOrigin(minion),pos) > GetDistanceSqr(GetOrigin(v),pos) then
  2629. minion = v
  2630. end
  2631. end
  2632. return minion
  2633. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement