{"action":"opened","issue":{"url":"https://api.github.com/repos/zareslol/shaco/issues/1","repository_url":"https://api.github.com/repos/zareslol/shaco","labels_url":"https://api.github.com/repos/zareslol/shaco/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zareslol/shaco/issues/1/comments","events_url":"https://api.github.com/repos/zareslol/shaco/issues/1/events","html_url":"https://github.com/zareslol/shaco/issues/1","id":156171997,"number":1,"title":"Shaco script","user":{"login":"zareslol","id":19521049,"avatar_url":"https://avatars.githubusercontent.com/u/19521049?v=3","gravatar_id":"","url":"https://api.github.com/users/zareslol","html_url":"https://github.com/zareslol","followers_url":"https://api.github.com/users/zareslol/followers","following_url":"https://api.github.com/users/zareslol/following{/other_user}","gists_url":"https://api.github.com/users/zareslol/gists{/gist_id}","starred_url":"https://api.github.com/users/zareslol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zareslol/subscriptions","organizations_url":"https://api.github.com/users/zareslol/orgs","repos_url":"https://api.github.com/users/zareslol/repos","events_url":"https://api.github.com/users/zareslol/events{/privacy}","received_events_url":"https://api.github.com/users/zareslol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-22T20:48:58Z","updated_at":"2016-05-22T20:48:58Z","closed_at":null,"body":"if GetObjectName(myHero) ~= 'Shaco' then return end\r\n\r\nrequire ('Inspired')\r\n\r\n--Menu\r\nShaco = Menu('Shaco', 'Shaco')\r\n--Shaco Combo Menu\r\nShaco:SubMenu('Combo', 'Combo')\r\nShaco.Combo:Boolean('Q', 'Use Q', false)\r\nShaco.Combo:Boolean('W', 'Use W', true)\r\nShaco.Combo:Boolean('E', 'Use E', true)\r\n--Jungle Clear Menu\r\nShaco:SubMenu('Jungle', 'JungleClear')\r\nShaco.Jungle:Boolean('W', 'Use W', true)\r\nShaco.Jungle:Boolean('E', 'Use E', true)\r\nShaco.Jungle:Key('Jung', 'Jungle', string.byte('V'))\r\n--LaneClear Menu\r\nShaco:SubMenu('LaneClear', 'Lane Clear')\r\nShaco.LaneClear:Boolean('LC', 'LaneClear', true)\r\nShaco.LaneClear:Boolean('W', 'Use W', true)\r\nShaco.LaneClear:Boolean('E', 'Use E', true)\r\nShaco.LaneClear:Key('LC', 'LaneClear', string.byte('c'))\r\n--Misc Menu\r\nShaco:SubMenu(\"Misc\",\"Misc\")\r\nShaco.Misc:Boolean(\"ATR\",\"Auto R <\",true)\r\nShaco.Misc:Slider(\"UltHP\", \"Hp to Auto R\", 20, 0, 100, 5)\r\n\r\nOnTick(function(myHero)\r\nif IOW:Mode() == 'Combo' then\r\nCombo()\r\nend\r\nJungleClear()\r\nLaneClear()\r\nAutoUltimate()\r\n\r\nend)\r\n\r\nfunction Combo()\r\nlocal mousepos = GetMousePos()\r\nlocal unit = GetCurrentTarget()\r\n-- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)\r\nlocal Qpos = GetPredictionForPlayer(myHeroPos(),unit,GetMoveSpeed(unit),300,300,GetCastRange(myHero,_Q),250,false,false)\r\nif Ready(_Q) and IsInDistance(unit, GetCastRange(myHero,_Q)) and Qpos.HitChance == 1 then\r\n  CastSkillShot(_Q,Qpos.PredPos.x,Qpos.PredPos.y,Qpos.PredPos.z)\r\nelseif Ready(_Q) and not IsInDistance(unit, GetCastRange(myHero,_Q)) and ValidTarget (unit, 1400) then\r\n\tCastSkillShot(_Q,mousepos.x,mousepos.y,mousepos.z)\r\nend\r\n\r\n\r\nif Shaco.Combo.W:Value() then\r\n if Ready(_W) and ValidTarget(unit, 425) then\r\n   CastSkillShot(_W,mousepos.x,mousepos.y,mousepos.z)\r\n end\r\nend\r\n\r\nif Shaco.Combo.E:Value() then\r\n if Ready(_E) and ValidTarget(unit, 625) then\r\n  CastTargetSpell(unit, _E)\r\n end\r\nend\r\nend\r\n\r\nfunction JungleClear()\r\nlocal mousepos = GetMousePos()\r\nif Shaco.Jungle.Jung:Value() then\r\n\t\tfor _,J in pairs(minionManager.objects) do\r\n\r\n\t\t\tif CanUseSpell(myHero, _W) == READY and Shaco.Jungle.W:Value() and ValidTarget(J, 425) then\r\n\t\t\t\tCastSkillShot(_W,mousepos.x,mousepos.y,mousepos.z)\r\n\t\t\t\tend\r\n\r\n\t\t\t\tif CanUseSpell(myHero, _E) == READY and Shaco.Jungle.E:Value() and ValidTarget(J, 625) then\r\n\t\t\t\tCastTargetSpell(J, _E)\r\n\t\t\t\tend\r\n\t\tend\r\n\tend\r\nend\r\n\r\nfunction LaneClear()\r\nlocal mousepos = GetMousePos()\r\nif Shaco.LaneClear.LC:Value() then\r\n\tif Shaco.LaneClear.LC:Value() then\r\n\r\n\t\t if IOW:Mode() == 'LaneClear' then\r\n\r\n\t\t local BestPos = GetLineFarmPosition(625, 85, MINION_ENEMY)\r\n\r\n\t\t\t\tif CanUseSpell(myHero, _W) == READY and Shaco.LaneClear.W:Value() and ValidTarget(M, 425) then\r\n\t\t\t\tCastSkillShot(_W)\r\n\t\t\t\tend\r\n\r\n\t\t\t\tif CanUseSpell(myHero, _E) == READY and Shaco.LaneClear.E:Value() and ValidTarget(M, 625) then\r\n\t\t\t\tCastTargetSpell(BestPos,_E)\r\n\t\t\t\tend\r\n\r\n\t\tend\r\n\tend\r\nend\r\nend\r\n\r\nfunction AutoUltimate()\r\n\r\n if Shaco.Misc.ATR:Value() then\r\n  if GotBuff(myHero, \"recall\") ~= 1 then\r\n  if CanUseSpell(myHero, _R) == READY and EnemiesAround(myHeroPos(), 650) >= 1 and (GetCurrentHP(myHero)/GetMaxHP(myHero))*100 < Shaco.Misc.UltHP:Value() then\r\n CastSpell( _R)\r\n   end\r\n  end\r\n end\r\n\r\nend\r\n\r\nOnDraw(function()\r\nif Ready(_E) then\r\n  DrawCircle(myHeroPos().x,myHeroPos().y,myHeroPos().z,GetCastRange(myHero,_E),3,100,0xFFFFFFFF)\r\nend\r\n\r\n\r\nif Ready(_Q) then\r\n  DrawCircle(myHeroPos().x,myHeroPos().y,myHeroPos().z,GetCastRange(myHero,_Q),3,100,GoS.Blue)\r\nend\r\n\r\n\r\nif Ready(_W) then\r\n  DrawCircle(myHeroPos().x,myHeroPos().y,myHeroPos().z,GetCastRange(myHero,_W),3,100,GoS.Green)\r\nend\r\n\r\nif Ready(_R) then\r\n  DrawCircle(myHeroPos().x,myHeroPos().y,myHeroPos().z,GetCastRange(myHero,_R),3,100,GoS.Red)\r\nend\r\nend)\r\n"}}
{"actor":{"display_login":"zareslol"}}