naturus

morgana

Dec 23rd, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 67.66 KB | None | 0 0
  1. --[[
  2.  
  3.     Script Name: MORGANA MASTER
  4.         Author: kokosik1221
  5.     Last Version: 2.13
  6.     13.12.2014
  7.    
  8. ]]--
  9.  
  10. if myHero.charName ~= "Morgana" then return end
  11.  
  12. _G.AUTOUPDATE = true
  13. _G.USESKINHACK = false
  14.  
  15.  
  16. local version = 2.13
  17. local SCRIPT_NAME = "MorganaMaster"
  18. local SOURCELIB_URL = "https://raw.github.com/TheRealSource/public/master/common/SourceLib.lua"
  19. local SOURCELIB_PATH = LIB_PATH.."SourceLib.lua"
  20. local prodstatus = false
  21. if FileExist(SOURCELIB_PATH) then
  22.     require("SourceLib")
  23. else
  24.     DOWNLOADING_SOURCELIB = true
  25.     DownloadFile(SOURCELIB_URL, SOURCELIB_PATH, function() PrintChat("Required libraries downloaded successfully, please reload") end)
  26. end
  27. if DOWNLOADING_SOURCELIB then PrintChat("Downloading required libraries, please wait...") return end
  28. if _G.AUTOUPDATE then
  29.      SourceUpdater(SCRIPT_NAME, version, "raw.github.com", "/kokosik1221/bol/master/"..SCRIPT_NAME..".lua", SCRIPT_PATH .. GetCurrentEnv().FILE_NAME, "/kokosik1221/bol/master/"..SCRIPT_NAME..".version"):CheckUpdate()
  30. end
  31. local RequireI = Require("SourceLib")
  32. RequireI:Add("vPrediction", "https://raw.github.com/Hellsing/BoL/master/common/VPrediction.lua")
  33. RequireI:Add("SOW", "https://raw.github.com/Hellsing/BoL/master/common/SOW.lua")
  34. if VIP_USER then
  35.     RequireI:Add("Prodiction", "https://bitbucket.org/Klokje/public-klokjes-bol-scripts/raw/ec830facccefb3b52212dba5696c08697c3c2854/Test/Prodiction/Prodiction.lua")
  36.     prodstatus = true
  37. end
  38. RequireI:Check()
  39. if RequireI.downloadNeeded == true then return end
  40.  
  41.  
  42. local Shieldspells = {
  43.   ['AatroxQ'] = {charName = "Aatrox", spellSlot = "Q", SpellType = "skillshot"},
  44.   ['AatroxE'] = {charName = "Aatrox", spellSlot = "E", SpellType = "skillshot"},
  45.   ['AhriOrbofDeception'] = {charName = "Ahri", spellSlot = "Q", SpellType = "skillshot"},
  46.   ['AhriFoxFire'] = {charName = "Ahri", spellSlot = "W", SpellType = "skillshot"},
  47.   ['AhriSeduce'] = {charName = "Ahri", spellSlot = "E", SpellType = "skillshot"},
  48.   ['AhriTumble'] = {charName = "Ahri", spellSlot = "R", SpellType = "skillshot"},
  49.   ['AkaliMota'] = {charName = "Akali", spellSlot = "Q", SpellType = "castcel"},
  50.   ['AkaliShadowSwipe'] = {charName = "Akali", spellSlot = "E", SpellType = "skillshot"},
  51.   ['AkaliShadowDance'] = {charName = "Akali", spellSlot = "R", SpellType = "castcel"},
  52.   ['Pulverize'] = {charName = "Alistar", spellSlot = "Q", SpellType = "castcel"},
  53.   ['Headbutt'] = {charName = "Alistar", spellSlot = "W", SpellType = "castcel"},
  54.   ['BandageToss'] = {charName = "Amumu", spellSlot = "Q", SpellType = "skillshot"},
  55.   ['AuraofDespair'] = {charName = "Amumu", spellSlot = "W", SpellType = "skillshot"},
  56.   ['Tantrum'] = {charName = "Amumu", spellSlot = "E", SpellType = "skillshot"},
  57.   ['CurseoftheSadMummy'] = {charName = "Amumu", spellSlot = "R", SpellType = "skillshot"},
  58.   ['FlashFrost'] = {charName = "Anivia", spellSlot = "Q", SpellType = "skillshot"},
  59.   ['Frostbite'] = {charName = "Anivia", spellSlot = "E", SpellType = "castcel"},
  60.   ['GlacialStorm'] = {charName = "Anivia", spellSlot = "R", SpellType = "skillshot"},
  61.   ['Disintegrate'] = {charName = "Annie", spellSlot = "Q", SpellType = "castcel"},
  62.   ['Incinerate'] = {charName = "Annie", spellSlot = "W", SpellType = "castcel"},
  63.   ['InfernalGuardian'] = {charName = "Annie", spellSlot = "R", SpellType = "castcel"},
  64.   ['Volley'] = {charName = "Ashe", spellSlot = "W", SpellType = "skillshot"},
  65.   ['EnchantedCrystalArrow'] = {charName = "Ashe", spellSlot = "R", SpellType = "skillshot"},
  66.   ['RocketGrab'] = {charName = "Blitzcrank", spellSlot = "Q", SpellType = "skillshot"},
  67.   ['PowerFist'] = {charName = "Blitzcrank", spellSlot = "E", SpellType = "skillshot"},
  68.   ['StaticField'] = {charName = "Blitzcrank", spellSlot = "R", SpellType = "skillshot"},
  69.   ['BrandBlaze'] = {charName = "Brand", spellSlot = "Q", SpellType = "skillshot"},
  70.   ['BrandFissure'] = {charName = "Brand", spellSlot = "W", SpellType = "skillshot"},
  71.   ['BrandConflagration'] = {charName = "Brand", spellSlot = "E", SpellType = "castcel"},
  72.   ['BrandWildfire'] = {charName = "Brand", spellSlot = "R", SpellType = "castcel"},
  73.   ['BraumQ'] = {charName = "Braum", spellSlot = "Q", SpellType = "skillshot"},
  74.   ['BraumQMissle'] = {charName = "Braum", spellSlot = "Q", SpellType = "skillshot"},
  75.   ['BraumR'] = {charName = "Braum", spellSlot = "R", SpellType = "skillshot"},
  76.   ['CaitlynPiltoverPeacemaker'] = {charName = "Caitlyn", spellSlot = "Q", SpellType = "skillshot"},
  77.   ['CaitlynYordleTrap'] = {charName = "Caitlyn", spellSlot = "W", SpellType = "skillshot"},
  78.   ['CaitlynEntrapment'] = {charName = "Caitlyn", spellSlot = "E", SpellType = "skillshot"},
  79.   ['CaitlynAceintheHole'] = {charName = "Caitlyn", spellSlot = "R", SpellType = "castcel"},
  80.   ['CassiopeiaNoxiousBlast'] = {charName = "Cassiopeia", spellSlot = "Q", SpellType = "skillshot"},
  81.   ['CassiopeiaMiasma'] = {charName = "Cassiopeia", spellSlot = "W", SpellType = "skillshot"},
  82.   ['CassiopeiaTwinFang'] = {charName = "Cassiopeia", spellSlot = "E", SpellType = "castcel"},
  83.   ['CassiopeiaPetrifyingGaze'] = {charName = "Cassiopeia", spellSlot = "R", SpellType = "skillshot"},
  84.   ['Rupture'] = {charName = "Chogath", spellSlot = "Q", SpellType = "skillshot"},
  85.   ['FeralScream'] = {charName = "Chogath", spellSlot = "W", SpellType = "skillshot"},
  86.   ['VorpalSpikes'] = {charName = "Chogath", spellSlot = "E", SpellType = "castcel"},
  87.   ['Feast'] = {charName = "Chogath", spellSlot = "R", SpellType = "castcel"},
  88.   ['PhosphorusBomb'] = {charName = "Corki", spellSlot = "Q", SpellType = "skillshot"},
  89.   ['CarpetBomb'] = {charName = "Corki", spellSlot = "W", SpellType = "skillshot"},
  90.   ['GGun'] = {charName = "Corki", spellSlot = "E", SpellType = "skillshot"},
  91.   ['MissileBarrage'] = {charName = "Corki", spellSlot = "R", SpellType = "skillshot"},
  92.   ['DariusCleave'] = {charName = "Darius", spellSlot = "Q", SpellType = "castcel"},
  93.   ['DariusAxeGrabCone'] = {charName = "Darius", spellSlot = "E", SpellType = "castcel"},
  94.   ['DariusExecute'] = {charName = "Darius", spellSlot = "R", SpellType = "castcel"},
  95.   ['DianaArc'] = {charName = "Diana", spellSlot = "Q", SpellType = "skillshot"},
  96.   ['DianaOrbs'] = {charName = "Diana", spellSlot = "W", SpellType = "skillshot"},
  97.   ['DianaVortex'] = {charName = "Diana", spellSlot = "E", SpellType = "skillshot"},
  98.   ['DianaTeleport'] = {charName = "Diana", spellSlot = "R", SpellType = "castcel"},
  99.   ['InfectedCleaverMissileCast'] = {charName = "DrMundo", spellSlot = "Q"},
  100.   ['BurningAgony'] = {charName = "DrMundo", spellSlot = "W", SpellType = "skillshot"},
  101.   ['DravenDoubleShot'] = {charName = "Draven", spellSlot = "E", SpellType = "castcel"},
  102.   ['DravenRCast'] = {charName = "Draven", spellSlot = "R", SpellType = "castcel"},
  103.   ['EliseHumanQ'] = {charName = "Elise", spellSlot = "Q", SpellType = "castcel"},
  104.   ['EliseHumanW'] = {charName = "Elise", spellSlot = "W", SpellType = "skillshot"},
  105.   ['EliseHumanE'] = {charName = "Elise", spellSlot = "E", SpellType = "skillshot"},
  106.   ['EliseSpiderQCast'] = {charName = "Elise", spellSlot = "Q", SpellType = "skillshot"},
  107.   ['EliseSpiderW'] = {charName = "Elise", spellSlot = "W", SpellType = "skillshot"},
  108.   ['EliseSpiderEInitial'] = {charName = "Elise", spellSlot = "E", SpellType = "castcel"},
  109.   ['elisespideredescent'] = {charName = "Elise", spellSlot = "E", SpellType = "castcel"},
  110.   ['EvelynnQ'] = {charName = "Evelynn", spellSlot = "Q", SpellType = "skillshot"},
  111.   ['EvelynnE'] = {charName = "Evelynn", spellSlot = "E", SpellType = "castcel"},
  112.   ['EvelynnR'] = {charName = "Evelynn", spellSlot = "R", SpellType = "skillshot"},
  113.   ['EzrealMysticShot'] = {charName = "Ezreal", spellSlot = "Q", SpellType = "skillshot"},
  114.   ['EzrealEssenceFlux'] = {charName = "Ezreal", spellSlot = "W", SpellType = "skillshot"},
  115.   ['EzrealArcaneShift'] = {charName = "Ezreal", spellSlot = "E", SpellType = "castcel"},
  116.   ['EzrealTruehotBarrage'] = {charName = "Ezreal", spellSlot = "R", SpellType = "skillshot"},
  117.   ['Terrify'] = {charName = "FiddleSticks", spellSlot = "Q", SpellType = "castcel"},
  118.   ['Drain'] = {charName = "FiddleSticks", spellSlot = "W", SpellType = "castcel"},
  119.   ['FiddlesticksDarkWind'] = {charName = "FiddleSticks", spellSlot = "E", SpellType = "castcel"},
  120.   ['Crowstorm'] = {charName = "FiddleSticks", spellSlot = "R", SpellType = "skillshot"},
  121.   ['FioraQ'] = {charName = "Fiora", spellSlot = "Q", SpellType = "castcel"},
  122.   ['FioraDance'] = {charName = "Fiora", spellSlot = "R", SpellType = "castcel"},
  123.   ['FizzPiercingStrike'] = {charName = "Fizz", spellSlot = "Q", SpellType = "castcel"},
  124.   ['FizzJump'] = {charName = "Fizz", spellSlot = "E", SpellType = "skillshot"},
  125.   ['FizzJumptwo'] = {charName = "Fizz", spellSlot = "E", SpellType = "skillshot"},
  126.   ['FizzMarinerDoom'] = {charName = "Fizz", spellSlot = "R", SpellType = "skillshot"},
  127.   ['GalioResoluteSmite'] = {charName = "Galio", spellSlot = "Q", SpellType = "skillshot"},
  128.   ['GalioRighteousGust'] = {charName = "Galio", spellSlot = "E", SpellType = "skillshot"},
  129.   ['GalioIdolOfDurand'] = {charName = "Galio", spellSlot = "R", SpellType = "skillshot"},
  130.   ['Parley'] = {charName = "Gangplank", spellSlot = "Q", SpellType = "castcel"},
  131.   ['CannonBarrage'] = {charName = "Gangplank", spellSlot = "R", SpellType = "skillshot"},
  132.   ['GarenQ'] = {charName = "Garen", spellSlot = "Q", SpellType = "skillshot"},
  133.   ['GarenE'] = {charName = "Garen", spellSlot = "E", SpellType = "skillshot"},
  134.   ['GarenR'] = {charName = "Garen", spellSlot = "R", SpellType = "castcel"},
  135.   ['GnarQ'] = {charName = "Gnar", spellSlot = "Q", SpellType = "skillshot"},
  136.   ['GnarBigQ'] = {charName = "Gnar", spellSlot = "Q", SpellType = "skillshot"},
  137.   ['GnarWStack'] = {charName = "Gnar", spellSlot = "W", SpellType = "castcel"},
  138.   ['GnarBigW'] = {charName = "Gnar", spellSlot = "W", SpellType = "skillshot"},
  139.   ['GnarBigE'] = {charName = "Gnar", spellSlot = "E", SpellType = "skillshot"},
  140.   ['GnarBigR'] = {charName = "Gnar", spellSlot = "R", SpellType = "skillshot"},
  141.   ['GragasBarrelRoll'] = {charName = "Gragas", spellSlot = "Q", SpellType = "skillshot"},
  142.   ['gragasbarrelrolltoggle'] = {charName = "Gragas", spellSlot = "Q", SpellType = "skillshot"},
  143.   ['GragasBodySlam'] = {charName = "Gragas", spellSlot = "E", SpellType = "skillshot"},
  144.   ['GragasExplosiveCask'] = {charName = "Gragas", spellSlot = "R", SpellType = "skillshot"},
  145.   ['GravesClusterShot'] = {charName = "Graves", spellSlot = "Q", SpellType = "skillshot"},
  146.   ['GravesSmokeGrenade'] = {charName = "Graves", spellSlot = "W", SpellType = "skillshot"},
  147.   ['gravessmokegrenadeboom'] = {charName = "Graves", spellSlot = "W", SpellType = "skillshot"},
  148.   ['GravesChargeShot'] = {charName = "Graves", spellSlot = "R", SpellType = "skillshot"},
  149.   ['HecarimRapidSlash'] = {charName = "Hecarim", spellSlot = "Q", SpellType = "skillshot"},
  150.   ['HecarimW'] = {charName = "Hecarim", spellSlot = "W", SpellType = "skillshot"},
  151.   ['HecarimUlt'] = {charName = "Hecarim", spellSlot = "R", SpellType = "skillshot"},
  152.   ['HeimerdingerQ'] = {charName = "Heimerdinger", spellSlot = "Q", SpellType = "skillshot"},
  153.   ['HeimerdingerW'] = {charName = "Heimerdinger", spellSlot = "W", SpellType = "skillshot"},
  154.   ['HeimerdingerE'] = {charName = "Heimerdinger", spellSlot = "E", SpellType = "skillshot"},
  155.   ['IreliaGatotsu'] = {charName = "Irelia", spellSlot = "Q", SpellType = "castcel"},
  156.   ['IreliaEquilibriumStrike'] = {charName = "Irelia", spellSlot = "E", SpellType = "castcel"},
  157.   ['IreliaTranscendentBlades'] = {charName = "Irelia", spellSlot = "R", SpellType = "skillshot"},
  158.   ['HowlingGale'] = {charName = "Janna", spellSlot = "Q", SpellType = "skillshot"},
  159.   ['SowTheWind'] = {charName = "Janna", spellSlot = "W", SpellType = "castcel"},
  160.   ['JarvanIVDragonStrike'] = {charName = "JarvanIV", spellSlot = "Q", SpellType = "skillshot"},
  161.   ['JarvanIVDemacianStandard'] = {charName = "JarvanIV", spellSlot = "E", SpellType = "skillshot"},
  162.   ['JarvanIVCataclysm'] = {charName = "JarvanIV", spellSlot = "R", SpellType = "skillshot"},
  163.   ['JaxLeapStrike'] = {charName = "Jax", spellSlot = "Q", SpellType = "castcel"},
  164.   ['JaxCounterStrike'] = {charName = "Jax", spellslot = "E", SpellType = "skillshot"},
  165.   ['JayceToTheSkies'] = {charName = "Jayce", spellSlot = "Q", SpellType = "castcel"},
  166.   ['JayceStaticField'] = {charName = "Jayce", spellSlot = "W", SpellType = "skillshot"},
  167.   ['JayceThunderingBlow'] = {charName = "Jayce", spellSlot = "E", SpellType = "castcel"},
  168.   ['jayceshockblast'] = {charName = "Jayce", spellSlot = "Q", SpellType = "skillshot"},
  169.   ['jaycehypercharge'] = {charName = "Jayce", spellSlot = "W", SpellType = "skillshot"},
  170.   ['jayceaccelerationgate'] = {charName = "Jayce", spellSlot = "E", SpellType = "skillshot"},
  171.   ['JinxW'] = {charName = "Jinx", spellSlot = "W", SpellType = "skillshot"},
  172.   ['JinxRWrapper'] = {charName = "Jinx", spellSlot = "R", SpellType = "skillshot"},
  173.   ['LayWaste'] = {charName = "Karthus", spellSlot = "Q", SpellType = "skillshot"},
  174.   ['WallOfPain'] = {charName = "Karthus", spellSlot = "W", SpellType = "skillshot"},
  175.   ['Defile'] = {charName = "Karthus", spellSlot = "E", SpellType = "skillshot"},
  176.   ['FallenOne'] = {charName = "Karthus", spellSlot = "R", SpellType = "skillshot"},
  177.   ['KarmaQ'] = {charName = "Karma", spellSlot = "Q", SpellType = "skillshot"},
  178.   ['KarmaSpiritBind'] = {charName = "Karma", spellSlot = "W", SpellType = "castcel"},
  179.   ['NullLance'] = {charName = "Kassadin", spellSlot = "Q", SpellType = "castcel"},
  180.   ['NetherBlade'] = {charName = "Kassadin", spellSlot = "W", SpellType = "skillshot"},
  181.   ['ForcePulse'] = {charName = "Kassadin", spellSlot = "E", SpellType = "skillshot"},
  182.   ['RiftWalk'] = {charName = "Kassadin", spellSlot = "R", SpellType = "skillshot"},
  183.   ['KatarinaQ'] = {charName = "Katarina", spellSlot = "Q", SpellType = "castcel"},
  184.   ['KatarinaW'] = {charName = "Katarina", spellSlot = "W", SpellType = "skillshot"},
  185.   ['KatarinaE'] = {charName = "Katarina", spellSlot = "E", SpellType = "castcel"},
  186.   ['KatarinaR'] = {charName = "Katarina", spellSlot = "R", SpellType = "skillshot"},
  187.   ['JudicatorReckoning'] = {charName = "Kayle", spellSlot = "Q", SpellType = "castcel"},
  188.   ['JudicatorRighteousFury'] = {charName = "Kayle", spellSlot = "E", SpellType = "skillshot"},
  189.   ['KennenShurikenHurlMissile1'] = {charName = "Kennen", spellSlot = "Q"},
  190.   ['KennenBringTheLight'] = {charName = "Kennen", spellSlot = "W", SpellType = "skillshot"},
  191.   ['KennenShurikenStorm ']= {charName = "Kennen", spellSlot = "R", SpellType = "skillshot"},
  192.   ['KhazixQ'] = {charName = "Khazix", spellSlot = "Q", SpellType = "castcel"},
  193.   ['KhazixW'] = {charName = "Khazix", spellSlot = "W", SpellType = "skillshot"},
  194.   ['KhazixE'] = {charName = "Khazix", spellSlot = "E", SpellType = "skillshot"},
  195.   ['khazixqlong'] = {charName = "Khazix", spellSlot = "Q", SpellType = "castcel"},
  196.   ['khazixwlong'] = {charName = "Khazix", spellSlot = "W", SpellType = "skillshot"},
  197.   ['khazixelong'] = {charName = "Khazix", spellSlot = "E", SpellType = "skillshot"},
  198.   ['KogMawCausticSpittle'] = {charName = "KogMaw", spellSlot = "Q", SpellType = "skillshot"},
  199.   ['KogMawBioArcanBarrage'] = {charName = "KogMaw", spellSlot = "W", SpellType = "skillshot"},
  200.   ['KogMawVoidOoze'] = {charName = "KogMaw", spellSlot = "E", SpellType = "skillshot"},
  201.   ['KogMawLivingArtillery'] = {charName = "KogMaw", spellSlot = "R", SpellType = "skillshot"},
  202.   ['LeblancChaosOrb'] = {charName = "Leblanc", spellSlot = "Q", SpellType = "castcel"},
  203.   ['LeblancSlide'] = {charName = "Leblanc", spellSlot = "W", SpellType = "skillshot"},
  204.   ['LeblancSoulShackle'] = {charName = "Leblanc", spellSlot = "E", SpellType = "skillshot"},
  205.   ['LeblancChaosOrbM'] = {charName = "Leblanc", spellSlot = "R", SpellType = "castcel"},
  206.   ['LeblancSlideM'] = {charName = "Leblanc", spellSlot = "R", SpellType = "skillshot"},
  207.   ['LeblancSoulShackleM'] = {charName = "Leblanc", spellSlot = "R", SpellType = "skillshot"},
  208.   ['BlindMonkQOne'] = {charName = "LeeSin", spellSlot = "Q", SpellType = "skillshot"},
  209.   ['BlindMonkWOne'] = {charName = "LeeSin", spellSlot = "W", SpellType = "skillshot"},
  210.   ['BlindMonkEOne'] = {charName = "LeeSin", spellSlot = "E", SpellType = "skillshot"},
  211.   ['BlindMonkRKick'] = {charName = "LeeSin", spellSlot = "R", SpellType = "castcel"},
  212.   ['blindmonkqtwo'] = {charName = "LeeSin", spellSlot = "Q", SpellType = "castcel"},
  213.   ['blindmonkwtwo'] = {charName = "LeeSin", spellSlot = "W", SpellType = "skillshot"},
  214.   ['blindmonketwo'] = {charName = "LeeSin", spellSlot = "E", SpellType = "skillshot"},
  215.   ['LeonaShieldOfDaybreak'] = {charName = "Leona", spellSlot = "Q", SpellType = "skillshot"},
  216.   ['LeonaZenithBlade'] = {charName = "Leona", spellSlot = "E", SpellType = "skillshot"},
  217.   ['LeonaZenithBladeMissle'] = {charName = "Leona", spellSlot = "E", SpellType = "skillshot"},
  218.   ['LeonaSolarFlare'] = {charName = "Leona", spellSlot = "R", SpellType = "skillshot"},
  219.   ['LissandraQ'] = {charName = "Lissandra", spellSlot = "Q", SpellType = "skillshot"},
  220.   ['LissandraW'] = {charName = "Lissandra", spellSlot = "W", SpellType = "skillshot"},
  221.   ['LissandraE'] = {charName = "Lissandra", spellSlot = "E", SpellType = "skillshot"},
  222.   ['LissandraR'] = {charName = "Lissandra", spellSlot = "R", SpellType = "skillshot"},
  223.   ['LucianQ']= {charName = "Lucian", spellSlot = "Q", SpellType = "castcel"},
  224.   ['LucianW']= {charName = "Lucian", spellSlot = "W", SpellType = "skillshot"},
  225.   ['LucianR'] = {charName = "Lucian", spellSlot = "R", SpellType = "skillshot"},
  226.   ['LuluQ'] = {charName = "Lulu", spellSlot = "Q", SpellType = "skillshot"},
  227.   ['LuluW'] = {charName = "Lulu", spellSlot = "W", SpellType = "castcel"},
  228.   ['LuluE'] = {charName = "Lulu", spellSlot = "E", SpellType = "castcel"},
  229.   ['LuxLightBinding'] = {charName = "Lux", spellSlot = "Q", SpellType = "skillshot"},
  230.   ['LuxLightStrikeKugel'] = {charName = "Lux", spellSlot = "E", SpellType = "skillshot"},
  231.   ['luxlightstriketoggle'] = {charName = "Lux", spellSlot = "E", SpellType = "skillshot"},
  232.   ['LuxMaliceCannon'] = {charName = "Lux", spellSlot = "R", SpellType = "skillshot"},
  233.   ['SeismicShard'] = {charName = "Malphite", spellSlot = "Q", SpellType = "castcel"},
  234.   ['Landslide'] = {charName = "Malphite", spellSlot = "E", SpellType = "skillshot"},
  235.   ['UFSlash'] = {charName = "Malphite", spellSlot = "R", SpellType = "skillshot"},
  236.   ['AlZaharCalloftheVoid'] = {charName = "Malzahar", spellSlot = "Q", SpellType = "castcel"},
  237.   ['AlZaharNullZone'] = {charName = "Malzahar", spellSlot = "W", SpellType = "skillshot"},
  238.   ['AlZaharMaleficVisions'] = {charName = "Malzahar", spellSlot = "E", SpellType = "castcel"},
  239.   ['AlZaharNetherGrasp'] = {charName = "Malzahar", spellSlot = "R", SpellType = "castcel"},
  240.   ['MaokaiTrunkLine'] = {charName = "Maokai", spellSlot = "Q", SpellType = "skillshot"},
  241.   ['MaokaiUnstableGrowth'] = {charName = "Maokai", spellSlot = "W", SpellType = "castcel"},
  242.   ['MaokaiSapling2'] = {charName = "Maokai", spellSlot = "E", SpellType = "skillshot"},
  243.   ['MaokaiDrain3'] = {charName = "Maokai", spellSlot = "R", SpellType = "skillshot"},
  244.   ['AlphaStrike'] = {charName = "MasterYi", spellSlot = "Q", SpellType = "castcel"},
  245.   ['MissFortuneRicochetShot'] = {charName = "MissFortune", spellSlot = "Q", SpellType = "castcel"},
  246.   ['MissFortuneScattershot'] = {charName = "MissFortune", spellSlot = "E", SpellType = "skillshot"},
  247.   ['MissFortuneBulletTime'] = {charName = "MissFortune", spellSlot = "R", SpellType = "skillshot"},
  248.   ['MordekaiserMaceOfSpades'] = {charName = "Mordekaiser", spellSlot = "Q", SpellType = "skillshot"},
  249.   ['MordekaiserSyphoneOfDestruction'] = {charName = "Mordekaiser", spellSlot = "E", SpellType = "skillshot"},
  250.   ['MordekaiserChildrenOfTheGrave'] = {charName = "Mordekaiser", spellSlot = "R", SpellType = "castcel"},
  251.   ['DarkBindingMissile'] = {charName = "Morgana", spellSlot = "Q", SpellType = "skillshot"},
  252.   ['TormentedSoil'] = {charName = "Morgana", spellSlot = "W", SpellType = "skillshot"},
  253.   ['SoulShackles'] = {charName = "Morgana", spellSlot = "R", SpellType = "skillshot"},
  254.   ['NamiQ'] = {charName = "Nami", spellSlot = "Q", SpellType = "skillshot"},
  255.   ['NamiW'] = {charName = "Nami", spellSlot = "W", SpellType = "castcel"},
  256.   ['NamiE'] = {charName = "Nami", spellSlot = "E", SpellType = "skillshot"},
  257.   ['NamiR'] = {charName = "Nami", spellSlot = "R", SpellType = "skillshot"},
  258.   ['NasusQ'] = {charName = "Nasus", spellSlot = "Q", SpellType = "skillshot"},
  259.   ['NasusW'] = {charName = "Nasus", spellSlot = "W", SpellType = "castcel"},
  260.   ['NasusE'] = {charName = "Nasus", spellSlot = "E", SpellType = "skillshot"},
  261.   ['NautilusAnchorDrag'] = {charName = "Nautilus", spellSlot = "Q", SpellType = "skillshot"},
  262.   ['NautilusSplashZone'] = {charName = "Nautilus", spellSlot = "E", SpellType = "skillshot"},
  263.   ['NautilusGandLine'] = {charName = "Nautilus", spellSlot = "R", SpellType = "castcel"},
  264.   ['JavelinToss'] = {charName = "Nidalee", spellSlot = "Q", SpellType = "skillshot"},
  265.   ['Bushwhack'] = {charName = "Nidalee", spellSlot = "W", SpellType = "skillshot"},
  266.   ['PrimalSurge'] = {charName = "Nidalee", spellSlot = "E", SpellType = "skillshot"},
  267.   ['Takedown'] = {charName = "Nidalee", spellSlot = "Q", SpellType = "skillshot"},
  268.   ['Pounce'] = {charName = "Nidalee", spellSlot = "W", SpellType = "skillshot"},
  269.   ['Swipe'] = {charName = "Nidalee", spellSlot = "E", SpellType = "skillshot"},
  270.   ['NocturneDuskbringer'] = {charName = "Nocturne", spellSlot = "Q", SpellType = "skillshot"},
  271.   ['NocturneUnspeakableHorror'] = {charName = "Nocturne", spellSlot = "E", SpellType = "castcel"},
  272.   ['IceBlast'] = {charName = "Nunu", spellSlot = "E", SpellType = "castcel"},
  273.   ['AbsoluteZero'] = {charName = "Nunu", spellSlot = "R", SpellType = "skillshot"},
  274.   ['OlafAxeThrowCast'] = {charName = "Olaf", spellSlot = "Q", SpellType = "skillshot"},
  275.   ['OlafRecklessStrike'] = {charName = "Olaf", spellSlot = "E", SpellType = "castcel"},
  276.   ['OrianaIzunaCommand'] = {charName = "Orianna", spellSlot = "Q", SpellType = "skillshot"},
  277.   ['OrianaDissonanceCommand'] = {charName = "Orianna", spellSlot = "W", SpellType = "skillshot"},
  278.   ['OrianaDetonateCommand'] = {charName = "Orianna", spellSlot = "R", SpellType = "skillshot"},
  279.   ['Pantheon_Throw'] = {charName = "Pantheon", spellSlot = "Q", SpellType = "castcel"},
  280.   ['Pantheon_LeapBash'] = {charName = "Pantheon", spellSlot = "W", SpellType = "castcel"},
  281.   ['Pantheon_Heartseeker'] = {charName = "Pantheon", spellSlot = "E", SpellType = "skillshot"},
  282.   ['PoppyDevastatingBlow'] = {charName = "Poppy", spellSlot = "Q", SpellType = "skillshot"},
  283.   ['PoppyHeroicCharge'] = {charName = "Poppy", spellSlot = "E", SpellType = "castcel"},
  284.   ['QuinnQ'] = {charName = "Quinn", spellSlot = "Q", SpellType = "skillshot"},
  285.   ['QuinnE'] = {charName = "Quinn", spellSlot = "E", SpellType = "castcel"},
  286.   ['PowerBall'] = {charName = "Rammus", spellSlot = "Q", SpellType = "skillshot"},
  287.   ['PuncturingTaunt'] = {charName = "Rammus", spellSlot = "E", SpellType = "castcel"},
  288.   ['Tremors2'] = {charName = "Rammus", spellSlot = "R", SpellType = "skillshot"},
  289.   ['RenektonCleave'] = {charName = "Renekton", spellSlot = "Q", SpellType = "skillshot"},
  290.   ['RenektonPreExecute'] = {charName = "Renekton", spellSlot = "W", SpellType = "skillshot"},
  291.   ['RenektonSliceAndDice'] = {charName = "Renekton", spellSlot = "E", SpellType = "skillshot"},
  292.   ['RengarQ'] = {charName = "Rengar", spellSlot = "Q", SpellType = "skillshot"},
  293.   ['RengarE'] = {charName = "Rengar", spellSlot = "E", SpellType = "skillshot"},
  294.   ['RivenTriCleav'] = {charName = "Riven", spellSlot = "Q", SpellType = "skillshot"},
  295.   ['RivenTriCleave_03'] = {charName = "Riven", spellSlot = "Q", SpellType = "skillshot"},
  296.   ['RivenMartyr'] = {charName = "Riven", spellSlot = "W", SpellType = "skillshot"},
  297.   ['RivenFengShuiEngine'] = {charName = "Riven", spellSlot = "R", SpellType = "skillshot"},
  298.   ['rivenizunablade'] = {charName = "Riven", spellSlot = "R", SpellType = "skillshot"},
  299.   ['RumbleFlameThrower'] = {charName = "Rumble", spellSlot = "Q", SpellType = "skillshot"},
  300.   ['RumbeGrenade'] = {charName = "Rumble", spellSlot = "E", SpellType = "skillshot"},
  301.   ['RumbleCarpetBomb'] = {charName = "Rumble", spellSlot = "R", SpellType = "skillshot"},
  302.   ['Overload'] = {charName = "Ryze", spellSlot = "Q", SpellType = "castcel"},
  303.   ['RunePrison'] = {charName = "Ryze", spellSlot = "W", SpellType = "castcel"},
  304.   ['SpellFlux'] = {charName = "Ryze", spellSlot = "E", SpellType = "castcel"},
  305.   ['SejuaniArcticAssault'] = {charName = "Sejuani", spellSlot = "Q", SpellType = "skillshot"},
  306.   ['SejuaniGlacialPrisonStart'] = {charName = "Sejuani", spellSlot = "R", SpellType = "skillshot"},
  307.   ['Deceive'] = {charName = "Shaco", spellSlot = "Q", SpellType = "skillshot"},
  308.   ['JackInTheBox'] = {charName = "Shaco", spellSlot = "W", SpellType = "skillshot"},
  309.   ['TwoShivPoisen'] = {charName = "Shaco", spellSlot = "E", SpellType = "castcel"},
  310.   ['ShenVorpalStar'] = {charName = "Shen", spellSlot = "Q", SpellType = "castcel"},
  311.   ['ShenShadowDash'] = {charName = "Shen", spellSlot = "E", SpellType = "skillshot"},
  312.   ['ShyvanaFireball'] = {charName = "Shyvana", spellSlot = "E", SpellType = "skillshot"},
  313.   ['ShyvanaTransformCast'] = {charName = "Shyvana", spellSlot = "R", SpellType = "skillshot"},
  314.   ['PoisenTrail'] = {charName = "Singed", spellSlot = "Q", SpellType = "skillshot"},
  315.   ['MegaAdhesive'] = {charName = "Singed", spellSlot = "W", SpellType = "skillshot"},
  316.   ['Fling'] = {charName = "Singed", spellSlot = "E", SpellType = "castcel"},
  317.   ['CrypticGaze'] = {charName = "Sion", spellSlot = "Q", SpellType = "castcel"},
  318.   ['SivirQ'] = {charName = "Sivir", spellSlot = "Q", SpellType = "skillshot"},
  319.   ['SkarnerVirulentSlash'] = {charName = "Skarner", spellSlot = "Q", SpellType = "skillshot"},
  320.   ['SkarnerFracture'] = {charName = "Skarner", spellSlot = "E", SpellType = "skillshot"},
  321.   ['SkarnerImpale'] = {charName = "Skarner", spellSlot = "R", SpellType = "castcel"},
  322.   ['SonaHymnofValor'] = {charName = "Sona", spellSlot = "Q", SpellType = "castcel"},
  323.   ['SonaAriaofPerseverance'] = {charName = "Sona", spellSlot = "W", SpellType = "skillshot"},
  324.   ['SonaSongofDiscord'] = {charName = "Sona", spellSlot = "E", SpellType = "skillshot"},
  325.   ['SonaCrescendo'] = {charName = "Sona", spellSlot = "R", SpellType = "skillshot"},
  326.   ['Starcall'] = {charName = "Soraka", spellSlot = "Q", SpellType = "skillshot"},
  327.   ['InfuseWrapper'] = {charName = "Soraka", spellSlot = "E", SpellType = "castcel"},
  328.   ['SwainDecrepify'] = {charName = "Swain", spellSlot = "Q", SpellType = "castcel"},
  329.   ['SwainShadowGrasp'] = {charName = "Swain", spellSlot = "W", SpellType = "skillshot"},
  330.   ['SwainTorment'] = {charName = "Swain", spellSlot = "E", SpellType = "castcel"},
  331.   ['SwainMetamorphism'] = {charName = "Swain", spellSlot = "R", SpellType = "skillshot"},
  332.   ['SyndraQ']= {charName = "Syndra", spellSlot = "Q", SpellType = "skillshot"},
  333.   ['SyndraW ']= {charName = "Syndra", spellSlot = "W", SpellType = "skillshot"},
  334.   ['SyndraE'] = {charName = "Syndra", spellSlot = "E", SpellType = "skillshot"},
  335.   ['SyndraR'] = {charName = "Syndra", spellSlot = "R", SpellType = "castcel"},
  336.   ['TalonRake'] = {charName = "Talon", spellSlot = "W", SpellType = "skillshot"},
  337.   ['TalonCutthroat'] = {charName = "Talon", spellSlot = "E", SpellType = "castcel"},
  338.   ['Shatter'] = {charName = "Taric", spellSlot = "W", SpellType = "skillshot"},
  339.   ['Dazzle'] = {charName = "Taric", spellSlot = "E", SpellType = "castcel"},
  340.   ['TaricHammerSmash'] = {charName = "Taric", spellSlot = "R", SpellType = "skillshot"},
  341.   ['BlindingDart'] = {charName = "Teemo", spellSlot = "Q", SpellType = "castcel"},
  342.   ['ThreshQ'] = {charName = "Thresh", spellSlot = "Q", SpellType = "skillshot"},
  343.   ['ThreshE'] = {charName = "Thresh", spellSlot = "E", SpellType = "skillshot"},
  344.   ['ThreshRPenta'] = {charName = "Thresh", spellSlot = "R", SpellType = "skillshot"},
  345.   ['RocketJump'] = {charName = "Tristana", spellSlot = "W", SpellType = "skillshot"},
  346.   ['DetonatingShot'] = {charName = "Tristana", spellSlot = "E", SpellType = "castcel"},
  347.   ['BusterShot'] = {charName = "Tristana", spellSlot = "R", SpellType = "castcel"},
  348.   ['TrundleTrollSmash'] = {charName = "Trundle", spellSlot = "Q", SpellType = "castcel"},
  349.   ['TrundlePain'] = {charName = "Trundle", spellSlot = "R", SpellType = "castcel"},
  350.   ['slashCast'] = {charName = "Tryndamere", spellSlot = "E", SpellType = "skillshot"},
  351.   ['WildCards'] = {charName = "TwistedFate", spellSlot = "Q", SpellType = "skillshot"},
  352.   ['TwitchVenomCask'] = {charName = "Twitch", spellSlot = "W", SpellType = "skillshot"},
  353.   ['TwitchVenomCaskMissle'] = {charName = "Twitch", spellSlot = "W", SpellType = "skillshot"},
  354.   ['Expunge'] = {charName = "Twitch", spellSlot = "E", SpellType = "skillshot"},
  355.   ['UdyrTigerStance'] = {charName = "Udyr", spellSlot = "Q", SpellType = "skillshot"},
  356.   ['UdyrTurtleStance'] = {charName = "Udyr", spellSlot = "W", SpellType = "skillshot"},
  357.   ['UdyrBearStance'] = {charName = "Udyr", spellSlot = "E", SpellType = "skillshot"},
  358.   ['UdyrPhoenixStance'] = {charName = "Udyr", spellSlot = "R", SpellType = "skillshot"},
  359.   ['UrgotHeatseekingMissile'] = {charName = "Urgot", spellSlot = "Q", SpellType = "skillshot"},
  360.   ['UrgotPlasmaGrenade'] = {charName = "Urgot", spellSlot = "E", SpellType = "skillshot"},
  361.   ['UrgotSwap2'] = {charName = "Urgot", spellSlot = "R", SpellType = "castcel"},
  362.   ['VarusQ'] = {charName = "Varus", spellSlot = "Q", SpellType = "skillshot"},
  363.   ['VarusE'] = {charName = "Varus", spellSlot = "E", SpellType = "skillshot"},
  364.   ['VarusR'] = {charName = "Varus", spellSlot = "R", SpellType = "skillshot"},
  365.   ['VayneCondemm'] = {charName = "Vayne", spellSlot = "E", SpellType = "castcel"},
  366.   ['VeigarBalefulStrike'] = {charName = "Veigar", spellSlot = "Q", SpellType = "castcel"},
  367.   ['VeigarDarkMatter'] = {charName = "Veigar", spellSlot = "W", SpellType = "skillshot"},
  368.   ['VeigarEventHorizon'] = {charName = "Veigar", spellSlot = "E", SpellType = "skillshot"},
  369.   ['VeigarPrimordialBurst'] = {charName = "Veigar", spellSlot = "R", SpellType = "castcel"},
  370.   ['VelkozQ'] = {charName = "Velkoz", spellSlot = "Q", SpellType = "castcel"},
  371.   ['VelkozQMissle'] = {charName = "Velkoz", spellSlot = "Q", SpellType = "castcel"},
  372.   ['velkozqplitactive'] = {charName = "Velkoz", spellSlot = "Q", SpellType = "castcel"},
  373.   ['VelkozW'] = {charName = "Velkoz", spellSlot = "W", SpellType = "skillshot"},
  374.   ['VelkozE'] = {charName = "Velkoz", spellSlot = "E", SpellType = "skillshot"},
  375.   ['VelkozR'] = {charName = "Velkoz", spellSlot = "R", SpellType = "skillshot"},
  376.   ['ViQ'] = {charName = "Vi", spellSlot = "Q", SpellType = "skillshot"},
  377.   ['ViR'] = {charName = "Vi", spellSlot = "R", SpellType = "castcel"},
  378.   ['ViktorPowerTransfer'] = {charName = "Viktor", spellSlot = "Q", SpellType = "castcel"},
  379.   ['ViktorGravitonField'] = {charName = "Viktor", spellSlot = "W", SpellType = "skillshot"},
  380.   ['ViktorDeathRa'] = {charName = "Viktor", spellSlot = "E", SpellType = "skillshot"},
  381.   ['ViktorChaosStorm'] = {charName = "Viktor", spellSlot = "R", SpellType = "skillshot"},
  382.   ['VladimirTransfusion'] = {charName = "Vladimir", spellSlot = "Q", SpellType = "castcel"},
  383.   ['VladimirTidesofBlood'] = {charName = "Vladimir", spellSlot = "E", SpellType = "skillshot"},
  384.   ['VladimirHemoplague'] = {charName = "Vladimir", spellSlot = "R", SpellType = "skillshot"},
  385.   ['VolibearQ'] = {charName = "Volibear", spellSlot = "Q", SpellType = "skillshot"},
  386.   ['VolibearW'] = {charName = "Volibear", spellSlot = "W", SpellType = "castcel"},
  387.   ['VolibearE'] = {charName = "Volibear", spellSlot = "E", SpellType = "skillshot"},
  388.   ['HungeringStrike'] = {charName = "Warwick", spellSlot = "Q", SpellType = "castcel"},
  389.   ['InfiniteDuress'] = {charName = "Warwick", spellSlot = "R", SpellType = "castcel"},
  390.   ['MonkeyKingDoubleAttack'] = {charName = "MonkeyKing", spellSlot = "Q", SpellType = "skillshot"},
  391.   ['MonkeyKingNimbus'] = {charName = "MonkeyKing", spellSlot = "E", SpellType = "castcel"},
  392.   ['MonkeyKingSpinToWin'] = {charName = "MonkeyKing", spellSlot = "R", SpellType = "skillshot"},
  393.   ['monkeykingspintowinleave'] = {charName = "MonkeyKing", spellSlot = "R", SpellType = "skillshot"},
  394.   ['XerathArcanoPulseChargeUp'] = {charName = "Xerath", spellSlot = "Q", SpellType = "skillshot"},
  395.   ['XerathArcaneBarrage2'] = {charName = "Xerath", spellSlot = "W", SpellType = "skillshot"},
  396.   ['XerathMageSpear'] = {charName = "Xerath", spellSlot = "E", SpellType = "skillshot"},
  397.   ['XerathLocusOfPower2'] = {charName = "Xerath", spellSlot = "R", SpellType = "castcel"},
  398.   ['XenZhaoSweep'] = {charName = "Xin Zhao", spellSlot = "E", SpellType = "castcel"},
  399.   ['XenZhaoParry'] = {charName = "Xin Zhao", spellSlot = "R", SpellType = "skillshot"},
  400.   ['YasuoQW'] = {charName = "Yasuo", spellSlot = "Q", SpellType = "skillshot"},
  401.   ['yasuoq2w'] = {charName = "Yasuo", spellSlot = "Q", SpellType = "skillshot"},
  402.   ['yasuoq3w'] = {charName = "Yasuo", spellSlot = "Q", SpellType = "skillshot"},
  403.   ['YasuoDashWrapper'] = {charName = "Yasuo", spellSlot = "E", SpellType = "castcel"},
  404.   ['YasuoRKnockUpComboW'] = {charName = "Yasuo", spellSlot = "R", SpellType = "skillshot"},
  405.   ['YorickSpectral'] = {charName = "Yorick", spellSlot = "Q", SpellType = "skillshot"},
  406.   ['YorickDecayed'] = {charName = "Yorick", spellSlot = "W", SpellType = "skillshot"},
  407.   ['YorickRavenous'] = {charName = "Yorick", spellSlot = "E", SpellType = "castcel"},
  408.   ['ZacQ'] = {charName = "Zac", spellSlot = "Q", SpellType = "skillshot"},
  409.   ['ZacW'] = {charName = "Zac", spellSlot = "W", SpellType = "skillshot"},
  410.   ['ZacE'] = {charName = "Zac", spellSlot = "E", SpellType = "skillshot"},
  411.   ['ZedShuriken'] = {charName = "Zed", spellSlot = "Q", SpellType = "skillshot"},
  412.   ['zedult'] = {charName = "Zed", spellSlot = "R", SpellType = "castcel"},
  413.   ['ZiggsQ'] = {charName = "Ziggs", spellSlot = "Q", SpellType = "skillshot"},
  414.   ['ZiggsW'] = {charName = "Ziggs", spellSlot = "W", SpellType = "skillshot"},
  415.   ['ZiggsE'] = {charName = "Ziggs", spellSlot = "E", SpellType = "skillshot"},
  416.   ['ZiggsR'] = {charName = "Ziggs", spellSlot = "R", SpellType = "skillshot"},
  417.   ['TimeBomb'] = {charName = "Zilean", spellSlot = "Q", SpellType = "castcel"},
  418.   ['TimeWarp'] = {charName = "Zilean", spellSlot = "E", SpellType = "castcel"},
  419.   ['ZyraQFissure'] = {charName = "Zyra", spellSlot = "Q", SpellType = "skillshot"},
  420.   ['ZyraGraspingRoots'] = {charName = "Zyra", spellSlot = "E", SpellType = "skillshot"},
  421.   ['ZyraBrambleZone'] = {charName = "Zyra", spellSlot = "R", SpellType = "skillshot"},
  422. }
  423.  
  424. local skills = {
  425.     skillQ = {name = "Dark Binding", range = 1200, speed = 1200, delay = 0, width = 60},
  426.     skillW = {name = "Tormented Soil", range = 900, speed = 1200, delay = 0.150, width = 105},
  427.     skillE = {name = "Black Shield", range = 750},
  428.     skillR = {name = "Soul Shackles", range = 600},
  429. }
  430.  
  431. local Items = {
  432.     BWC = { id = 3144, range = 400, reqTarget = true, slot = nil },
  433.     DFG = { id = 3128, range = 750, reqTarget = true, slot = nil },
  434.     HGB = { id = 3146, range = 400, reqTarget = true, slot = nil },
  435.     BFT = { id = 3188, range = 750, reqTarget = true, slot = nil },
  436. }
  437.  
  438. local QReady, WReady, EReady, RReady, IReady, sac, mma = false, false, false, false, false, false, false
  439. local abilitylvl, lastskin = 0, 0
  440. local EnemyMinions = minionManager(MINION_ENEMY, skills.skillQ.range, myHero, MINION_SORT_MAXHEALTH_DEC)
  441. local JungleMinions = minionManager(MINION_JUNGLE, skills.skillQ.range, myHero, MINION_SORT_MAXHEALTH_DEC)
  442. local IgniteKey = nil
  443. local Spells = {_Q,_W,_E,_R}
  444. local Spells2 = {"Q","W","E","R"}
  445. local killstring = {}
  446. local cclist = {'Stun', 'BandageToss', 'CurseoftheSadMummy', 'FlashFrostSpell', 'EnchantedCrystalArrow', 'braumstundebuff', 'caitlynyordletrapdebuff', 'CassiopeiaPetrifyingGaze', 'EliseHumanE', 'GragasBodySlam', 'HeimerdingerE', 'IreliaEquilibriumStrike', 'JaxCounterStrike', 'JinxE', 'karmaspiritbindroot', 'LeonaShieldOfDaybreak', 'LeonaZenithBladeMissle', 'lissandraenemy2', 'LuxLightBindingMis', 'AlZaharNetherGrasp', 'maokaiunstablegrowthroot', 'DarkBindingMissile', 'namiqdebuff', 'Pantheon_LeapBash', 'RenektonPreExecute', 'RengarE', 'RivenMartyr', 'RunePrison', 'sejuaniglacialprison', 'CrypticGaze', 'SonaR', 'swainshadowgrasproot', 'Dazzle', 'TFW', 'udyrbearstuncheck', 'VarusR', 'VeigarStun', 'velkozestun', 'viktorgravitonfieldstun', 'infiniteduresssound', 'XerathMageSpear', 'zyragraspingrootshold', 'zhonyasringshield'}
  447.  
  448. function OnLoad()
  449.     print("<b><font color=\"#6699FF\">Morgana Master:</font></b> <font color=\"#FFFFFF\">Good luck and give me feedback!</font>")
  450.     Menu()
  451.     if _G.MMA_Loaded then
  452.         print("<b><font color=\"#6699FF\">Morgana Master:</font></b> <font color=\"#FFFFFF\">MMA Support Loaded.</font>")
  453.         mma = true
  454.     end
  455.     if _G.AutoCarry then
  456.         print("<b><font color=\"#6699FF\">Morgana Master:</font></b> <font color=\"#FFFFFF\">SAC Support Loaded.</font>")
  457.         sac = true
  458.     end
  459.     if heroManager.iCount < 10 then
  460.         print("<font color=\"#FFFFFF\">Too few champions to arrange priority.</font>")
  461.     elseif heroManager.iCount == 6 then
  462.         arrangePrioritysTT()
  463.     else
  464.         arrangePrioritys()
  465.     end
  466. end
  467.  
  468. function OnTick()
  469.     Check()
  470.     if Cel ~= nil and MenuMorg.comboConfig.CEnabled then
  471.         caa()
  472.         Combo()
  473.     end
  474.     if Cel ~= nil and (MenuMorg.harrasConfig.HEnabled or MenuMorg.harrasConfig.HTEnabled) then
  475.         Harrass()
  476.     end
  477.     if MenuMorg.farm.Freeze or MenuMorg.farm.LaneClear then
  478.         local Mode = MenuMorg.farm.Freeze and "Freeze" or "LaneClear"
  479.         Farm(Mode)
  480.     end
  481.     if MenuMorg.jf.JFEnabled then
  482.         JungleFarmm()
  483.     end
  484.     if MenuMorg.prConfig.AZ then
  485.         autozh()
  486.     end
  487.     if MenuMorg.prConfig.ALS then
  488.         autolvl()
  489.     end
  490.     KillSteall()
  491. end
  492.        
  493. function Menu()
  494.     VP = VPrediction(true)
  495.     SOWi = SOW(VP)
  496.     MenuMorg = scriptConfig("Morgana Master "..version, "Morgana Master "..version)
  497.     MenuMorg:addSubMenu("Orbwalking", "Orbwalking")
  498.     SOWi:LoadToMenu(MenuMorg.Orbwalking)
  499.     TargetSelector = TargetSelector(TARGET_LESS_CAST_PRIORITY, skills.skillQ.range, DAMAGE_MAGIC)
  500.     TargetSelector.name = "Morgana"
  501.     MenuMorg:addSubMenu("Target selector", "STS")
  502.     MenuMorg.STS:addTS(TargetSelector)
  503.     --[[--- Combo --]]--
  504.     MenuMorg:addSubMenu("[Morgana Master]: Combo Settings", "comboConfig")
  505.     MenuMorg.comboConfig:addParam("USEQ", "Use " .. skills.skillQ.name .. " (Q)", SCRIPT_PARAM_ONOFF, true)
  506.     MenuMorg.comboConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  507.     MenuMorg.comboConfig:addParam("USEW", "Use " .. skills.skillW.name .. " (W)", SCRIPT_PARAM_ONOFF, true)
  508.     MenuMorg.comboConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  509.     MenuMorg.comboConfig:addParam("USEE", "Use " .. skills.skillE.name .. " (E)", SCRIPT_PARAM_ONOFF, true)
  510.     MenuMorg.comboConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  511.     MenuMorg.comboConfig:addParam("USER", "Use " .. skills.skillR.name .. " (R)", SCRIPT_PARAM_ONOFF, true)
  512.     MenuMorg.comboConfig:addParam("ENEMYTOR", "Min Enemies to Cast R: ", SCRIPT_PARAM_SLICE, 2, 1, 5, 0)
  513.     MenuMorg.comboConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  514.     MenuMorg.comboConfig:addParam("uaa", "Use AA in Combo", SCRIPT_PARAM_ONOFF, true)
  515.     MenuMorg.comboConfig:addParam("ST", "Focus Selected Target", SCRIPT_PARAM_ONOFF, false)
  516.     MenuMorg.comboConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  517.     MenuMorg.comboConfig:addParam("CEnabled", "Full Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
  518.     MenuMorg.comboConfig:addParam("manac", "Min. Mana To Cast Combo", SCRIPT_PARAM_SLICE, 10, 0, 100, 0)
  519.     --[[--- Harras --]]--
  520.     MenuMorg:addSubMenu("[Morgana Master]: Harras Settings", "harrasConfig")
  521.     MenuMorg.harrasConfig:addParam("QH", "Harras Use " .. skills.skillQ.name .. " (Q)", SCRIPT_PARAM_ONOFF, true)
  522.     MenuMorg.harrasConfig:addParam("WH", "Harras Use " .. skills.skillW.name .. " (W)", SCRIPT_PARAM_ONOFF, true)
  523.     MenuMorg.harrasConfig:addParam("HWS", "Use 'W' Only On Stunned Enemy", SCRIPT_PARAM_ONOFF, true)
  524.     MenuMorg.harrasConfig:addParam("HEnabled", "Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("K"))
  525.     MenuMorg.harrasConfig:addParam("HTEnabled", "Harass Toggle", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("L"))
  526.     MenuMorg.harrasConfig:addParam("manah", "Min. Mana To Harrass", SCRIPT_PARAM_SLICE, 60, 0, 100, 0)
  527.     --[[--- Kill Steal --]]--
  528.     MenuMorg:addSubMenu("[Morgana Master]: KS Settings", "ksConfig")
  529.     MenuMorg.ksConfig:addParam("IKS", "Use Ignite To KS", SCRIPT_PARAM_ONOFF, true)
  530.     MenuMorg.ksConfig:addParam("QKS", "Use " .. skills.skillQ.name .. " (Q)", SCRIPT_PARAM_ONOFF, true)
  531.     MenuMorg.ksConfig:addParam("WKS", "Use " .. skills.skillW.name .. " (W)", SCRIPT_PARAM_ONOFF, true)
  532.     MenuMorg.ksConfig:addParam("RKS", "Use " .. skills.skillR.name .. " (R)", SCRIPT_PARAM_ONOFF, false)
  533.     --[[--- Farm --]]--
  534.     MenuMorg:addSubMenu("[Morgana Master]: Farm Settings", "farm")
  535.     MenuMorg.farm:addParam("QF", "Use " .. skills.skillQ.name .. " (Q)", SCRIPT_PARAM_LIST, 4, { "No", "Freezing", "LaneClear", "Both" })
  536.     MenuMorg.farm:addParam("WF",  "Use " .. skills.skillW.name .. " (W)", SCRIPT_PARAM_LIST, 3, { "No", "Freezing", "LaneClear", "Both" })
  537.     MenuMorg.farm:addParam("Freeze", "Farm Freezing", SCRIPT_PARAM_ONKEYDOWN, false,   string.byte("C"))
  538.     MenuMorg.farm:addParam("LaneClear", "Farm LaneClear", SCRIPT_PARAM_ONKEYDOWN, false,   string.byte("V"))
  539.     MenuMorg.farm:addParam("manaf", "Min. Mana To Farm", SCRIPT_PARAM_SLICE, 40, 0, 100, 0)
  540.     --[[--- Jungle Farm --]]--
  541.     MenuMorg:addSubMenu("[Morgana Master]: Jungle Farm", "jf")
  542.     MenuMorg.jf:addParam("QJF", "Use " .. skills.skillQ.name .. " (Q)", SCRIPT_PARAM_ONOFF, true)
  543.     MenuMorg.jf:addParam("WJF", "Use " .. skills.skillW.name .. " (W)", SCRIPT_PARAM_ONOFF, true)
  544.     MenuMorg.jf:addParam("JFEnabled", "Jungle Farm", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  545.     MenuMorg.jf:addParam("manajf", "Min. Mana To Jungle Farm", SCRIPT_PARAM_SLICE, 40, 0, 100, 0)
  546.     --[[--- Shield --]]--
  547.     MenuMorg:addSubMenu("[Morgana Master]: Shield Settings", "exConfig")
  548.     MenuMorg.exConfig:addParam("UAS", "Use Auto Shield", SCRIPT_PARAM_ONOFF, true)
  549.     MenuMorg.exConfig:addParam("UASA", "Use Auto Shield To Ally", SCRIPT_PARAM_ONOFF, true)
  550.     MenuMorg.exConfig:addSubMenu("Enemy Skills", "ES")
  551.     MenuMorg.exConfig:addSubMenu("Shield Ally Use On", "uso")
  552.     Enemies = GetEnemyHeroes()
  553.     for i,enemy in pairs (Enemies) do
  554.         for j,spell in pairs (Spells) do
  555.             if Shieldspells[enemy:GetSpellData(spell).name] then
  556.                 MenuMorg.exConfig.ES:addParam(tostring(enemy:GetSpellData(spell).name),"Block "..tostring(enemy.charName).." Spell "..tostring(Spells2[j]),SCRIPT_PARAM_ONOFF,true)
  557.             end
  558.         end
  559.     end
  560.     for i = 1, heroManager.iCount do
  561.         local hero = heroManager:GetHero(i)
  562.         if hero.team == myHero.team then
  563.             MenuMorg.exConfig.uso:addParam(hero.charName, hero.charName, SCRIPT_PARAM_ONOFF, true)
  564.         end
  565.     end
  566.     --[[ Gapcloser ]]--
  567.     MenuMorg:addSubMenu("[Morgana Master]: GapCloser Settings", "gpConfig")
  568.     AntiGapcloser(MenuMorg.gpConfig, Gapcloser)
  569.     --[[--- Drawing --]]--
  570.     MenuMorg:addSubMenu("[Morgana Master]: Draw Settings", "drawConfig")
  571.     MenuMorg.drawConfig:addParam("DLC", "Use Lag-Free Circles", SCRIPT_PARAM_ONOFF, true)
  572.     MenuMorg.drawConfig:addParam("DD", "Draw DMG Text", SCRIPT_PARAM_ONOFF, true)
  573.     MenuMorg.drawConfig:addParam("DST", "Draw Selected Target", SCRIPT_PARAM_ONOFF, true)
  574.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  575.     MenuMorg.drawConfig:addParam("DSE", "Draw Stunned Enemy", SCRIPT_PARAM_ONOFF, true)
  576.     MenuMorg.drawConfig:addParam("DSEC", "Draw Stunned Enemy Color", SCRIPT_PARAM_COLOR, {255,0,240,0})
  577.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  578.     MenuMorg.drawConfig:addParam("DQL", "Draw Q Collision Line", SCRIPT_PARAM_ONOFF, true)
  579.     MenuMorg.drawConfig:addParam("DQLC", "Draw Q Collision Color", SCRIPT_PARAM_COLOR, {150,40,4,4})
  580.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  581.     MenuMorg.drawConfig:addParam("DQR", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
  582.     MenuMorg.drawConfig:addParam("DQRC", "Draw Q Range Color", SCRIPT_PARAM_COLOR, {255,0,0,255})
  583.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  584.     MenuMorg.drawConfig:addParam("DWR", "Draw W Range", SCRIPT_PARAM_ONOFF, true)
  585.     MenuMorg.drawConfig:addParam("DWRC", "Draw W Range Color", SCRIPT_PARAM_COLOR, {255,100,0,255})
  586.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  587.     MenuMorg.drawConfig:addParam("DER", "Draw E Range", SCRIPT_PARAM_ONOFF, true)
  588.     MenuMorg.drawConfig:addParam("DERC", "Draw E Range Color", SCRIPT_PARAM_COLOR, {255,255,0,0})
  589.     MenuMorg.drawConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  590.     MenuMorg.drawConfig:addParam("DRR", "Draw R Range", SCRIPT_PARAM_ONOFF, true)
  591.     MenuMorg.drawConfig:addParam("DRRC", "Draw R Range Color", SCRIPT_PARAM_COLOR, {255, 0, 255, 0})
  592.     --[[--- Misc --]]--
  593.     MenuMorg:addSubMenu("[Morgana Master]: Misc Settings", "prConfig")
  594.     MenuMorg.prConfig:addParam("pc", "Use Packets To Cast Spells(VIP)", SCRIPT_PARAM_ONOFF, false)
  595.     MenuMorg.prConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  596.     MenuMorg.prConfig:addParam("skin", "Use change skin", SCRIPT_PARAM_ONOFF, false)
  597.     MenuMorg.prConfig:addParam("skin1", "Skin change(VIP)", SCRIPT_PARAM_SLICE, 7, 1, 7)
  598.     MenuMorg.prConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  599.     MenuMorg.prConfig:addParam("AZ", "Use Auto Zhonya", SCRIPT_PARAM_ONOFF, true)
  600.     MenuMorg.prConfig:addParam("AZHP", "Min HP To Cast Zhonya", SCRIPT_PARAM_SLICE, 20, 0, 100, 0)
  601.     MenuMorg.prConfig:addParam("AZMR", "Must Have 0 Enemy In Range:", SCRIPT_PARAM_SLICE, 900, 0, 1500, 0)
  602.     MenuMorg.prConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  603.     MenuMorg.prConfig:addParam("ALS", "Auto lvl skills", SCRIPT_PARAM_ONOFF, false)
  604.     MenuMorg.prConfig:addParam("AL", "Auto lvl sequence", SCRIPT_PARAM_LIST, 1, { "R>Q>W>E", "R>Q>E>W", "R>W>Q>E", "R>W>E>Q", "R>E>Q>W", "R>E>W>Q" })
  605.     MenuMorg.prConfig:addParam("qqq", "--------------------------------------------------------", SCRIPT_PARAM_INFO,"")
  606.     MenuMorg.prConfig:addParam("pro", "Prodiction To Use:", SCRIPT_PARAM_LIST, 1, {"VPrediction","Prodiction"})
  607.     MenuMorg.prConfig:addParam("vphit", "VPrediction HitChance", SCRIPT_PARAM_LIST, 3, {"[0]Target Position","[1]Low Hitchance", "[2]High Hitchance", "[3]Target slowed/close", "[4]Target immobile", "[5]Target dashing" })
  608.     --[[-- PermShow --]]--
  609.     MenuMorg.comboConfig:permaShow("CEnabled")
  610.     MenuMorg.harrasConfig:permaShow("HEnabled")
  611.     MenuMorg.harrasConfig:permaShow("HTEnabled")
  612.     MenuMorg.prConfig:permaShow("AZ")
  613.     if myHero:GetSpellData(SUMMONER_1).name:find("summonerdot") then IgniteKey = SUMMONER_1
  614.         elseif myHero:GetSpellData(SUMMONER_2).name:find("summonerdot") then IgniteKey = SUMMONER_2
  615.     end
  616.     _G.oldDrawCircle = rawget(_G, 'DrawCircle')
  617.     _G.DrawCircle = DrawCircle2
  618.     TargetTable = {
  619.         AP = {
  620.             "Annie", "Ahri", "Akali", "Anivia", "Annie", "Brand", "Cassiopeia", "Diana", "Evelynn", "FiddleSticks", "Fizz", "Gragas", "Heimerdinger", "Karthus",
  621.             "Kassadin", "Katarina", "Kayle", "Kennen", "Leblanc", "Lissandra", "Lux", "Malzahar", "Mordekaiser", "Morgana", "Nidalee", "Orianna",
  622.             "Ryze", "Sion", "Swain", "Syndra", "Teemo", "TwistedFate", "Veigar", "Viktor", "Vladimir", "Xerath", "Ziggs", "Zyra", "Velkoz"
  623.         }, 
  624.         Support = {
  625.             "Alistar", "Blitzcrank", "Janna", "Karma", "Leona", "Lulu", "Nami", "Nunu", "Sona", "Soraka", "Taric", "Thresh", "Zilean", "Braum"
  626.         }, 
  627.         Tank = {
  628.             "Amumu", "Chogath", "DrMundo", "Galio", "Hecarim", "Malphite", "Maokai", "Nasus", "Rammus", "Sejuani", "Nautilus", "Shen", "Singed", "Skarner", "Volibear",
  629.             "Warwick", "Yorick", "Zac"
  630.         },
  631.         AD_Carry = {
  632.             "Ashe", "Caitlyn", "Corki", "Draven", "Ezreal", "Graves", "Jayce", "Jinx", "KogMaw", "Lucian", "MasterYi", "MissFortune", "Pantheon", "Quinn", "Shaco", "Sivir",
  633.             "Talon","Tryndamere", "Tristana", "Twitch", "Urgot", "Varus", "Vayne", "Yasuo", "Zed"
  634.         },
  635.         Bruiser = {
  636.             "Aatrox", "Darius", "Elise", "Fiora", "Gangplank", "Garen", "Irelia", "JarvanIV", "Jax", "Khazix", "LeeSin", "Nocturne", "Olaf", "Poppy",
  637.             "Renekton", "Rengar", "Riven", "Rumble", "Shyvana", "Trundle", "Udyr", "Vi", "MonkeyKing", "XinZhao"
  638.         }
  639.     }
  640. end
  641.  
  642. function caa()
  643.     if MenuMorg.comboConfig.uaa then
  644.         SOWi:EnableAttacks()
  645.     elseif not MenuMorg.comboConfig.uaa then
  646.         SOWi:DisableAttacks()
  647.     end
  648. end
  649.  
  650. function GetCustomTarget()
  651.     TargetSelector:update()
  652.     if _G.MMA_Target and _G.MMA_Target.type == myHero.type then
  653.         return _G.MMA_Target
  654.     end
  655.     if _G.AutoCarry and _G.AutoCarry.Crosshair and _G.AutoCarry.Attack_Crosshair and _G.AutoCarry.Attack_Crosshair.target and _G.AutoCarry.Attack_Crosshair.target.type == myHero.type then
  656.         return _G.AutoCarry.Attack_Crosshair.target
  657.     end
  658.     return TargetSelector.target
  659. end
  660.  
  661. function Check()
  662.     if SelectedTarget ~= nil and ValidTarget(SelectedTarget) then
  663.         Cel = SelectedTarget
  664.     else
  665.         Cel = GetCustomTarget()
  666.     end
  667.     if sac or mma then
  668.         SOWi.Menu.Enabled = false
  669.     end
  670.     SOWi:ForceTarget(Cel)
  671.     zhonyaslot = GetInventorySlotItem(3157)
  672.     zhonyaready = (zhonyaslot ~= nil and myHero:CanUseSpell(zhonyaslot) == READY)
  673.     QReady = (myHero:CanUseSpell(_Q) == READY)
  674.     WReady = (myHero:CanUseSpell(_W) == READY)
  675.     EReady = (myHero:CanUseSpell(_E) == READY)
  676.     RReady = (myHero:CanUseSpell(_R) == READY)
  677.     IReady = (IgniteKey ~= nil and myHero:CanUseSpell(IgniteKey) == READY)
  678.     if MenuMorg.prConfig.skin and VIP_USER and _G.USESKINHACK then
  679.         if MenuMorg.prConfig.skin1 ~= lastSkin then
  680.             GenModelPacket("Morgana", MenuMorg.prConfig.skin1)
  681.             lastSkin = MenuMorg.prConfig.skin1
  682.         end
  683.     end
  684.     if MenuMorg.drawConfig.DLC then _G.DrawCircle = DrawCircle2 else _G.DrawCircle = _G.oldDrawCircle end
  685. end
  686.  
  687. function EnemyCount(point, range)
  688.     local count = 0
  689.     for _, enemy in pairs(GetEnemyHeroes()) do
  690.         if enemy and not enemy.dead and GetDistance(point, enemy) <= range then
  691.             count = count + 1
  692.         end
  693.     end            
  694.     return count
  695. end
  696.  
  697. function UseItems(unit)
  698.     if unit ~= nil then
  699.         for _, item in pairs(Items) do
  700.             item.slot = GetInventorySlotItem(item.id)
  701.             if item.slot ~= nil then
  702.                 if item.reqTarget and GetDistance(unit) < item.range then
  703.                     CastSpell(item.slot, unit)
  704.                 elseif not item.reqTarget then
  705.                     if (GetDistance(unit) - getHitBoxRadius(myHero) - getHitBoxRadius(unit)) < 50 then
  706.                         CastSpell(item.slot)
  707.                     end
  708.                 end
  709.             end
  710.         end
  711.     end
  712. end
  713.  
  714. function getHitBoxRadius(target)
  715.     return GetDistance(target.minBBox, target.maxBBox)/2
  716. end
  717.  
  718. function Combo()
  719.     UseItems(Cel)
  720.     if MenuMorg.comboConfig.USEQ then
  721.         if QReady and MenuMorg.comboConfig.USEQ and ValidTarget(Cel, skills.skillQ.range) then
  722.             CastQ(Cel)
  723.         end
  724.     end
  725.     if MenuMorg.comboConfig.USEW then
  726.         if WReady and MenuMorg.comboConfig.USEW and ValidTarget(Cel, skills.skillW.range) then
  727.             if TargetHaveBuff(cclist, Cel) then
  728.                 CastW(Cel)
  729.             end
  730.         end
  731.     end
  732.     if MenuMorg.comboConfig.USEE then
  733.         if EReady and MenuMorg.comboConfig.USEE then
  734.             CastSpell(_E)
  735.         end
  736.     end
  737.     if MenuMorg.comboConfig.USER then
  738.         local enemyCount = EnemyCount(myHero, skills.skillR.range)
  739.         if RReady and ValidTarget(Cel, skills.skillR.range) and MenuMorg.comboConfig.USER and enemyCount >= MenuMorg.comboConfig.ENEMYTOR then
  740.             CastSpell(_R)
  741.         end
  742.     end
  743. end
  744.  
  745. function Harrass()
  746.     if MenuMorg.harrasConfig.QH then
  747.         if QReady and ValidTarget(Cel, skills.skillQ.range) and Cel ~= nil and Cel.team ~= player.team and not Cel.dead then
  748.             CastQ(Cel)
  749.         end
  750.     end
  751.     if MenuMorg.harrasConfig.WH then
  752.         if WReady and ValidTarget(Cel, skills.skillW.range) and Cel ~= nil and Cel.team ~= player.team and not Cel.dead then
  753.             if MenuMorg.harrasConfig.HWS then
  754.                 if TargetHaveBuff(cclist, Cel) then
  755.                     CastW(Cel)
  756.                 end
  757.             else if not MenuMorg.harrasConfig.HWS then
  758.                 CastW(Cel)
  759.             end
  760.         end
  761.         end
  762.     end
  763. end
  764.  
  765. function Farm(Mode)
  766.     EnemyMinions:update()
  767.     local UseQ
  768.     local UseW
  769.     if not SOWi:CanMove() then return end
  770.  
  771.     if Mode == "Freeze" then
  772.         UseQ =  MenuMorg.farm.QF == 2
  773.         UseW =  MenuMorg.farm.WF == 2
  774.     elseif Mode == "LaneClear" then
  775.         UseQ =  MenuMorg.farm.QF == 3
  776.         UseW =  MenuMorg.farm.WF == 3
  777.     end
  778.    
  779.     UseQ =  MenuMorg.farm.QF == 4 or UseQ
  780.     UseW =  MenuMorg.farm.WF == 4  or UseW
  781.    
  782.     if UseQ then
  783.         for i, minion in pairs(EnemyMinions.objects) do
  784.             if QReady and minion ~= nil and not minion.dead and GetDistance(minion) <= skills.skillQ.range then
  785.                 CastQ(minion)
  786.             end
  787.         end
  788.     end
  789.  
  790.     if UseW then
  791.         for i, minion in pairs(EnemyMinions.objects) do
  792.             if WReady and minion ~= nil and not minion.dead and GetDistance(minion) <= skills.skillW.range then
  793.                 local Pos, Hit = BestWFarmPos(skills.skillW.range, skills.skillW.width, EnemyMinions.objects)
  794.                 if Pos ~= nil then
  795.                     CastSpell(_W, Pos.x, Pos.z)
  796.                 end
  797.             end
  798.         end
  799.     end
  800. end
  801.  
  802. function BestWFarmPos(range, radius, objects)
  803.     local Pos
  804.     local BHit = 0
  805.     for i, object in ipairs(objects) do
  806.         local hit = CountObjectsNearPos(object.visionPos or object, range, radius, objects)
  807.         if hit > BHit then
  808.             BHit = hit
  809.             Pos = Vector(object)
  810.             if BHit == #objects then
  811.                break
  812.             end
  813.          end
  814.     end
  815.     return Pos, BHit
  816. end
  817.  
  818. function JungleFarmm()
  819.     JungleMinions:update()
  820.     for i, minion in pairs(JungleMinions.objects) do
  821.         if MenuMorg.jf.QJF then
  822.             if QReady and minion ~= nil and not minion.dead and GetDistance(minion) <= skills.skillQ.range then
  823.                 CastQ(minion)
  824.             end
  825.         end
  826.         if MenuMorg.jf.WJF then
  827.             if WReady and minion ~= nil and not minion.dead and GetDistance(minion) <= skills.skillW.range then
  828.                 local Pos, Hit = BestWFarmPos(skills.skillW.range, skills.skillW.width, JungleMinions.objects)
  829.                 if Pos ~= nil then
  830.                     CastSpell(_W, Pos.x, Pos.z)
  831.                 end
  832.             end
  833.         end
  834.         if ValidTarget(minion, 450) then
  835.             myHero:Attack(minion)
  836.         end
  837.     end
  838. end
  839.  
  840. function KillSteall()
  841.     for i = 1, heroManager.iCount do
  842.         local Enemy = heroManager:getHero(i)
  843.         local health = Enemy.health
  844.         local qDmg = myHero:CalcMagicDamage(Enemy, (25+55*myHero:GetSpellData(0).level+myHero.ap*0.9))
  845.         local wDmg = myHero:CalcMagicDamage(Enemy, (((5+7*myHero:GetSpellData(1).level)*(1+(1-Enemy.health/Enemy.maxHealth)*0.5))+(myHero.ap*0.11)*(1+(1-Enemy.health/Enemy.maxHealth)*0.5)))
  846.         local rDmg = myHero:CalcMagicDamage(Enemy, (75*myHero:GetSpellData(3).level)+75+0.7*myHero.ap)
  847.         local iDmg = 50 + (20 * myHero.level)
  848.         if Enemy ~= nil and Enemy.team ~= player.team and not Enemy.dead and Enemy.visible then
  849.             if health <= qDmg and QReady and ValidTarget(Enemy, skills.skillQ.range) and MenuMorg.ksConfig.QKS then
  850.                 CastQ(Enemy)
  851.             elseif health < wDmg and WReady and ValidTarget(Enemy, skills.skillW.range) and MenuMorg.ksConfig.WKS then
  852.                 CastW(Enemy)
  853.             elseif health < rDmg and RReady and ValidTarget(Enemy, skills.skillR.range) and MenuMorg.ksConfig.RKS then
  854.                 CastSpell(_R)
  855.             elseif health < (qDmg + wDmg) and QReady and WReady and ValidTarget(Enemy, skills.skillW.range) and MenuMorg.ksConfig.QKS and MenuMorg.ksConfig.WKS then
  856.                 CastQ(Enemy)
  857.                 CastW(Enemy)
  858.             elseif health < (qDmg + rDmg) and QReady and RReady and ValidTarget(Enemy, skills.skillR.range) and MenuMorg.ksConfig.QKS and MenuMorg.ksConfig.RKS then
  859.                 CastQ(Enemy)
  860.                 CastSpell(_R)
  861.             elseif health < (wDmg + rDmg) and WReady and RReady and ValidTarget(Enemy, skills.skillW.range) and MenuMorg.ksConfig.WKS and MenuMorg.ksConfig.RKS then
  862.                 CastW(Enemy)
  863.                 CastSpell(_R)
  864.             elseif health < (qDmg + wDmg + rDmg) and QReady and WReady and RReady and ValidTarget(Enemy, skills.skillR.range) and MenuMorg.ksConfig.QKS and MenuMorg.ksConfig.WKS and MenuMorg.ksConfig.RKS then
  865.                 CastQ(Enemy)
  866.                 CastW(Enemy)
  867.                 CastSpell(_R)
  868.             end
  869.             if health < iDmg and MenuMorg.ksConfig.IKS and ValidTarget(Enemy, 600) and IReady then
  870.                 CastSpell(IgniteKey, Enemy)
  871.             end
  872.         end
  873.     end
  874. end
  875.  
  876. function OnDraw()
  877.     if MenuMorg.drawConfig.DST then
  878.         if SelectedTarget ~= nil and not SelectedTarget.dead then
  879.             DrawCircle(SelectedTarget.x, SelectedTarget.y, SelectedTarget.z, 100, RGB(MenuMorg.drawConfig.DQRC[2], MenuMorg.drawConfig.DQRC[3], MenuMorg.drawConfig.DQRC[4]))
  880.         end
  881.     end
  882.     if MenuMorg.drawConfig.DSE then
  883.         for i = 1, heroManager.iCount do
  884.         local Enemy = heroManager:getHero(i)
  885.             if Enemy ~= nil and Enemy.team ~= player.team and TargetHaveBuff(cclist, Enemy) and not Enemy.dead and Enemy.visible then
  886.                 if MenuMorg.drawConfig.DLC then
  887.                     DrawCircle3D(Enemy.x, Enemy.y, Enemy.z, 100, 1, RGB(MenuMorg.drawConfig.DSEC[2], MenuMorg.drawConfig.DSEC[3], MenuMorg.drawConfig.DSEC[4]))
  888.                 end
  889.                 DrawCircle(Enemy.x, Enemy.y, Enemy.z, 100, ARGB(MenuMorg.drawConfig.DSEC[1], MenuMorg.drawConfig.DSEC[2], MenuMorg.drawConfig.DSEC[3], MenuMorg.drawConfig.DSEC[4]))
  890.             end
  891.         end
  892.     end
  893.     if MenuMorg.drawConfig.DQL and ValidTarget(Cel, skills.skillQ.range) and not GetMinionCollision(myHero, Cel, skills.skillQ.width) then
  894.         QMark = Cel
  895.         DrawLine3D(myHero.x, myHero.y, myHero.z, QMark.x, QMark.y, QMark.z, skills.skillQ.width, ARGB(MenuMorg.drawConfig.DQLC[1], MenuMorg.drawConfig.DQLC[2], MenuMorg.drawConfig.DQLC[3], MenuMorg.drawConfig.DQLC[4]))
  896.     end
  897.     if MenuMorg.drawConfig.DD then 
  898.         DmgCalc()
  899.         for _,enemy in pairs(GetEnemyHeroes()) do
  900.             if ValidTarget(enemy) and killstring[enemy.networkID] ~= nil then
  901.                 local pos = WorldToScreen(D3DXVECTOR3(enemy.x, enemy.y, enemy.z))
  902.                 DrawText(killstring[enemy.networkID], 20, pos.x - 35, pos.y - 10, 0xFFFFFF00)
  903.             end
  904.         end
  905.     end
  906.     if MenuMorg.drawConfig.DQR and QReady then
  907.         DrawCircle(myHero.x, myHero.y, myHero.z, skills.skillQ.range, RGB(MenuMorg.drawConfig.DQRC[2], MenuMorg.drawConfig.DQRC[3], MenuMorg.drawConfig.DQRC[4]))
  908.     end
  909.     if MenuMorg.drawConfig.DWR and WReady then         
  910.         DrawCircle(myHero.x, myHero.y, myHero.z, skills.skillW.range, RGB(MenuMorg.drawConfig.DWRC[2], MenuMorg.drawConfig.DWRC[3], MenuMorg.drawConfig.DWRC[4]))
  911.     end
  912.     if MenuMorg.drawConfig.DER and EReady then         
  913.         DrawCircle(myHero.x, myHero.y, myHero.z, skills.skillE.range, RGB(MenuMorg.drawConfig.DERC[2], MenuMorg.drawConfig.DERC[3], MenuMorg.drawConfig.DERC[4]))
  914.     end
  915.     if MenuMorg.drawConfig.DRR and RReady then     
  916.         DrawCircle(myHero.x, myHero.y, myHero.z, skills.skillR.range, RGB(MenuMorg.drawConfig.DRRC[2], MenuMorg.drawConfig.DRRC[3], MenuMorg.drawConfig.DRRC[4]))
  917.     end
  918. end
  919.  
  920. function autozh()
  921.     local count = EnemyCount(myHero, MenuMorg.prConfig.AZMR)
  922.     if zhonyaready and ((myHero.health/myHero.maxHealth)*100) < MenuMorg.prConfig.AZHP and count == 0 then
  923.         CastSpell(zhonyaslot)
  924.     end
  925. end
  926.  
  927. function autolvl()
  928.     if not MenuMorg.prConfig.ALS then return end
  929.     if myHero.level > abilitylvl then
  930.         abilitylvl = abilitylvl + 1
  931.         if MenuMorg.prConfig.AL == 1 then          
  932.             LevelSpell(_R)
  933.             LevelSpell(_Q)
  934.             LevelSpell(_W)
  935.             LevelSpell(_E)
  936.         end
  937.         if MenuMorg.prConfig.AL == 2 then  
  938.             LevelSpell(_R)
  939.             LevelSpell(_Q)
  940.             LevelSpell(_E)
  941.             LevelSpell(_W)
  942.         end
  943.         if MenuMorg.prConfig.AL == 3 then  
  944.             LevelSpell(_R)
  945.             LevelSpell(_W)
  946.             LevelSpell(_Q)
  947.             LevelSpell(_E)
  948.         end
  949.         if MenuMorg.prConfig.AL == 4 then  
  950.             LevelSpell(_R)
  951.             LevelSpell(_W)
  952.             LevelSpell(_E)
  953.             LevelSpell(_Q)
  954.         end
  955.         if MenuMorg.prConfig.AL == 5 then  
  956.             LevelSpell(_R)
  957.             LevelSpell(_E)
  958.             LevelSpell(_Q)
  959.             LevelSpell(_W)
  960.         end
  961.         if MenuMorg.prConfig.AL == 6 then  
  962.             LevelSpell(_R)
  963.             LevelSpell(_E)
  964.             LevelSpell(_W)
  965.             LevelSpell(_Q)
  966.         end
  967.     end
  968. end
  969.  
  970. function OnProcessSpell(unit,spell)
  971.     if MenuMorg.exConfig.UAS then
  972.         if unit.team ~= myHero.team and not myHero.dead and not (unit.name:find("Minion_") or unit.name:find("Odin")) then
  973.             shottype,radius,maxdistance = 0,0,0
  974.             if unit.type == "obj_AI_Hero" and Shieldspells[spell.name] and MenuMorg.exConfig.ES[spell.name]then
  975.                 spelltype, casttype = getSpellType(unit, spell.name)
  976.                 if casttype == 4 or casttype == 5 or casttype == 6 then return end
  977.                 if (spelltype == "Q" or spelltype == "W" or spelltype == "E" or spelltype == "R") then
  978.                     shottype = skillData[unit.charName][spelltype]["type"]
  979.                     radius = skillData[unit.charName][spelltype]["radius"]
  980.                     maxdistance = skillData[unit.charName][spelltype]["maxdistance"]
  981.                 end
  982.             end
  983.             for i=1, heroManager.iCount do
  984.                 local her = heroManager:GetHero(i)
  985.                 if MenuMorg.exConfig.UASA and MenuMorg.exConfig.uso[her.charName] then
  986.                     allytarget = her
  987.                 else
  988.                     allytarget = myHero
  989.                 end
  990.                 if allytarget.team == myHero.team and not allytarget.dead and allytarget.health > 0 then
  991.                     hitchampion = false
  992.                     local allyHitBox = allytarget.boundingRadius
  993.                     if shottype == 0 then hitchampion = spell.target and spell.target.networkID == allytarget.networkID
  994.                     elseif shottype == 1 then hitchampion = checkhitlinepass(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  995.                     elseif shottype == 2 then hitchampion = checkhitlinepoint(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  996.                     elseif shottype == 3 then hitchampion = checkhitaoe(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  997.                     elseif shottype == 4 then hitchampion = checkhitcone(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  998.                     elseif shottype == 5 then hitchampion = checkhitwall(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  999.                     elseif shottype == 6 then hitchampion = checkhitlinepass(unit, spell.endPos, radius, maxdistance, allytarget, allyHitBox) or checkhitlinepass(unit, Vector(unit)*2-spell.endPos, radius, maxdistance, allytarget, allyHitBox)
  1000.                     elseif shottype == 7 then hitchampion = checkhitcone(spell.endPos, unit, radius, maxdistance, allytarget, allyHitBox)
  1001.                     end
  1002.                     if hitchampion then
  1003.                         if EReady and Shieldspells[spell.name] and MenuMorg.exConfig.ES[spell.name] and GetDistance(allytarget) <= skills.skillE.range then
  1004.                             CastSpell(_E, allytarget)
  1005.                         end
  1006.                     end
  1007.                 end
  1008.             end
  1009.         end
  1010.     end
  1011. end
  1012.  
  1013. function Gapcloser(unit, spell)
  1014.     if QReady and GetDistance(unit) <= skills.skillQ.range then
  1015.         CastQ(unit)
  1016.     end
  1017. end
  1018.  
  1019. function DmgCalc()
  1020.     for i=1, heroManager.iCount do
  1021.         local enemy = heroManager:GetHero(i)
  1022.         if not enemy.dead and enemy.visible then
  1023.             local qDmg = myHero:CalcDamage(enemy, (25+55*myHero:GetSpellData(0).level+myHero.ap*0.9))
  1024.             local wDmg = myHero:CalcDamage(enemy, (((5+7*myHero:GetSpellData(1).level)*(1+(1-enemy.health/enemy.maxHealth)*0.5))+(myHero.ap*0.11)*(1+(1-enemy.health/enemy.maxHealth)*0.5)))
  1025.             local rDmg = myHero:CalcDamage(enemy, (75*myHero:GetSpellData(3).level)+75+0.7*myHero.ap)
  1026.             if enemy.health > (qDmg + wDmg + rDmg) then
  1027.                 killstring[enemy.networkID] = "Harass Him!!!"
  1028.             elseif enemy.health < qDmg then
  1029.                 killstring[enemy.networkID] = "Q Kill!"
  1030.             elseif enemy.health < wDmg then
  1031.                 killstring[enemy.networkID] = "W Kill!"
  1032.             elseif enemy.health < rDmg then
  1033.                 killstring[enemy.networkID] = "R Kill!"
  1034.             elseif enemy.health < (qDmg + wDmg) then
  1035.                 killstring[enemy.networkID] = "Q+W Kill!"
  1036.             elseif enemy.health < (qDmg + rDmg) then
  1037.                 killstring[enemy.networkID] = "Q+R Kill!"  
  1038.             elseif enemy.health < (wDmg + rDmg) then
  1039.                 killstring[enemy.networkID] = "W+R Kill!"  
  1040.             elseif enemy.health < (qDmg + wDmg + rDmg) then
  1041.                 killstring[enemy.networkID] = "Q+W+R Kill!"
  1042.             end
  1043.         end
  1044.     end
  1045. end
  1046.  
  1047. function SpellCast(spellSlot,castPosition)
  1048.     if VIP_USER and MenuMorg.prConfig.pc then
  1049.         Packet("S_CAST", {spellId = spellSlot, fromX = castPosition.x, fromY = castPosition.z, toX = castPosition.x, toY = castPosition.z}):send()
  1050.     else
  1051.         CastSpell(spellSlot,castPosition.x,castPosition.z)
  1052.     end
  1053. end
  1054.  
  1055. function CastQ(unit)
  1056.     if MenuMorg.prConfig.pro == 1 then
  1057.         local CastPosition,  HitChance,  Position = VP:GetLineCastPosition(unit, skills.skillQ.delay, skills.skillQ.width, skills.skillQ.range, skills.skillQ.speed, myHero, true)
  1058.         if HitChance >= MenuMorg.prConfig.vphit - 1 then
  1059.             SpellCast(_Q, CastPosition)
  1060.         end
  1061.     end
  1062.     if MenuMorg.prConfig.pro == 2 and VIP_USER and prodstatus then
  1063.         local Position, info = Prodiction.GetLineAOEPrediction(unit, skills.skillQ.range, skills.skillQ.speed, skills.skillQ.delay, skills.skillQ.width)
  1064.         if Position ~= nil and not info.mCollision() then
  1065.             SpellCast(_Q, Position)
  1066.         end
  1067.     end
  1068. end
  1069.  
  1070. function CastW(unit)
  1071.     if MenuMorg.prConfig.pro == 1 then
  1072.         local CastPosition,  HitChance,  Position = VP:GetCircularAOECastPosition(unit, skills.skillW.delay, skills.skillW.width, skills.skillW.range, skills.skillW.speed, myHero)
  1073.         if CastPosition and HitChance >= MenuMorg.prConfig.vphit - 1 then
  1074.             SpellCast(_W, CastPosition)
  1075.         end
  1076.     end
  1077.     if MenuMorg.prConfig.pro == 2 and VIP_USER and prodstatus then
  1078.         local Position, info = Prodiction.GetCircularAOEPrediction(unit, skills.skillW.range, skills.skillW.speed, skills.skillW.delay, skills.skillW.width, myHero)
  1079.         if Position ~= nil then
  1080.             SpellCast(_W, Position)
  1081.         end
  1082.     end
  1083. end
  1084.  
  1085. -- Change skin function, made by Shalzuth
  1086. function GenModelPacket(champ, skinId)
  1087.     p = CLoLPacket(0x97)
  1088.     p:EncodeF(myHero.networkID)
  1089.     p.pos = 1
  1090.     t1 = p:Decode1()
  1091.     t2 = p:Decode1()
  1092.     t3 = p:Decode1()
  1093.     t4 = p:Decode1()
  1094.     p:Encode1(t1)
  1095.     p:Encode1(t2)
  1096.     p:Encode1(t3)
  1097.     p:Encode1(bit32.band(t4,0xB))
  1098.     p:Encode1(1)--hardcode 1 bitfield
  1099.     p:Encode4(skinId)
  1100.     for i = 1, #champ do
  1101.         p:Encode1(string.byte(champ:sub(i,i)))
  1102.     end
  1103.     for i = #champ + 1, 64 do
  1104.         p:Encode1(0)
  1105.     end
  1106.     p:Hide()
  1107.     RecvPacket(p)
  1108. end
  1109.  
  1110. function OnWndMsg(Msg, Key)
  1111.     if Msg == WM_LBUTTONDOWN and MenuMorg.comboConfig.ST then
  1112.         local dist = 0
  1113.         local Selecttarget = nil
  1114.         for i, enemy in ipairs(GetEnemyHeroes()) do
  1115.             if ValidTarget(enemy) then
  1116.                 if GetDistance(enemy, mousePos) <= dist or Selecttarget == nil then
  1117.                     dist = GetDistance(enemy, mousePos)
  1118.                     Selecttarget = enemy
  1119.                 end
  1120.             end
  1121.         end
  1122.         if Selecttarget and dist < 300 then
  1123.             if SelectedTarget and Selecttarget.charName == SelectedTarget.charName then
  1124.                 SelectedTarget = nil
  1125.                 if MenuMorg.comboConfig.ST then
  1126.                     print("Target unselected: "..Selecttarget.charName)
  1127.                 end
  1128.             else
  1129.                 SelectedTarget = Selecttarget
  1130.                 if MenuMorg.comboConfig.ST then
  1131.                     print("New target selected: "..Selecttarget.charName)
  1132.                 end
  1133.             end
  1134.         end
  1135.     end
  1136. end
  1137.  
  1138. function SetPriority(table, hero, priority)
  1139.     for i=1, #table, 1 do
  1140.         if hero.charName:find(table[i]) ~= nil then
  1141.             TS_SetHeroPriority(priority, hero.charName)
  1142.         end
  1143.     end
  1144. end
  1145.  
  1146. function arrangePrioritysTT()
  1147.     for i, enemy in ipairs(GetEnemyHeroes()) do
  1148.         SetPriority(TargetTable.AD_Carry, enemy, 1)
  1149.         SetPriority(TargetTable.AP,       enemy, 1)
  1150.         SetPriority(TargetTable.Support,  enemy, 2)
  1151.         SetPriority(TargetTable.Bruiser,  enemy, 2)
  1152.         SetPriority(TargetTable.Tank,     enemy, 3)
  1153.     end
  1154. end
  1155.  
  1156. function arrangePrioritys()
  1157.     for i, enemy in ipairs(GetEnemyHeroes()) do
  1158.         SetPriority(TargetTable.AD_Carry, enemy, 1)
  1159.         SetPriority(TargetTable.AP, enemy, 2)
  1160.         SetPriority(TargetTable.Support, enemy, 3)
  1161.         SetPriority(TargetTable.Bruiser, enemy, 4)
  1162.         SetPriority(TargetTable.Tank, enemy, 5)
  1163.     end
  1164. end
  1165.  
  1166. function DrawCircleNextLvl(x, y, z, radius, width, color, chordlength)
  1167.   radius = radius or 300
  1168.   quality = math.max(8,round(180/math.deg((math.asin((chordlength/(2*radius)))))))
  1169.   quality = 2 * math.pi / quality
  1170.   radius = radius*.92
  1171.  
  1172.   local points = {}
  1173.   for theta = 0, 2 * math.pi + quality, quality do
  1174.     local c = WorldToScreen(D3DXVECTOR3(x + radius * math.cos(theta), y, z - radius * math.sin(theta)))
  1175.     points[#points + 1] = D3DXVECTOR2(c.x, c.y)
  1176.   end
  1177.  
  1178.   DrawLines2(points, width or 1, color or 4294967295)
  1179. end
  1180.  
  1181. function round(num)
  1182.   if num >= 0 then return math.floor(num+.5) else return math.ceil(num-.5) end
  1183. end
  1184.  
  1185. function DrawCircle2(x, y, z, radius, color)
  1186.   local vPos1 = Vector(x, y, z)
  1187.   local vPos2 = Vector(cameraPos.x, cameraPos.y, cameraPos.z)
  1188.   local tPos = vPos1 - (vPos1 - vPos2):normalized() * radius
  1189.   local sPos = WorldToScreen(D3DXVECTOR3(tPos.x, tPos.y, tPos.z))
  1190.  
  1191.   if OnScreen({ x = sPos.x, y = sPos.y }, { x = sPos.x, y = sPos.y }) then
  1192.     DrawCircleNextLvl(x, y, z, radius, 1, color, 75)
  1193.   end
  1194. end
Advertisement
Add Comment
Please, Sign In to add comment