Advertisement
sociophobia

Untitled

Jul 20th, 2015
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. -- leeched from inspired cassiopea <3
  2. require('Inspired')
  3. require('IMenu')
  4. require('IWalk')
  5. AddButton("Activator", "Use Activator", true)
  6. function AfterObjectLoopEvent(myHero)
  7. DrawMenu()
  8. local potionslot = GetItemSlot(myHero,3157)
  9. local potionslot2 = GetItemSlot(myHero,3153)
  10. local potionslot3 = GetItemSlot(myHero,3144)
  11. if((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 and GetButtonValue("Activator") then
  12. if CanUseSpell(myHero,_W)== READY then
  13. local mPos = GetMyHeroPos()
  14. CastSkillShot(_W,mPos.x,mPos.y,mPos.z)
  15. else
  16. CastItems(myHero,GetItemSlot(myHero,3157))
  17. end
  18. end
  19. end
  20. if KeyIsDown(0x20) then
  21. local unit = GetTarget(1000)
  22. if ValidTarget(unit, 1000) then
  23. if GetButtonValue("Activator") then
  24. CastItems(unit,GetItemSlot(myHero,3153))
  25. CastItems(unit,GetItemSlot(myHero,3144))
  26. end
  27. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 700) then
  28. CastTargetSpell(unit, _R)
  29. elseif CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 600) then
  30. CastTargetSpell(unit,_Q)
  31. elseif CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 350) then
  32. CastSkillShot(myHero,_E)
  33. end
  34. end
  35. IWalk()
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement