Illprotectjew

Yorick AIO - Beta1.0

May 28th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | None | 0 0
  1. --Yorick
  2. --Utilizes auto-respawning pro-sauce.
  3. local ghoulmeh = 10
  4. --% HP you will ulti to allies.
  5.  
  6. if myHero.name == "Yorick" then
  7.     function OnTick()
  8.     local script_loaded=1
  9.     target = GetWeakEnemy('MAGIC',600)
  10.     YouShallLive()
  11.     DrawCircleObject(myHero, 600, 0x02)
  12.     DrawCircleObject(myHero, 550, 0x02)
  13.     DrawCircleObject(myHero, 150, 0x02)
  14.     DrawText("Shovel: Check! Ghouls: Check! GG!",5,40,0xFF00EE00);
  15.     DrawText("AutoUlt Activated",5,80,0xFF00EE00);
  16.         if AIOConfig.YorickCombo then
  17.             if target == nil then
  18.                 MoveToMouse()  
  19.             end
  20.             if target ~= nil then
  21.                 DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
  22.                 CustomCircle(100,5,2,target)
  23.                 UtilityFunction()
  24.                 DrawSphere(50,25,3,target.x,target.y+300,target.z)
  25.                     if GetDistance(myHero, target) < 600 then
  26.                         CastSpellTarget("E",target)
  27.                     end
  28.                     if GetDistance(myHero, target) < 550 then
  29.                         YorickW()
  30.                     end
  31.                     if GetDistance(myHero, target) < 200 then
  32.                         CastSpellXYZ("Q",myHero.x,myHero.y,myHero.z)
  33.                     end
  34.                    
  35.                 AttackTarget(target)
  36.             end
  37.         end    
  38.     end
  39. end
  40. --Yorick Functions
  41. function YorickW()
  42.     if CanCastSpell("W") then
  43.         CastSpellXYZ('W',GetFireahead(target,5,0))
  44.     end
  45. end
  46. function YouShallLive()
  47.     for i = 1, objManager:GetMaxHeroes() do
  48.         local ally = objManager:GetHero(i)
  49.         local percent3 = ((ally.health / ally.maxHealth)*100)
  50.         local myhp = ((myHero.health / myHero.maxHealth)*100)
  51.         local key=112;
  52.         CLOCK=os.clock()
  53.         local ghoulthemall = ghoulmeh
  54.        
  55.    
  56.     if CLOCK-toggle_timer>0.2 then
  57.         toggle_timer=CLOCK
  58.         script_loaded= ((script_loaded+1)%2)
  59.     end
  60.         if (script_loaded==1) then
  61.             if (CLOCK-toggle_timer<1) then
  62.                 --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
  63.             end
  64.         else
  65.            -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
  66.             return
  67.         end
  68.         if CanUseSpell("R") and percent3 <= ghoulthemall and ally.team == myHero.team and GetDistance(myHero, ally) <= 900 then
  69.             CastSpellTarget("R",ally)
  70.         end
  71.         elseif CanUseSpell("R") and myhp <= ghoulthemall then
  72.             CastSpellXYZ("R",myHero.x,myHero.y,myHero.z)
  73.         end
  74.                
  75.     end
  76. end
  77. if myHero.name == "Yorick" then
  78.     AIOConfig:addParam("YorickCombo", "Yorick Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
  79. end
Advertisement
Add Comment
Please, Sign In to add comment