Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if GetObjectName(GetMyHero()) ~= "MasterYi" then return
- else
- require 'Inspired'
- require("IOW")
- local myHero=GetMyHero()
- local delay=0
- Q_ON = {
- ["Aatrox"] = {0,_Q,0,_R}, --w3
- ["Ahri"] = {0,_E,0,_R},
- ["Akali"] = {0,_Q,0,_R},
- ["Alistar"] = {0,_Q,0,_W},
- ["Amumu"] = {0,_E,0,_R},
- ["Anivia"] = {0,_E},
- ["Annie"] = {0,_Q,0,_W,0,_R},
- ["Ashe"] = {0,_W,0,_R},
- ["Azir"] = {0,_E,0,_R},
- ["Bard"] = {0,_Q},
- ["Blitzcrank"] = {0,_Q,0,_R}, --w3
- ["Brand"] = {0,_W,0,_R},
- ["Braum"] = {0,_R},
- ["Caitlyn"] = {0,_E,0,_R}, --passive
- ["Cassiopeia"] = {0,_R},
- ["Cho'Gath"] = {0,_R},
- ["Corki"] = {0,_E},
- ["Darius"] = {0,_Q,0,_E,0,_E}, --aaw
- ["Diana"] = {0,_E}, --aa passive
- --["Dr. Mundo"] = {},
- ["Draven"] = {0,_W},
- ["Ekko"] = {0,_E}, --eaa
- ["Elise"] = {0,_E}, --other skills
- ["Evelynn"] = {0,_E,0,_R},
- ["Ezreal"] = {0,_E},
- ["Fiddlesticks"]= {0,_Q,0,_E,1500,_E},
- ["Fiora"] = {0,_Q},
- ["Fizz"] = {0,_Q,0,_R},
- ["Galio"] = {0,_Q,0,_R},
- --["Gankplank"] = {},
- ["Garen"] = {0,_R}, --q
- --["Gnar"] = {}, skills
- ["Gragas"] = {0,_E,0,_R}, --waa
- ["Graves"] = {0,_E,0,_R},
- ["Hecarim"] = {0,_R}, --aa e
- --["Heimerdinger"]= {},
- ["Irelia"] = {0,_E},
- ["Janna"] = {0,_E},
- ["JarvanIV"] = {0,_E,0,_R}, --passive
- ["Jax"] = {0,_Q,1900,_E}, --w aa?
- --["Jayce"] = {}, stuff
- ["Jinx"] = {0,_R},
- --["Kalista"] = {}, idk maybe e
- ["Karma"] = {0,_Q},
- --["Karthus"] = {}, accual r stuff
- ["Kassadin"] = {0,_R}, --w aa
- ["Katarina"] = {0,_W,0,_E},
- --["Kayle"] = {},
- --["Kennen"] = {}, maybe dodge q/e if stun
- ["KhaZix"] = {0,_Q,0,_E},
- ["Kog'Maw"] = {0,_Q},
- ["Leblanc"] = {0,_E},
- ["LeeSin"] = {0,_R}, --2q
- --["Leona"] = {}, q aa
- ["Lissandra"] = {0,_W,0,_R},
- ["Lucian"] = {0,_E},
- ["Lulu"] = {0,_W},
- ["Lux"] = {0,_Q,500,_R},
- ["Malphite"] = {0,_Q,0,_R},
- ["Malzahar"] = {0,_R},
- ["Maokai"] = {0,_Q},
- --["Master Yi"] = {},
- ["Miss Fortune"]= {0,_Q},
- --["Mordekaiser"] = {}, q3 aa
- ["Morgana"] = {0,_Q,_R},
- ["Nami"] = {0,_Q},
- --["Nasus"] = {}, q aa
- ["Nautilus"] = {0,_R},
- --["Nidalee"] = {},
- ["Nocturne"] = {0,_Q}, --r activate
- ["Nunu"] = {0,_E},
- ["Olaf"] = {0,_E},
- ["Orianna"] = {0,_R},
- ["Pantheon"] = {0,_Q,0,_W},
- ["Poppy"] = {0,_E}, --q aa
- ["Quinn"] = {0,_Q,_E}, --passive and valor
- ["Rammus"] = {0,_E},
- ["Rek'Sai"] = {0,_E},
- --["Renekton"] = {}, w aa
- ["Rengar"] = {0,_W,0,_E},
- ["Riven"] = {0,_W,0,_E}, --q,r2
- ["Rumble"] = {0,_R},
- ["Ryze"] = {0,_W},
- ["Sejuani"] = {0,_Q,0,_R},
- ["Shaco"] = {0,_Q,0,_E},
- ["Shen"] = {0,_Q,0,_E},
- --["Shyvana"] = {}, stuff
- ["Singed"] = {0,_E},
- ["Sion"] = {0,_E}, --shield maybe e
- ["Sivir"] = {0,_Q},
- ["Skarner"] = {0,_W,0,_R},
- ["Sona"] = {0,_R}, --aa+q+passive
- --["Soraka"] = {},
- ["Swain"] = {0,_Q,0,_E},
- ["Syndra"] = {0,_E,20,_R},
- --["Tahm Kench"] = {},
- ["Talon"] = {0,_E,0,_R}, -- q aa
- ["Taric"] = {0,_W,0,_E,0,_R},
- ["Teemo"] = {0,_Q}, --FUCK YOU
- ["Thresh"] = {0,_E},
- ["Tristana"] = {0,_W,0,_E,0,_R},
- --["Trundle"] = {}, aa
- ["Tryndamere"] = {0,_E},
- ["TwistedFate"] = {0,"goldcardpreattack"}, --special
- --["Twitch"] = {},
- --["Udyr"] = {},
- ["Urgot"] = {0,_E,0,_R},
- ["Varus"] = {0,_R},
- ["Vayne"] = {0,_E},
- ["Veigar"] = {0,_R},
- ["Vel'Koz"] = {0,_E},
- ["Vi"] = {0,_R}, --aa thing
- ["Viktor"] = {0,_Q}, --aa q
- ["Vladimir"] = {0,_R},
- --["Volibear"] = {}, aa q
- ["Warwick"] = {0,_Q,0,_R},
- ["Wukong"] = {0,_E},
- ["Xerath"] = {0,_E},
- ["Xin Zhao"] = {0,_R}, --aa3q
- ["Yasuo"] = {0,"yasuoq3",0,"yasuoq3w"}, --special
- ["Yorick"] = {0,_W,0,_E}, --q aa
- ["Zac"] = {0,_Q},
- ["Zed"] = {0,_W,6000,_R},
- --["Ziggs"] = {},
- --["Zilean"] = {},
- ["Zyra"] = {0,_Q,0,_E},
- }
- -- Menu
- local Config = Menu("Master Yi", "MY")
- Config:SubMenu("c", "Combo")
- Config.c:Boolean("AQ","Use awesome Q",true)
- Config.c:Boolean("E", "Use E", true)
- Config.c:Boolean("KSQ", "Killsteal with Q", false)
- -- Start
- OnLoop(function(myHero)
- if not IsDead(myHero) then
- local unit = GoS:GetTarget(1500, DAMAGE_NORMAL)
- ks()
- end
- end)
- OnProcessSpell(function(unit, spellProc)
- 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
- -- PrintChat(GetObjectType(unit)..":"..spellProc.name) --DEBUG
- for n,slot in pairs(Q_ON[GetObjectName(unit)]) do
- if n%2==1 then
- delay=slot
- elseif n>1 then
- if slot==_Q or slot==_W or slot==_E or slot==_R or spellProc.name==slot then
- --print("Looking for "..GetCastName(unit,slot)) --DEBUG
- if (spellProc.name==GetCastName(unit,slot) or spellProc.name==slot) and GoS:ValidTarget(unit,GetCastRange(myHero,_Q)*1.5) and CanUseSpell(myHero, _Q) then
- if GetObjectName(unit)=="Rengar" and not GotBuff("RengarR") then return end
- PrintChat("Q'd on "..spellProc.name.." with "..delay.."ms delay")
- GoS:DelayAction(
- function()
- --PrintChat("USED Q")
- CastTargetSpell(unit,_Q)
- end
- ,delay)
- delay=0
- end
- end
- end
- end
- end
- 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
- CastSpell(_E)
- end
- end)
- function ks()
- for i,unit in pairs(GoS:GetEnemyHeroes()) do
- 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
- CastTargetSpell(unit,_Q)
- end
- end
- end
- PrintChat("Yi Loaded - Enjoy your game - Logge")
- end -- End script
Advertisement
Add Comment
Please, Sign In to add comment