View difference between Paste ID: AmrJBXbh and b3Az8j1h
SHOW: | | - or go back to the newest paste.
1-
require('MapPositionGOS')
1+
2-
require('MapPosition') --put these libs in your COMMON
2+
3-
require('MapPosition_walls_1_1') --put these libs in your COMMON  
3+
--done by Laiha -- REWORKED--
4-
require('MapPosition_bushes_1')
4+
Table = { noa = 0 }
5-
require('2DGeometry')--put these libs in your COMMON
5+
require('Inspired')
6
require('IWalk')
7
AddInfo("Vayne", "Gosu Vayne:")
8-
--vayne version 0.0.8 // credits to maxxel deftsu inspired 
8+
AddButton("Q", "Use Q gosu logic", true)
9-
PrintChat("its funny how people can copy the script edit this and pretend they did it huh?")
9+
AddButton("E", "Use E gosu logic", true)
10
AddButton("Activator", "Use Activator", true)
11-
    for _, Targets in pairs(GetEnemyHeroes()) do 
11+
12-
   local TargetPos=GetOrigin(Targets) 
12+
13-
   local drawPos = WorldToScreen(1, TargetPos.x, TargetPos.y, TargetPos.z) -- Draw Position for AA Text
13+
	IWalk()
14-
   local Damage = GetBaseDamage(myHero) + GetBonusDmg(myHero) -- Damage without W extra Damage
14+
        for _, unit in pairs(GetEnemyHeroes()) do
15-
   if GetCastLevel(myHero, _W) > 0 then -- Check if W is skilled
15+
	        local unitPos=GetOrigin(unit)
16-
if GetCastLevel(myHero, _W) == 1 then      -- W Spell Level 1
16+
	        local drawPos = WorldToScreen(1,unitPos.x,unitPos.y,unitPos.z)
17-
Damage = 20 + (GetMaxHP(Targets) / 100 * 4) + (GetBaseDamage(myHero) + GetBonusDmg(myHero)) 
17+
	        local damage=GetCurrentHP(unit)/(GetBaseDamage(myHero)+GetBonusDmg(myHero))
