Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- leeched from inspired cassiopea <3
- require('Inspired')
- require('IMenu')
- require('IWalk')
- AddButton("Activator", "Use Activator", true)
- function AfterObjectLoopEvent(myHero)
- DrawMenu()
- local potionslot = GetItemSlot(myHero,3157)
- local potionslot2 = GetItemSlot(myHero,3153)
- local potionslot3 = GetItemSlot(myHero,3144)
- if((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 and GetButtonValue("Activator") then
- if CanUseSpell(myHero,_W)== READY then
- local mPos = GetMyHeroPos()
- CastSkillShot(_W,mPos.x,mPos.y,mPos.z)
- else
- CastItems(myHero,GetItemSlot(myHero,3157))
- end
- end
- end
- if KeyIsDown(0x20) then
- local unit = GetTarget(1000)
- if ValidTarget(unit, 1000) then
- if GetButtonValue("Activator") then
- CastItems(unit,GetItemSlot(myHero,3153))
- CastItems(unit,GetItemSlot(myHero,3144))
- end
- if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 700) then
- CastTargetSpell(unit, _R)
- elseif CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 600) then
- CastTargetSpell(unit,_Q)
- elseif CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 350) then
- CastSkillShot(myHero,_E)
- end
- end
- IWalk()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement