View difference between Paste ID: Qk7pfWPA and RnRY6bPA
SHOW: | | - or go back to the newest paste.
1-
-- leeched from inspired cassiopea <3
1+
2
require('IMenu')
3
require('IWalk')
4
AddButton("E", "Auto E logic", true)
5-
AddButton("Activator", "Use Activator", true)
5+
6
7-
        DrawMenu()
7+
struct vector3{
8-
        local potionslot = GetItemSlot(myHero,3157)
8+
int x
9-
        local potionslot2 = GetItemSlot(myHero,3153)
9+
int y
10-
        local potionslot3 = GetItemSlot(myHero,3144)
10+
int z
11-
        if((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 and GetButtonValue("Activator")then
11+
}
12-
                if CanUseSpell(myHero,_W)== READY then
12+
13-
                        local mPos = GetMyHeroPos()
13+
	DrawMenu()
14-
                        CastSkillShot(_W,mPos.x,mPos.y,mPos.z)
14+
15-
                else
15+
16-
				if GetItemSlot(myHero,3157) > 0 then
16+
	if GetButtonValue("E") then
17-
                        CastTargetSpell(myHero,3157)
17+
	autoCondemn()
18-
						end
18+
	end
19-
                end
19+
20-
        end
20+
21
        if KeyIsDown(0x20) then
22-
        local unit = GetTarget(1000)
22+
		combo()
23-
        if ValidTarget(unit, 1000) then
23+
	end
24-
                if GetButtonValue("Activator") then
24+
25-
			CastItems(unit)
25+
		
26-
                        --if potionslot2 > 0 then
26+
end
27-
                                --CastTargetSpell(myHero,3153)
27+
28-
                        --end
28+
function combo()
29-
                        --if potionslot3 > 0 then
29+
30-
                               -- CastTargetSpell(myHero,3144)
30+
end
31-
                        end
31+
32-
                end
32+
function autoCondemn()
33-
                if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 700) then
33+
34-
                        CastTargetSpell(unit, _R)
34+