18-
elseif GetCastLevel(myHero, _W) == 2 then  -- W Spell Level 2
18+
		if(GetCastLevel(myHero, _W) > 0 then
19-
Damage = 30 + (GetMaxHP(Targets) / 100 * 5) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
19+
		local tdamage= damage/3
20-
elseif GetCastLevel(myHero, _W) == 3 then  -- W Spell Level 3
20+
		local ndamage= damage-rdamage
21-
Damage = 40 + (GetMaxHP(Targets) / 100 * 6) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
21+
		if GetCastLevel(myHero, _W) == 1 then
22-
elseif GetCastLevel(myHero, _W) == 4 then  -- W Spell Level 4
22+
			damage=  20  +GetMaxHP(unit)/100*4+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
23-
Damage = 50 + (GetMaxHP(Targets) / 100 * 7) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
23+
		elseif GetCastLevel(myHero, _W)==2
24-
elseif GetCastLevel(myHero, _W) == 5 then  -- W Spell Level 5
24+
			damage=  30  +GetMaxHP(unit)/100*5+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
25-
Damage = 60 + (GetMaxHP(Targets) / 100 * 8) + (GetBaseDamage(myHero) + GetBonusDmg(myHero)) 
25+
		elseif GetCastLevel(myHero, _W)==3
26-
end 
26+
			damage=  40  +GetMaxHP(unit)/100*6+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
27-
end 
27+
		elseif GetCastLevel(myHero, _W)==2
28-
if GetCastLevel(myHero, _W) == 0 then 
28+
			damage=  50  +GetMaxHP(unit)/100*7+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
29-
DrawText((math.floor(GetCurrentHP(Targets) / Damage) + 0.0) .." AA to Kill", 20, drawPos.x, drawPos.y, 0xffffffff) 
29+
		elseif GetCastLevel(myHero, _W)==2
30-
elseif GetCastLevel(myHero, _W) >= 1 then  -- W Spell Level 1 or higher
30+
			damage=  60  +GetMaxHP(unit)/100*8+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
31-
DrawText((math.floor(GetCurrentHP(Targets) / Damage * 2) + 0.0) .." AA to Kill", 20, drawPos.x, drawPos.y, 0xffffffff) 
31+
		end
32-
end 
32+
		end
33-
    end 
33+
	        DrawText( math.ceil(damage+0,5) .." AA to kill",20,drawPos.x,drawPos.y,0xffffffff)
34-
if KeyIsDown(0x20) then
34+
		local vectorx = unitPos.x-GetOrigin(myHero).x
35-
local unit = GetTarget(1000)
35+
		local vectory = unitPos.y-GetOrigin(myHero).y
36-
AutoE()
36+
		local vectorz = unitPos.z-GetOrigin(myHero).z
37-
if ValidTarget(unit, 550) then
37+
		local dist= math.sqrt(vectorx^2+vectory^2+vectorz^2)
38-
local stacks= GotBuff(unit,"VayneSilveredBolts")
38+
		ourcoord={x = unitPos.x + 450 * vectorx / dist ,y = unitPos.y + 450 * vectory / dist, z = unitPos.z + 450 * vectorz / dist}
39
		DrawCircle(ourcoord.x,ourcoord.y,ourcoord.z,25,1,1,0xffffffff)
40-
if CanUseSpell(myHero, _Q) == READY and stacks>1 then
40+
        end
41-
local mousePos=GetMousePos()
41+
	if GetKeyValue("Combo") then
42-
CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
42+
		local unit = GetTarget(1000)
43-
end
43+
		if ValidTarget(unit, 550) then
44-
--if GetButtonValue("E") then
44+
			local stacks= GotBuff(unit,"VayneSilveredBolts")
45-
--AddGapcloseEvent(_E, 450, unit)
45+
			if GetButtonValue("Q") then
46
				if CanUseSpell(myHero, _Q) == READY and stacks>1 then
47-
 
47+
						local mousePos=GetMousePos()
48-
--if GetButtonValue("E") then
48+
						CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
49-
--if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
49+
				end
50-
--CastTargetSpell(unit, _R)
50+
			end
51
			--if GetButtonValue("E") then
52
				--AddGapcloseEvent(_E, 450, unit)	
53
			--end
54-
if GetItemSlot(myHero,3153)>0 then
54+
						
55-
CastTargetSpell(unit, GetItemSlot(myHero,3153))
55+
			--if GetButtonValue("E") then
56-
end
56+
				--if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
57-
if GetItemSlot(myHero,3144)>0 then
57+
					--CastTargetSpell(unit, _R)
58-
CastTargetSpell(unit, GetItemSlot(myHero,3144))
58+
				--end
59-
end
59+
			--end
60-
if GetItemSlot(myHero,3142)>0 then
60+
			if  GetButtonValue("Activator") then
61-
CastTargetSpell(unit, GetItemSlot(myHero,3142))
61+
				if GetItemSlot(myHero,3153)>0 then
62-
end
62+
					CastTargetSpell(unit, GetItemSlot(myHero,3153))
63
				end
64-
end
64+
				if GetItemSlot(myHero,3144)>0 then
65-
--if  GetButtonValue("Activator") then
65+
					CastTargetSpell(unit, GetItemSlot(myHero,3144))
66-
--CastItem(myHero,GetItemSlot(myHero,3140))
66+
				end
67-
--CastItem(myHero,GetItemSlot(myHero,3149))
67+
				if GetItemSlot(myHero,3142)>0 then
68
					CastTargetSpell(unit, GetItemSlot(myHero,3142))
69-
end
69+
				end
70-
 
70+
			end
71
		end
72
		--if  GetButtonValue("Activator") then
73-
 
73+
			--CastItem(myHero,GetItemSlot(myHero,3140))
74-
--IM THE FIRST ONE WHO DOES THAT , GIVE ME THE HONORS SLUTS AND USE CREDITS BEFORE I FKING RAPE YOU *******
74+
			--CastItem(myHero,GetItemSlot(myHero,3149))
75
		--end	
76
	end
77-
--if spell.name:lower():find("attack") then
77+
78-
--Table.noa=Table.noa+1
78+
79-
--if Table.noa > 3 then
79+
80-
--Table.noa=0
80+
81
--IM THE FIRST ONE WHO DOES THAT , GIVE ME THE HONORS SLUTS AND USE CREDITS BEFORE I FKING RAPE YOU ASSHOLE
82
--OnProcessSpell(function(unit, spell)
83
--if unit and unit == myHero and spell then
84-
 
84+
	--if spell.name:lower():find("attack") then
85-
--end)
85+
		--Table.noa=Table.noa+1
86-
 
86+
		--if Table.noa > 3 then
87-
function AutoE()
87+
			--Table.noa=0
88-
for _,unit in pairs(GetEnemyHeroes()) do
88+
		--end
89-
if ValidTarget(unit,20000) then
89+
	--end
90-
local enemyposx,enemyposy,enemypoz,selfx,selfy,selfz
90+
91-
local distance1=24
91+
				
92-
local distance2=118
92+
--end)