Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Yorick
- --Utilizes auto-respawning pro-sauce.
- local ghoulmeh = 10
- --% HP you will ulti to allies.
- if myHero.name == "Yorick" then
- function OnTick()
- local script_loaded=1
- target = GetWeakEnemy('MAGIC',600)
- YouShallLive()
- DrawCircleObject(myHero, 600, 0x02)
- DrawCircleObject(myHero, 550, 0x02)
- DrawCircleObject(myHero, 150, 0x02)
- DrawText("Shovel: Check! Ghouls: Check! GG!",5,40,0xFF00EE00);
- DrawText("AutoUlt Activated",5,80,0xFF00EE00);
- if AIOConfig.YorickCombo then
- if target == nil then
- MoveToMouse()
- end
- if target ~= nil then
- DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
- CustomCircle(100,5,2,target)
- UtilityFunction()
- DrawSphere(50,25,3,target.x,target.y+300,target.z)
- if GetDistance(myHero, target) < 600 then
- CastSpellTarget("E",target)
- end
- if GetDistance(myHero, target) < 550 then
- YorickW()
- end
- if GetDistance(myHero, target) < 200 then
- CastSpellXYZ("Q",myHero.x,myHero.y,myHero.z)
- end
- AttackTarget(target)
- end
- end
- end
- end
- --Yorick Functions
- function YorickW()
- if CanCastSpell("W") then
- CastSpellXYZ('W',GetFireahead(target,5,0))
- end
- end
- function YouShallLive()
- for i = 1, objManager:GetMaxHeroes() do
- local ally = objManager:GetHero(i)
- local percent3 = ((ally.health / ally.maxHealth)*100)
- local myhp = ((myHero.health / myHero.maxHealth)*100)
- local key=112;
- CLOCK=os.clock()
- local ghoulthemall = ghoulmeh
- if CLOCK-toggle_timer>0.2 then
- toggle_timer=CLOCK
- script_loaded= ((script_loaded+1)%2)
- end
- if (script_loaded==1) then
- if (CLOCK-toggle_timer<1) then
- --DrawText("Press F1 to toggle",5,90,0xFF00EE00);
- end
- else
- -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
- return
- end
- if CanUseSpell("R") and percent3 <= ghoulthemall and ally.team == myHero.team and GetDistance(myHero, ally) <= 900 then
- CastSpellTarget("R",ally)
- end
- elseif CanUseSpell("R") and myhp <= ghoulthemall then
- CastSpellXYZ("R",myHero.x,myHero.y,myHero.z)
- end
- end
- end
- if myHero.name == "Yorick" then
- AIOConfig:addParam("YorickCombo", "Yorick Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
- end
Advertisement
Add Comment
Please, Sign In to add comment