Illprotectjew

Pantheon Q Problems

May 29th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. --Panth Functions
  2. function PanthE()
  3.         target = GetWeakEnemy("PHYS", 600, "NEARMOUSE")
  4.         if target ~= nil then
  5.             AttackTarget(target)
  6.                 if CanCastSpell("E") then CastSpellXYZ('E',GetFireahead(target,2,20))
  7.                 etimer = GetTickCount() + 825
  8.                 end
  9.         end
  10. end
  11.  
  12. function PanthW()
  13.     if CanCastSpell("W") then
  14.         CastSpellTarget("W",target)
  15.     end
  16. end
  17.  
  18. --function PanthQ()
  19. --  if target ~= nil and IsSpellReady("Q") then
  20. --      CastSpellTarget("Q",target)
  21. --  end
  22. --end  
  23.  
  24. function PanthDraw()
  25.     CustomCircle(600,2,3,myHero)
  26. end
  27.  
  28. --End Panth Functions
  29.  
  30. if myHero.name == "Pantheon" then
  31.     function OnTick()
  32.     local etimer = 0
  33.     DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
  34.     PanthDraw()
  35.     target = GetWeakEnemy('PHYS',600)
  36.         if AIOConfig.PantheonCombo then
  37.             if target == nil then
  38.                 if GetTickCount() > etimer then
  39.                     MoveToMouse()
  40.                 end
  41.             end
  42.             if target ~= nil then      
  43.                     DrawSphere(50,25,3,target.x,target.y+300,target.z)
  44.                     DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
  45.                     AttackTarget(target)
  46.                     UtilityFunction()
  47.                         if GetTickCount() > etimer and GetDistance(myHero, target) < 600 then
  48.                         CastSpellTarget("Q",target)
  49.                         end
  50.                         if GetDistance(myHero, target) < 600 then  
  51.                             PanthW()
  52.                         end    
  53.                         if GetDistance(myHero, target) < 600 then  
  54.                             PanthE()
  55.                         end
  56.                         end
  57.                 end
  58.                 end
  59.             end
Advertisement
Add Comment
Please, Sign In to add comment