Guest User

gg no re

a guest
Sep 16th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. if GetObjectName(GetMyHero()) ~= "MasterYi" then return
  2. else
  3.  
  4. require 'Inspired'
  5. require("IOW")
  6.  
  7. local myHero=GetMyHero()
  8. local delay=0
  9.  
  10. Q_ON = {
  11. ["Aatrox"] = {0,_Q,0,_R}, --w3
  12. ["Ahri"] = {0,_E,0,_R},
  13. ["Akali"] = {0,_Q,0,_R},
  14. ["Alistar"] = {0,_Q,0,_W},
  15. ["Amumu"] = {0,_E,0,_R},
  16. ["Anivia"] = {0,_E},
  17. ["Annie"] = {0,_Q,0,_W,0,_R},
  18. ["Ashe"] = {0,_W,0,_R},
  19. ["Azir"] = {0,_E,0,_R},
  20. ["Bard"] = {0,_Q},
  21. ["Blitzcrank"] = {0,_Q,0,_R}, --w3
  22. ["Brand"] = {0,_W,0,_R},
  23. ["Braum"] = {0,_R},
  24. ["Caitlyn"] = {0,_E,0,_R}, --passive
  25. ["Cassiopeia"] = {0,_R},
  26. ["Cho'Gath"] = {0,_R},
  27. ["Corki"] = {0,_E},
  28. ["Darius"] = {0,_Q,0,_E,0,_E}, --aaw
  29. ["Diana"] = {0,_E}, --aa passive
  30. --["Dr. Mundo"] = {},
  31. ["Draven"] = {0,_W},
  32. ["Ekko"] = {0,_E}, --eaa
  33. ["Elise"] = {0,_E}, --other skills
  34. ["Evelynn"] = {0,_E,0,_R},
  35. ["Ezreal"] = {0,_E},
  36. ["Fiddlesticks"]= {0,_Q,0,_E,1500,_E},
  37. ["Fiora"] = {0,_Q},
  38. ["Fizz"] = {0,_Q,0,_R},
  39. ["Galio"] = {0,_Q,0,_R},
  40. --["Gankplank"] = {},
  41. ["Garen"] = {0,_R}, --q
  42. --["Gnar"] = {}, skills
  43. ["Gragas"] = {0,_E,0,_R}, --waa
  44. ["Graves"] = {0,_E,0,_R},
  45. ["Hecarim"] = {0,_R}, --aa e
  46. --["Heimerdinger"]= {},
  47. ["Irelia"] = {0,_E},
  48. ["Janna"] = {0,_E},
  49. ["JarvanIV"] = {0,_E,0,_R}, --passive
  50. ["Jax"] = {0,_Q,1900,_E}, --w aa?
  51. --["Jayce"] = {}, stuff
  52. ["Jinx"] = {0,_R},
  53. --["Kalista"] = {}, idk maybe e
  54. ["Karma"] = {0,_Q},
  55. --["Karthus"] = {}, accual r stuff
  56. ["Kassadin"] = {0,_R}, --w aa
  57. ["Katarina"] = {0,_W,0,_E},
  58. --["Kayle"] = {},
  59. --["Kennen"] = {}, maybe dodge q/e if stun
  60. ["KhaZix"] = {0,_Q,0,_E},
  61. ["Kog'Maw"] = {0,_Q},
  62. ["Leblanc"] = {0,_E},
  63. ["LeeSin"] = {0,_R}, --2q
  64. --["Leona"] = {}, q aa
  65. ["Lissandra"] = {0,_W,0,_R},
  66. ["Lucian"] = {0,_E},
  67. ["Lulu"] = {0,_W},
  68. ["Lux"] = {0,_Q,500,_R},
  69. ["Malphite"] = {0,_Q,0,_R},
  70. ["Malzahar"] = {0,_R},
  71. ["Maokai"] = {0,_Q},
  72. --["Master Yi"] = {},
  73. ["Miss Fortune"]= {0,_Q},
  74. --["Mordekaiser"] = {}, q3 aa
  75. ["Morgana"] = {0,_Q,_R},
  76. ["Nami"] = {0,_Q},
  77. --["Nasus"] = {}, q aa
  78. ["Nautilus"] = {0,_R},
  79. --["Nidalee"] = {},
  80. ["Nocturne"] = {0,_Q}, --r activate
  81. ["Nunu"] = {0,_E},
  82. ["Olaf"] = {0,_E},
  83. ["Orianna"] = {0,_R},
  84. ["Pantheon"] = {0,_Q,0,_W},
  85. ["Poppy"] = {0,_E}, --q aa
  86. ["Quinn"] = {0,_Q,_E}, --passive and valor
  87. ["Rammus"] = {0,_E},
  88. ["Rek'Sai"] = {0,_E},
  89. --["Renekton"] = {}, w aa
  90. ["Rengar"] = {0,_W,0,_E},
  91. ["Riven"] = {0,_W,0,_E}, --q,r2
  92. ["Rumble"] = {0,_R},
  93. ["Ryze"] = {0,_W},
  94. ["Sejuani"] = {0,_Q,0,_R},
  95. ["Shaco"] = {0,_Q,0,_E},
  96. ["Shen"] = {0,_Q,0,_E},
  97. --["Shyvana"] = {}, stuff
  98. ["Singed"] = {0,_E},
  99. ["Sion"] = {0,_E}, --shield maybe e
  100. ["Sivir"] = {0,_Q},
  101. ["Skarner"] = {0,_W,0,_R},
  102. ["Sona"] = {0,_R}, --aa+q+passive
  103. --["Soraka"] = {},
  104. ["Swain"] = {0,_Q,0,_E},
  105. ["Syndra"] = {0,_E,20,_R},
  106. --["Tahm Kench"] = {},
  107. ["Talon"] = {0,_E,0,_R}, -- q aa
  108. ["Taric"] = {0,_W,0,_E,0,_R},
  109. ["Teemo"] = {0,_Q}, --FUCK YOU
  110. ["Thresh"] = {0,_E},
  111. ["Tristana"] = {0,_W,0,_E,0,_R},
  112. --["Trundle"] = {}, aa
  113. ["Tryndamere"] = {0,_E},
  114. ["TwistedFate"] = {0,"goldcardpreattack"}, --special
  115. --["Twitch"] = {},
  116. --["Udyr"] = {},
  117. ["Urgot"] = {0,_E,0,_R},
  118. ["Varus"] = {0,_R},
  119. ["Vayne"] = {0,_E},
  120. ["Veigar"] = {0,_R},
  121. ["Vel'Koz"] = {0,_E},
  122. ["Vi"] = {0,_R}, --aa thing
  123. ["Viktor"] = {0,_Q}, --aa q
  124. ["Vladimir"] = {0,_R},
  125. --["Volibear"] = {}, aa q
  126. ["Warwick"] = {0,_Q,0,_R},
  127. ["Wukong"] = {0,_E},
  128. ["Xerath"] = {0,_E},
  129. ["Xin Zhao"] = {0,_R}, --aa3q
  130. ["Yasuo"] = {0,"yasuoq3",0,"yasuoq3w"}, --special
  131. ["Yorick"] = {0,_W,0,_E}, --q aa
  132. ["Zac"] = {0,_Q},
  133. ["Zed"] = {0,_W,6000,_R},
  134. --["Ziggs"] = {},
  135. --["Zilean"] = {},
  136. ["Zyra"] = {0,_Q,0,_E},
  137. }
  138.  
  139. -- Menu
  140. local Config = Menu("Master Yi", "MY")
  141. Config:SubMenu("c", "Combo")
  142. Config.c:Boolean("AQ","Use awesome Q",true)
  143. Config.c:Boolean("E", "Use E", true)
  144. Config.c:Boolean("KSQ", "Killsteal with Q", false)
  145.  
  146. -- Start
  147. OnLoop(function(myHero)
  148. if not IsDead(myHero) then
  149. local unit = GoS:GetTarget(1500, DAMAGE_NORMAL)
  150. ks()
  151. end
  152. end)
  153.  
  154.  
  155. OnProcessSpell(function(unit, spellProc)
  156. if not IsDead(myHero) and Config.c.AQ:Value() and GetTeam(unit) ~= GetTeam(myHero) and GetObjectType(unit) == Obj_AI_Hero and Q_ON[GetObjectName(unit)] and GoS:ValidTarget(unit,GetCastRange(myHero,_Q)*1.5) and CanUseSpell(myHero, _Q) then
  157. -- PrintChat(GetObjectType(unit)..":"..spellProc.name) --DEBUG
  158.  
  159. for n,slot in pairs(Q_ON[GetObjectName(unit)]) do
  160. if n%2==1 then
  161. delay=slot
  162. elseif n>1 then
  163. if slot==_Q or slot==_W or slot==_E or slot==_R or spellProc.name==slot then
  164. --print("Looking for "..GetCastName(unit,slot)) --DEBUG
  165. if (spellProc.name==GetCastName(unit,slot) or spellProc.name==slot) and GoS:ValidTarget(unit,GetCastRange(myHero,_Q)*1.5) and CanUseSpell(myHero, _Q) then
  166. if GetObjectName(unit)=="Rengar" and not GotBuff("RengarR") then return end
  167. PrintChat("Q'd on "..spellProc.name.." with "..delay.."ms delay")
  168. GoS:DelayAction(
  169. function()
  170. --PrintChat("USED Q")
  171. CastTargetSpell(unit,_Q)
  172. end
  173. ,delay)
  174. delay=0
  175. end
  176. end
  177. end
  178. end
  179. end
  180. if (spellProc.name:find("MasterYiBasicAttack") or spellProc.name:find("MasterYiBasicAttack2")) and Config.c.E:Value() and GoS:GetDistance(myHero,GoS:ClosestEnemy(pos))<150 and CanUseSpell(myHero, _E) then
  181. CastSpell(_E)
  182. end
  183. end)
  184.  
  185. function ks()
  186. for i,unit in pairs(GoS:GetEnemyHeroes()) do
  187. if Config.c.KSQ:Value() and CanUseSpell(myHero,_Q) and GoS:ValidTarget(unit,GetCastRange(myHero,_Q)) and GetCurrentHP(unit) < GoS:CalcDamage(myHero, unit, 0, (35*GetCastLevel(myHero,_Q)-5+GetBonusDmg(myHero)))+GetDmgShield(unit) then
  188. CastTargetSpell(unit,_Q)
  189. end
  190. end
  191. end
  192.  
  193. PrintChat("Yi Loaded - Enjoy your game - Logge")
  194. end -- End script
Advertisement
Add Comment
Please, Sign In to add comment