Advertisement
Guest User

lol dodge skillshots

a guest
Mar 31st, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 39.63 KB | None | 0 0
  1. require 'winapi'
  2. require 'vals_lib'
  3. local uiconfig = require 'uiconfig'
  4. local send = require 'SendInputScheduled'
  5. local version = '1.13.3'
  6. local skillshotArray = {}
  7. local colorcyan,coloryellow = 0xFF00FFFF,0xFFFFFF00
  8. local xa,xb,ya,yb = 100/1920*GetScreenX(),1820/1920*GetScreenX(),100/1080*GetScreenY(),980/1080*GetScreenY()
  9. local cc,locus,block,block_timer = 0,false,false,GetClock()
  10. local add_move_range = (GetDistance(GetMinBBox(myHero)))*.7
  11. local add_radius_range = (GetDistance(GetMinBBox(myHero)))*.7
  12.  
  13. function Main()
  14.     CheckLocus()
  15.     if GetClock()-block_timer<DodgeConfig.Block_Time then _G.evade = true
  16.     elseif GetClock()-block_timer>DodgeConfig.Block_Time then _G.evade = false end
  17.     Skillshots()
  18.     send.tick()
  19. end
  20.  
  21.     DodgeConfig, menu = uiconfig.add_menu('DodgeSkillshot Config', 250)
  22.     menu.checkbutton('DrawSkillShots', 'Draw Skillshots', true)
  23.     menu.checkbutton('DodgeSkillShots', 'Dodge Skillshots', true)
  24.     menu.checkbutton('DodgeSkillShotsAOE', 'Dodge Skillshots for AOE', true)
  25.     menu.checkbutton('Block_User_Input', 'Block User Input', false)
  26.     menu.slider('Block_Time', 'Block User Input time', 0, 2000, 1000)
  27.    
  28. function MakeStateMatch(changes)
  29.     for scode,flag in pairs(changes) do    
  30.         print(scode)
  31.         if flag then print('went down') else print('went up') end
  32.         local vk = winapi.map_virtual_key(scode, 3)
  33.         local is_down = winapi.get_async_key_state(vk)
  34.         if flag then -- went down
  35.             if is_down then
  36.                 send.wait(60)
  37.                 send.key_down(scode)
  38.                 send.wait(60)
  39.             else
  40.                 -- up before, up after, down during, we don't care
  41.             end            
  42.         else -- went up
  43.             if is_down then
  44.                 -- down before, down after, up during, we don't care
  45.             else
  46.                 send.wait(60)
  47.                 send.key_up(scode)
  48.                 send.wait(60)
  49.             end
  50.         end
  51.     end
  52. end
  53.  
  54. function CheckLocus()
  55.     if myHero.name=='Katarina' and CountEnemyHeroInRange(550)==0 then locus = false end
  56.     if Fiddle_Timer~=nil and GetTickCount()-Fiddle_Timer>1750 then
  57.         locus = false
  58.         Fiddle_Timer = nil
  59.     end
  60.     if Janna_Timer~=nil and GetTickCount()-Janna_Timer>3250 then
  61.         locus = false
  62.         Janna_Timer = nil
  63.     end
  64.     if Katarina_Timer~=nil and GetTickCount()-Katarina_Timer>2750 then
  65.         locus = false
  66.         Katarina_Timer = nil
  67.     end
  68.     if Karthus_Timer~=nil and GetTickCount()-Karthus_Timer>3250 then
  69.         locus = false
  70.         Karthus_Timer = nil
  71.     end
  72.     for i = 1, objManager:GetMaxDelObjects(), 1 do
  73.         local object = {objManager:GetDelObject(i)}
  74.         local ret={}
  75.         ret.index=object[1]
  76.         ret.name=object[2]
  77.         ret.charName=object[3]
  78.         ret.x=object[4]
  79.         ret.y=object[5]
  80.         ret.z=object[6]
  81.         if myHero.name == 'Katarina' and ret.charName~=nil and (ret.charName == 'Katarina_deathLotus_cas.troy' or ret.charName == 'Katarina_deathLotus_empty.troy') and GetDistance(ret)==0 then locus = false end
  82.         if myHero.name == 'Janna' and ret.charName~=nil and ret.charName == 'ReapTheWhirlwind_green_cas.troy' and GetDistance(ret)==0 then locus = false end
  83.         if myHero.name == 'Karthus' and ret.charName~=nil and ret.charName == 'Karthus_Base_R_Cas.troy' and GetDistance(ret)==0 then locus = false end
  84.     end
  85. end
  86.  
  87. function OnCreateObj(obj)
  88.     if obj~=nil then
  89.         if myHero.name=='Katarina' then
  90.             if obj.charName == 'Katarina_deathLotus_empty.troy' and GetDistance(obj)==0 then locus = false end
  91.         end
  92.         if myHero.name=='Janna' then
  93.             if obj.charName == 'ReapTheWhirlwind_green_cas.troy' and GetDistance(obj)==0 then locus = true end
  94.         end
  95.         if myHero.name=='Karthus' then
  96.             if obj.charName == 'Karthus_Base_R_Cas.troy' and GetDistance(obj)==0 then locus = true end
  97.         end
  98.     end
  99. end
  100.  
  101. function OnProcessSpell(unit,spell)
  102.     if unit ~= nil and spell ~= nil and unit.charName == myHero.charName then
  103.         if spell.name == 'KatarinaR' then
  104.             locus = true
  105.             Katarina_Timer = GetTickCount()
  106.         end
  107.         if spell.name == 'Crowstorm' then
  108.             locus = true
  109.             Fiddle_Timer = GetTickCount()
  110.         end
  111.         if spell.name == 'ReapTheWhirlwind' then
  112.             locus = true
  113.             Janna_Timer = GetTickCount()
  114.         end
  115.         if spell.name == 'KarthusFallenOne' then
  116.             locus = true
  117.             Karthus_Timer = GetTickCount()
  118.         end
  119.     end
  120.     --------------------------------------------------------------------------
  121.     local P1 = spell.startPos
  122.     local P2 = spell.endPos
  123.     local calc = (math.floor(math.sqrt((P2.x-unit.x)^2 + (P2.z-unit.z)^2)))
  124.     if string.find(unit.name,'Minion_') == nil and string.find(unit.name,'Turret_') == nil then
  125.         if (unit.team ~= myHero.team or (show_allies==1)) and string.find(spell.name,'Basic') == nil then
  126.             for i=1, #skillshotArray, 1 do
  127.                 local maxdist
  128.                 local dodgeradius
  129.                 dodgeradius = math.max(skillshotArray[i].radius,100)+add_move_range
  130.                 maxdist = skillshotArray[i].maxdistance+150
  131.                 if spell.name == skillshotArray[i].name then
  132.                     skillshotArray[i].shot = 1
  133.                     skillshotArray[i].lastshot = os.clock()
  134.                     if skillshotArray[i].type == 1 then
  135.                         maxdist = skillshotArray[i].maxdistance+150
  136.                         skillshotArray[i].p1x = unit.x
  137.                         skillshotArray[i].p1y = unit.y
  138.                         skillshotArray[i].p1z = unit.z
  139.                         skillshotArray[i].p2x = unit.x + (maxdist)/calc*(P2.x-unit.x)
  140.                         skillshotArray[i].p2y = P2.y
  141.                         skillshotArray[i].p2z = unit.z + (maxdist)/calc*(P2.z-unit.z)
  142.                         dodgelinepass(unit, P2, dodgeradius, maxdist)
  143.                     elseif skillshotArray[i].type == 2 then
  144.                         skillshotArray[i].px = P2.x
  145.                         skillshotArray[i].py = P2.y
  146.                         skillshotArray[i].pz = P2.z
  147.                         dodgelinepoint(unit, P2, dodgeradius)
  148.                     elseif skillshotArray[i].type == 3 then
  149.                         skillshotArray[i].skillshotpoint = calculateLineaoe(unit, P2, maxdist)
  150.                         if skillshotArray[i].name ~= 'SummonerClairvoyance' then
  151.                             dodgeaoe(unit, P2, dodgeradius)
  152.                         end
  153.                     elseif skillshotArray[i].type == 4 then
  154.                         skillshotArray[i].px = unit.x + (maxdist)/calc*(P2.x-unit.x)
  155.                         skillshotArray[i].py = P2.y
  156.                         skillshotArray[i].pz = unit.z + (maxdist)/calc*(P2.z-unit.z)
  157.                         dodgelinepass(unit, P2, dodgeradius, maxdist)
  158.                     elseif skillshotArray[i].type == 5 then
  159.                         maxdist = skillshotArray[i].maxdistance
  160.                         skillshotArray[i].skillshotpoint = calculateLineaoe2(unit, P2, maxdist)
  161.                         dodgeaoe(unit, P2, dodgeradius)
  162.                     end
  163.                 end
  164.             end
  165.         end
  166.     end
  167. end
  168.  
  169. function dodgeaoe(pos1, pos2, radius)
  170.     local calc = (math.floor(math.sqrt((pos2.x-myHero.x)^2 + (pos2.z-myHero.z)^2)))
  171.     local dodgex
  172.     local dodgez
  173.     dodgex = pos2.x + (radius/calc)*(myHero.x-pos2.x)
  174.     dodgez = pos2.z + (radius/calc)*(myHero.z-pos2.z)
  175.     if calc < radius and DodgeConfig.DodgeSkillShotsAOE and not locus then
  176.         if DodgeConfig.Block_User_Input and GetCursorX() > xa and GetCursorX() < xb and GetCursorY() > ya and GetCursorY() < yb then send.block_input(true,DodgeConfig.Block_Time,MakeStateMatch) end
  177.         block_timer = GetClock()
  178.         MoveToXYZ(dodgex,0,dodgez)
  179.     end
  180. end
  181.  
  182. function dodgelinepoint(pos1, pos2, radius)
  183.     local calc1 = (math.floor(math.sqrt((pos2.x-myHero.x)^2 + (pos2.z-myHero.z)^2)))
  184.     local calc2 = (math.floor(math.sqrt((pos1.x-myHero.x)^2 + (pos1.z-myHero.z)^2)))
  185.     local calc4 = (math.floor(math.sqrt((pos1.x-pos2.x)^2 + (pos1.z-pos2.z)^2)))
  186.     local calc3
  187.     local perpendicular
  188.     local k
  189.     local x4
  190.     local z4
  191.     local dodgex
  192.     local dodgez
  193.     perpendicular = (math.floor((math.abs((pos2.x-pos1.x)*(pos1.z-myHero.z)-(pos1.x-myHero.x)*(pos2.z-pos1.z)))/(math.sqrt((pos2.x-pos1.x)^2 + (pos2.z-pos1.z)^2))))
  194.     k = ((pos2.z-pos1.z)*(myHero.x-pos1.x) - (pos2.x-pos1.x)*(myHero.z-pos1.z)) / ((pos2.z-pos1.z)^2 + (pos2.x-pos1.x)^2)
  195.     x4 = myHero.x - k * (pos2.z-pos1.z)
  196.     z4 = myHero.z + k * (pos2.x-pos1.x)
  197.     calc3 = (math.floor(math.sqrt((x4-myHero.x)^2 + (z4-myHero.z)^2)))
  198.     dodgex = x4 + (radius/calc3)*(myHero.x-x4)
  199.     dodgez = z4 + (radius/calc3)*(myHero.z-z4)
  200.     if perpendicular < radius and calc1 < calc4 and calc2 < calc4 and DodgeConfig.DodgeSkillShots and not locus then
  201.         if DodgeConfig.Block_User_Input and GetCursorX() > xa and GetCursorX() < xb and GetCursorY() > ya and GetCursorY() < yb then send.block_input(true,DodgeConfig.Block_Time,MakeStateMatch) end
  202.         block_timer = GetClock()
  203.         MoveToXYZ(dodgex,0,dodgez)
  204.     end
  205. end
  206.  
  207. function dodgelinepass(pos1, pos2, radius, maxDist)
  208.     local pm2x = pos1.x + (maxDist)/(math.floor(math.sqrt((pos1.x-pos2.x)^2 + (pos1.z-pos2.z)^2)))*(pos2.x-pos1.x)
  209.     local pm2z = pos1.z + (maxDist)/(math.floor(math.sqrt((pos1.x-pos2.x)^2 + (pos1.z-pos2.z)^2)))*(pos2.z-pos1.z)
  210.     local calc1 = (math.floor(math.sqrt((pm2x-myHero.x)^2 + (pm2z-myHero.z)^2)))
  211.     local calc2 = (math.floor(math.sqrt((pos1.x-myHero.x)^2 + (pos1.z-myHero.z)^2)))
  212.     local calc3
  213.     local calc4 = (math.floor(math.sqrt((pos1.x-pm2x)^2 + (pos1.z-pm2z)^2)))
  214.     local perpendicular
  215.     local k
  216.     local x4
  217.     local z4
  218.     local dodgex
  219.     local dodgez
  220.     perpendicular = (math.floor((math.abs((pm2x-pos1.x)*(pos1.z-myHero.z)-(pos1.x-myHero.x)*(pm2z-pos1.z)))/(math.sqrt((pm2x-pos1.x)^2 + (pm2z-pos1.z)^2))))
  221.     k = ((pm2z-pos1.z)*(myHero.x-pos1.x) - (pm2x-pos1.x)*(myHero.z-pos1.z)) / ((pm2z-pos1.z)^2 + (pm2x-pos1.x)^2)
  222.     x4 = myHero.x - k * (pm2z-pos1.z)
  223.     z4 = myHero.z + k * (pm2x-pos1.x)
  224.     calc3 = (math.floor(math.sqrt((x4-myHero.x)^2 + (z4-myHero.z)^2)))
  225.     dodgex = x4 + (radius/calc3)*(myHero.x-x4)
  226.     dodgez = z4 + (radius/calc3)*(myHero.z-z4)
  227.     if perpendicular < radius and calc1 < calc4 and calc2 < calc4 and DodgeConfig.DodgeSkillShots and not locus then
  228.         if DodgeConfig.Block_User_Input and GetCursorX() > xa and GetCursorX() < xb and GetCursorY() > ya and GetCursorY() < yb then send.block_input(true,DodgeConfig.Block_Time,MakeStateMatch) end
  229.         block_timer = GetClock()
  230.         MoveToXYZ(dodgex,0,dodgez)
  231.     end
  232. end
  233.  
  234.  
  235. function calculateLinepass(pos1, pos2, spacing, maxDist)
  236.     local calc = (math.floor(math.sqrt((pos2.x-pos1.x)^2 + (pos2.z-pos1.z)^2)))
  237.     local line = {}
  238.     local point1 = {}
  239.     point1.x = pos1.x
  240.     point1.y = pos1.y
  241.     point1.z = pos1.z
  242.     local point2 = {}
  243.     point1.x = pos1.x + (maxDist)/calc*(pos2.x-pos1.x)
  244.     point1.y = pos2.y
  245.     point1.z = pos1.z + (maxDist)/calc*(pos2.z-pos1.z)
  246.     table.insert(line, point2)
  247.     table.insert(line, point1)
  248.     return line
  249. end
  250.  
  251. function calculateLineaoe(pos1, pos2, maxDist)
  252.     local line = {}
  253.     local point = {}
  254.     point.x = pos2.x
  255.     point.y = pos2.y
  256.     point.z = pos2.z
  257.     table.insert(line, point)
  258.     return line
  259. end
  260.  
  261. function calculateLineaoe2(pos1, pos2, maxDist)
  262.     local calc = (math.floor(math.sqrt((pos2.x-pos1.x)^2 + (pos2.z-pos1.z)^2)))
  263.     local line = {}
  264.     local point = {}
  265.         if calc < maxDist then
  266.         point.x = pos2.x
  267.         point.y = pos2.y
  268.         point.z = pos2.z
  269.         table.insert(line, point)
  270.     else
  271.         point.x = pos1.x + maxDist/calc*(pos2.x-pos1.x)
  272.         point.z = pos1.z + maxDist/calc*(pos2.z-pos1.z)
  273.         point.y = pos2.y
  274.         table.insert(line, point)
  275.     end
  276.     return line
  277. end
  278.  
  279. function calculateLinepoint(pos1, pos2, spacing, maxDist)
  280.     local line = {}
  281.     local point1 = {}
  282.     point1.x = pos1.x
  283.     point1.y = pos1.y
  284.     point1.z = pos1.z
  285.     local point2 = {}
  286.     point1.x = pos2.x
  287.     point1.y = pos2.y
  288.     point1.z = pos2.z
  289.     table.insert(line, point2)
  290.     table.insert(line, point1)
  291.     return line
  292. end
  293.  
  294. function Skillshots()
  295.     cc=cc+1
  296.     if (cc==150) then
  297.         LoadTable()
  298.     end
  299.     if (cc>150) then
  300.         DrawText('Dodge ready',70,150,Color.White)
  301.     end
  302.     if DodgeConfig.DrawSkillShots then
  303.         for i=1, #skillshotArray, 1 do
  304.             if skillshotArray[i].shot == 1 then
  305.                 local radius = skillshotArray[i].radius
  306.                 local color = skillshotArray[i].color
  307.                 if skillshotArray[i].isline == false then
  308.                     for number, point in pairs(skillshotArray[i].skillshotpoint) do
  309.                         DrawCircle(point.x, point.y, point.z, radius, color)
  310.                     end
  311.                 else
  312.                     startVector = Vector(skillshotArray[i].p1x,skillshotArray[i].p1y,skillshotArray[i].p1z)
  313.                     endVector = Vector(skillshotArray[i].p2x,skillshotArray[i].p2y,skillshotArray[i].p2z)
  314.                     directionVector = (endVector-startVector):normalized()
  315.                     local angle=0
  316.                     if (math.abs(directionVector.x)<.00001) then
  317.                         if directionVector.z > 0 then angle=90
  318.                         elseif directionVector.z < 0 then angle=270
  319.                         else angle=0
  320.                         end
  321.                     else
  322.                         local theta = math.deg(math.atan(directionVector.z / directionVector.x))
  323.                         if directionVector.x < 0 then theta = theta + 180 end
  324.                             if theta < 0 then theta = theta + 360 end
  325.                                 angle=theta
  326.                             end
  327.                                 angle=((90-angle)*2*math.pi)/360
  328.                                 DrawLine(startVector.x, startVector.y, startVector.z, GetDistance(startVector, endVector)+170, 1,angle,radius)
  329.                         end
  330.                     end
  331.                 end
  332.             end
  333.     for i=1, #skillshotArray, 1 do
  334.         if os.clock() > (skillshotArray[i].lastshot + skillshotArray[i].time) then
  335.         skillshotArray[i].shot = 0
  336.         end
  337.     end
  338. end
  339.  
  340. function LoadTable()
  341.     print("table loaded::")
  342.     for i = 1, objManager:GetMaxHeroes() do
  343.         local ee = objManager:GetHero(i)
  344.         if ee~=nil and ee.team~=myHero.team then
  345.             if ee.name == 'Aatrox' then
  346.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=600,type=3,radius=200,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  347.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=120,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  348.             end
  349.             if ee.name == 'Ahri' then
  350.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=880,type=1,radius=105,color=colorcyan,time=((880/1.7)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  351.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=975,type=1,radius=70,color=colorcyan,time=((975/1.5)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  352.             end
  353.             if ee.name == 'Amumu' then
  354.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=90,color=colorcyan,time=((1100/2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  355.             end
  356.             if ee.name == 'Anivia' then
  357.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=90,color=colorcyan,time=2,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  358.             end
  359.             if ee.name == 'Ashe' then
  360.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=5000,type=4,radius=120,color=colorcyan,time=4,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  361.             end
  362.             if ee.name == 'Blitzcrank' then
  363.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=925,type=1,radius=80,color=colorcyan,time=((925/1.7)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  364.             end
  365.             if ee.name == 'Brand' then
  366.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=1,radius=85,color=colorcyan,time=((1050/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  367.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=3,radius=250,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  368.             end
  369.             if ee.name == 'Braum' then
  370.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  371.             end
  372.             if ee.name == 'Cassiopeia' then
  373.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=850,type=3,radius=175,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  374.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=850,type=3,radius=75,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  375.             end
  376.             if ee.name == 'Caitlyn' then -- need width + speed
  377.                 --table.insert(skillshotArray,{name='CaitlynEntrapmentMissile',shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=50,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  378.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1300,type=1,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  379.             end
  380.             if ee.name == 'Chogath' then
  381.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=3,radius=275,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  382.             end
  383.             if ee.name == 'Corki' then
  384.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=2,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  385.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1225,type=1,radius=50,color=colorcyan,time=((1225/2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  386.             end
  387.             if ee.name == 'Diana' then
  388.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=1,radius=205,color=colorcyan,time=((830/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  389.             end
  390.             if ee.name == 'DrMundo' then
  391.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=80,color=colorcyan,time=((1000/2)+160)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  392.            
  393.             end
  394.             if ee.name == 'Draven' then
  395.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=1,radius=135,color=colorcyan,time=((1050/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  396.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=5000,type=1,radius=125,color=colorcyan,time=4,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  397.             end
  398.             if ee.name == 'Elise' then
  399.                 table.insert(skillshotArray,{name='EliseHumanE',shot=0,lastshot=0,skillshotpoint={},maxdistance=1075,type=1,radius=80,color=colorcyan,time=((1075/1.5)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  400.             end
  401.             if ee.name == 'Ezreal' then
  402.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=100,color=colorcyan,time=((1100/2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  403.                 table.insert(skillshotArray,{name='EzrealEssenceFluxMissile',shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=1,radius=100,color=colorcyan,time=((900/1.5)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  404.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=5000,type=2,radius=175,color=colorcyan,time=4,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  405.             end
  406.             if ee.name == 'Fizz' then
  407.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=400,type=3,radius=270,color=coloryellow,time=0.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  408.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1275,type=2,radius=100,color=colorcyan,time=((1275/1.3)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  409.             end
  410.             if ee.name == 'FiddleSticks' then
  411.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=3,radius=600,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  412.             end
  413.             if ee.name == 'Galio' then
  414.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=905,type=3,radius=200,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  415.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=120,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  416.             end
  417.             if ee.name == 'Gragas' then
  418.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=3,radius=320,color=coloryellow,time=2.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  419.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=650,type=2,radius=60,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  420.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=3,radius=400,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  421.             end
  422.             if ee.name == 'Graves' then
  423.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=110,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  424.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  425.             end
  426.             if ee.name == 'Heimerdinger' then
  427.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=100,color=colorcyan,time=((1100/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  428.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=3,radius=180,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  429.                 table.insert(skillshotArray,{name='heimerdingereult',shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=3,radius=180,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})     
  430.             end
  431.             if ee.name == 'Irelia' then
  432.                 --table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1200,type=1,radius=150,color=colorcyan,time=0.8,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  433.             end
  434.             if ee.name == 'Janna' then
  435.                 table.insert(skillshotArray,{name='HowlingGale',shot=0,lastshot=0,skillshotpoint={},maxdistance=1700,type=1,radius=215,color=colorcyan,time=((1700/.9)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  436.             end
  437.             if ee.name == 'JarvanIV' then
  438.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=770,type=1,radius=70,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  439.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=830,type=3,radius=150,color=coloryellow,time=2,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  440.             end
  441.             if ee.name == 'Jayce' then
  442.                 table.insert(skillshotArray,{name='jayceshockblast',shot=0,lastshot=0,skillshotpoint={},maxdistance=1470,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  443.             end
  444.             if ee.name == 'Jinx' then
  445.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=1500,type=1,radius=70,color=colorcyan,time=((1500/3.3)+600)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  446.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=5000,type=4,radius=145,color=colorcyan,time=4,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  447.             end
  448. if ee.name == 'Kalista' then
  449.                 table.insert(skillshotArray,{name="kalistamysticshotmis",shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=1,radius=50,color=colorcyan,time=((1450/2.3)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  450.             end
  451.             if ee.name == 'Karma' then
  452.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=1,radius=100,color=colorcyan,time=((950/1.7)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  453.             end
  454.             if ee.name == 'Karthus' then
  455.                 table.insert(skillshotArray,{name='karthuslaywastea2',shot=0,lastshot=0,skillshotpoint={},maxdistance=875,type=3,radius=165,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  456.             end
  457.             if ee.name == 'Kennen' then
  458.                 table.insert(skillshotArray,{name='KennenShurikenHurlMissile1',shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=1,radius=60,color=colorcyan,time=((1050/1.6)+160)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  459.             end
  460.             if ee.name == 'Khazix' then
  461.                 table.insert(skillshotArray,{name='KhazixW',shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=70,color=coloryellow,time=((1000/1.7)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  462.                
  463.             end
  464.             if ee.name == 'KogMaw' then
  465.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=80,color=colorcyan,time=((1000/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})         
  466.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1280,type=1,radius=130,color=colorcyan,time=((1280/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  467.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1800,type=3,radius=230,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  468.             end
  469.             if ee.name == 'Leblanc' then
  470.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=1,radius=80,color=colorcyan,time=((950/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  471.             end
  472.             if ee.name == 'LeeSin' then
  473.                 table.insert(skillshotArray,{name='BlindMonkQOne',shot=0,lastshot=0,skillshotpoint={},maxdistance=975,type=1,radius=70,color=colorcyan,time=((975/1.8)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  474.             end
  475.             if ee.name == 'Leona' then -- Don't ownt his champ
  476.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=700,type=1,radius=120,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  477.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1200,type=3,radius=250,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  478.             end
  479.             if ee.name == 'Lissandra' then -- Don't own this champ
  480.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=725,type=1,radius=100,color=coloryellow,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  481.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=1,radius=100,color=coloryellow,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  482.             end
  483.             if ee.name == 'Lucian' then
  484.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1110,type=1,radius=70,color=colorcyan,time=.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  485.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=90,color=colorcyan,time=((1000/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  486.             end
  487.             if ee.name == 'Lux' then
  488.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1175,type=1,radius=90,color=colorcyan,time=((1175/1.2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  489.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=3,radius=285,color=coloryellow,time=2.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  490.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=3340,type=1,radius=150,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  491.             end
  492.             if ee.name == 'Lulu' then -- Don't own this champ
  493.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=925,type=1,radius=50,color=colorcyan,time=1,isline=true,px=0,py=0,pz=0,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  494.             end
  495.             if ee.name == 'Maokai' then -- Don't own this champ
  496.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=600,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  497.             end
  498.             if ee.name == 'Malzahar' then
  499.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=3,radius=250,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  500.             end
  501.             if ee.name == 'MissFortune' then
  502.                 table.insert(skillshotArray,{name='MissFortuneScattershot',shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=3,radius=400,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  503.             end
  504.             if ee.name == 'Morgana' then
  505.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1175,type=1,radius=80,color=colorcyan,time=((1175/1.2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  506.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=3,radius=295,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  507.             end
  508.             if ee.name == 'Nami' then
  509.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=875,type=3,radius=210,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  510.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=2550,type=1,radius=350,color=colorcyan,time=3,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  511.             end
  512.             if ee.name == 'Nautilus' then
  513.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=1,radius=100,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  514.             end
  515.             if ee.name == 'Nidalee' then
  516.                 table.insert(skillshotArray,{name='JavelinToss',shot=0,lastshot=0,skillshotpoint={},maxdistance=1500,type=1,radius=30,color=colorcyan,time=((1500/1.3)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  517.             end
  518.             if ee.name == 'Nocturne' then
  519.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1200,type=1,radius=70,color=colorcyan,time=((1200/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  520.             end
  521.             if ee.name == 'Olaf' then
  522.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=2,radius=100,color=colorcyan,time=((1000/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  523.             end
  524.             if ee.name == 'Orianna' then
  525.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=825,type=3,radius=150,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  526.             end
  527.             if ee.name == 'Quinn' then
  528.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1025,type=1,radius=40,color=coloryellow,time=((1025/1.6)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  529.             end
  530.             if ee.name == 'Renekton' then
  531.                 table.insert(skillshotArray,{name='RenektonSliceAndDice',shot=0,lastshot=0,skillshotpoint={},maxdistance=450,type=1,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  532.                 table.insert(skillshotArray,{name='renektondice',shot=0,lastshot=0,skillshotpoint={},maxdistance=450,type=1,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  533.             end
  534.             if ee.name == 'Rengar' then
  535.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=80,color=coloryellow,time=((1000/1.5)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  536.             end
  537.             if ee.name == 'Rumble' then
  538.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=850,type=1,radius=100,color=colorcyan,time=((850/2)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  539.             end
  540.             if ee.name == 'Sejuani' then
  541.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1150,type=1,radius=125,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  542.             end
  543.             if ee.name == 'Sivir' then
  544.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1075,type=1,radius=100,color=colorcyan,time=((1075/1.3)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  545.             end
  546.             if ee.name == 'Shen' then
  547.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=600,type=2,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  548.             end
  549.             if ee.name == 'Shyvana' then -- Don't own this champ
  550.                 table.insert(skillshotArray,{name='ShyvanaTransformLeap',shot=0,lastshot=0,skillshotpoint={},maxdistance=925,type=1,radius=150,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  551.                 table.insert(skillshotArray,{name='ShyvanaFireballMissile',shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  552.             end
  553.             if ee.name == 'Skarner' then -- Don't own this champ
  554.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=600,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  555.             end
  556.             if ee.name == 'Sona' then
  557.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=150,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  558.             end
  559.             if ee.name == 'Syndra' then
  560.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=3,radius=150,color=colorcyan,time=2,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  561.                 table.insert(skillshotArray,{name='syndrawcast',shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=3,radius=150,color=colorcyan,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  562.             end
  563.             if ee.name == 'Swain' then
  564.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=3,radius=265,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  565.             end
  566.             if ee.name == 'Thresh' then
  567.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=100,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  568.             end
  569.             if ee.name == 'Tryndamere' then
  570.                 table.insert(skillshotArray,{name='Slash',shot=0,lastshot=0,skillshotpoint={},maxdistance=600,type=2,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  571.             end
  572.             if ee.name == 'Tristana' then
  573.                 table.insert(skillshotArray,{name=ee.SpellNameW,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=3,radius=200,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  574.             end
  575.             if ee.name == 'TwistedFate' then
  576.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1450,type=1,radius=80,color=colorcyan,time=5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  577.             end
  578.             if ee.name == 'Urgot' then
  579.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=1,radius=80,color=colorcyan,time=0.8,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  580.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=950,type=3,radius=300,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  581.             end
  582.             if ee.name == 'Varus' then
  583.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=1475,type=1,radius=50,color=coloryellow,time=1})
  584.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=1075,type=1,radius=125,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  585.             end
  586.             if ee.name == 'Veigar' then
  587.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=3,radius=225,color=coloryellow,time=2,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  588.             end
  589.             if ee.name == 'Vi' then
  590.                 table.insert(skillshotArray,{name='ViQ',shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=1,radius=150,color=coloryellow,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  591.             end
  592.             if ee.name == 'Viktor' then
  593.                 --table.insert(skillshotArray,{name='ViktorDeathRay',shot=0,lastshot=0,skillshotpoint={},maxdistance=700,type=1,radius=150,color=coloryellow,time=2})
  594.             end
  595.             if ee.name == 'Xerath' then
  596.                 table.insert(skillshotArray,{name='xeratharcanopulse2',shot=0,lastshot=0,skillshotpoint={},maxdistance=1400,type=1,radius=100,color=colorcyan,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  597.                 table.insert(skillshotArray,{name='XerathMageSpear',shot=0,lastshot=0,skillshotpoint={},maxdistance=1050,type=1,radius=80,color=colorcyan,time=((1050/1.4)+260)/1000,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  598.                 table.insert(skillshotArray,{name='XeratharcaneBarrage2',shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=3,radius=260,color=coloryellow,time=1.5,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  599.                 table.insert(skillshotArray,{name='xerathrmissilewrapper',shot=0,lastshot=0,skillshotpoint={},maxdistance=5600,type=3,radius=210,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  600.             end
  601.             if ee.name == 'Zac' then
  602.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=550,type=1,radius=100,color=coloryellow,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  603.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1550,type=3,radius=200,color=colorcyan,time=2,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  604.             end
  605.             if ee.name == 'Zed' then
  606.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=900,type=1,radius=100,color=coloryellow,time=1,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  607.             end
  608.             if ee.name == 'Ziggs' then
  609.                 table.insert(skillshotArray,{name='ZiggsQ',shot=0,lastshot=0,skillshotpoint={},maxdistance=850,type=1,radius=100,color=coloryellow,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  610.                 table.insert(skillshotArray,{name='ZiggsW',shot=0,lastshot=0,skillshotpoint={},maxdistance=1000,type=3,radius=225,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  611.                 table.insert(skillshotArray,{name='ZiggsR',shot=0,lastshot=0,skillshotpoint={},maxdistance=5300,type=3,radius=550,color=coloryellow,time=3,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  612.             end
  613.             if ee.name == 'Zyra' then
  614.                 table.insert(skillshotArray,{name=ee.SpellNameQ,shot=0,lastshot=0,skillshotpoint={},maxdistance=800,type=3,radius=250,color=coloryellow,time=1,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  615.                 table.insert(skillshotArray,{name=ee.SpellNameE,shot=0,lastshot=0,skillshotpoint={},maxdistance=1100,type=1,radius=100,color=colorcyan,time=1.5,isline=true,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  616.                 table.insert(skillshotArray,{name=ee.SpellNameR,shot=0,lastshot=0,skillshotpoint={},maxdistance=700,type=3,radius=550,color=coloryellow,time=2,isline=false,p1x=0,p1y=0,p1z=0,p2x=0,p2y=0,p2z=0})
  617.             end
  618.         end
  619.     end
  620. end
  621.  
  622. function CountEnemyHeroInRange(range, object)
  623.     object = object or myHero
  624.     range = range and range * range or myHero.range * myHero.range
  625.     local enemyInRange = 0
  626.     for i = 1, objManager:GetMaxHeroes() do
  627.     local hero = objManager:GetHero(i)
  628.     if (hero~=nil and hero.team~=myHero.team and hero.dead==0) and GetDistance(object, hero) <= range then
  629.     enemyInRange = enemyInRange + 1
  630.     end
  631.     end
  632.     return enemyInRange
  633. end
  634.  
  635. SetTimerCallback('Main')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement