Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'Utils'
- require 'uiconfig'
- --Variables
- local yayo = require 'yayo'
- local uiconfig = require 'uiconfig'
- local target
- local minion
- --Menu
- CfgIrelia, menu = uiconfig.add_menu('BASIC')
- menu.keydown('combo', 'Combo', Keys.Space, 200)
- menu.keydown('cleverW','Auto W Lifesteal Minions', Keys.V)
- menu.keytoggle('smartE','Auto E Stun', Keys.T)
- menu.slider('smartW','Auto W Health Percentage', 0, 100, 50, nil, true)
- --Main
- function main()
- if IsChatOpen() == 0 and tostring(winapi.get_foreground_window()) == "League of Legends (TM) Client" then
- local target = GetWeakEnemy('PHYS', 650)
- if target ~= nil then
- if CfgIrelia.smartE then smartE()
- end
- if CfgIrelia.combo then combo()
- end
- end
- local minion = GetLowestHealthEnemyMinion(500)
- if minion ~= nil then
- if CfgIrelia.cleverW then smartW()
- end
- end
- end
- end
- --Q
- function ireliaQ()
- local target = GetWeakEnemy('PHYS', 650)
- if target ~= nil then
- if myHero.SpellTimeQ > 1.0 and GetDistance(myHero, target) <= 650 then
- CastSpellTarget('Q', target)
- end
- end
- end
- --W
- function ireliaW()
- local target = GetWeakEnemy('PHYS', 125)
- if target ~= nil then
- if myHero.SpellTimeW > 1.0 and GetDistance(myHero, target) <= 125 then
- CastSpellTarget('W', myHero)
- end
- end
- end
- --E
- function ireliaE()
- local target = GetWeakEnemy('PHYS', 425)
- if target ~= nil then
- if myHero.SpellTimeE > 1.0 and GetDistance(myHero, target) <= 425 then
- CastSpellTarget('E', target)
- end
- end
- end
- --R
- function ireliaR()
- local target = GetWeakEnemy('PHYS', 1000)
- if target ~= nil then
- if myHero.SpellTimeR > 1.0 and GetDistance(myHero, target) <= 1000 then
- CastSpellXYZ('R', target.x, target.y, target.z)
- end
- end
- end
- --Combo
- function combo()
- local target = GetWeakEnemy('PHYS', 650)
- if target ~= nil then
- ireliaQ()
- ireliaW()
- ireliaE()
- ireliaR()
- end
- end
- --SmartE
- function smartE()
- local target = GetWeakEnemy('PHYS', 425)
- if target ~= nil then
- if ((myHero.health/myHero.maxHealth)*100) < ((target.health/target.maxHealth)*100) then
- ireliaE()
- end
- end
- end
- --SmartW
- function smartW()
- local minion = GetLowestHealthEnemyMinion(500)
- if minion ~= nil then
- if CfgIrelia.cleverW then
- if myHero.health <= myHero.maxHealth*(CfgIrelia.smartW / 100) then
- CastSpellTarget('W', myHero)
- end
- end
- end
- end
- SetTimerCallback('main')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement