Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- aVladimir by Anonymous v0.1
- -- based on Eve script, for fun :P
- --
- class 'Plugin'
- require 'AoE_Skillshot_Position'
- if myHero.charName ~= "Vladimir" then return end
- local Target
- local UltByScript = false
- function Plugin:__init()
- AutoCarry.Crosshair:SetSkillCrosshairRange(700)
- end
- function Plugin:OnTick()
- Target = AutoCarry.Crosshair:GetTarget()
- if Menu.spamQE then
- if Target ~= nil and AutoCarry.Keys.AutoCarry then
- local CanQ = (myHero:CanUseSpell(_Q) == READY and GetDistance(Target, myHero) < 600)
- local CanE = (myHero:CanUseSpell(_E) == READY and GetDistance(Target, myHero) < 600 and myHero.health/myHero.maxHealth*100 >= Menu.minEhp)
- if CanQ then CastSpell(_Q, Target) end
- if CanE then CastSpell(_E) end
- end
- end
- if Menu.burstTarget then
- if Target ~= nil then
- local CanQ = (myHero:CanUseSpell(_Q) == READY and GetDistance(Target, myHero) < 600)
- local CanE = (myHero:CanUseSpell(_E) == READY and GetDistance(Target, myHero) < 600)
- local CanR = (myHero:CanUseSpell(_R) == READY and GetDistance(Target, myHero) < 700)
- if CanR then CastSpell(_R, Target.x, Target.z) end -- Packets will target it better anyway :p
- if CanQ then CastSpell(_Q, Target) end
- if CanE then CastSpell(_E) end
- --if not AutoCarry.Keys.AutoCarry then myHero:Attack(Target) end
- end
- end
- end
- function Plugin:OnDraw()
- if myHero ~= nil and not myHero.dead and Menu.drawQrange then DrawCircle(myHero.x, myHero.y, myHero.z, 600, 0xFFFF0000) end
- if myHero ~= nil and not myHero.dead and Menu.drawRrange and myHero:CanUseSpell(_R) == READY then DrawCircle(myHero.x, myHero.y, myHero.z, 700, 0xFF80FF00) end
- if Menu.drawRmec then -- Test MEC IT Draws where ultimate will be casted :) You can uncomment it, and it will work.
- local Enemies = AutoCarry.Helper.EnemyTable
- local ClosestEnemy = nil
- local Position1 = { x=mousePos.x, y=mousePos.y, z=mousePos.z }
- for i, Enemy in pairs(Enemies) do
- if Enemy ~= nil and not Enemy.dead and Enemy.visible then
- if ClosestEnemy ~= nil then
- if GetDistance(Enemy, Position1) < GetDistance(ClosestEnemy, Position1) then
- ClosestEnemy = Enemy
- end
- else
- ClosestEnemy = Enemy
- end
- end
- end
- local UltTargetted = ClosestEnemy
- if UltTargetted ~= nil and GetDistance(UltTargetted, CastPosition) < 250 then
- UltTarget = UltTargetted
- else
- UltTarget = AutoCarry.Crosshair:GetTarget()
- end
- if UltTarget ~= nil then
- local ValidEnemies = 0
- for i, Enemy in pairs(Enemies) do
- if Enemy ~= nil and not Enemy.dead and Enemy.visible and GetDistance(Enemy, myHero) < 700+350 then ValidEnemies = ValidEnemies + 1 end
- end
- if ValidEnemies > 1 then
- local spellPos = GetAoESpellPosition(350, UltTarget)
- DrawCircle(spellPos.x, spellPos.y, spellPos.z, 350, 0xFFFF0000)
- else
- DrawCircle(UltTarget.x, UltTarget.y, UltTarget.z, 350, 0xFFFF0000)
- end
- end
- end
- end
- function Plugin:OnSendPacket(p)
- local packet = Packet(p)
- if packet:get('name') == 'S_CAST' then
- local SpellID = packet:get('spellId')
- if SpellID == SPELL_4 then
- local Enemies = AutoCarry.Helper.EnemyTable
- local CastPosition = { x = packet:get('toX'), y = packet:get('toY'), z = packet:get('toY') }
- if Menu.blockR then
- local ValidTargets = 0
- for i, Enemy in pairs(Enemies) do
- if Enemy ~= nil and not Enemy.dead and Enemy.visible and GetDistance(Enemy, CastPosition) < 350 then ValidTargets = ValidTargets + 1 end
- end
- if ValidTargets == 0 then p:Block() end
- end
- if Menu.autoUltaiming then
- if UltByScript == true then
- UltByScript = false
- elseif UltByScript == false then
- p:Block()
- UltByScript = true
- local ClosestEnemy = nil
- local Position1 = { x=CastPosition.x, y=CastPosition.y, z=CastPosition.z }
- for i, Enemy in pairs(Enemies) do
- if Enemy ~= nil and not Enemy.dead and Enemy.visible then
- if ClosestEnemy ~= nil then
- if GetDistance(Enemy, Position1) < GetDistance(ClosestEnemy, Position1) then
- ClosestEnemy = Enemy
- end
- else
- ClosestEnemy = Enemy
- end
- end
- end
- local UltTargetted = ClosestEnemy
- if UltTargetted ~= nil and GetDistance(UltTargetted, CastPosition) < 300 then
- UltTarget = UltTargetted
- else
- UltTarget = AutoCarry.Crosshair:GetTarget()
- end
- if UltTarget ~= nil then
- local ValidEnemies = 0
- for i, Enemy in pairs(Enemies) do
- if Enemy ~= nil and not Enemy.dead and Enemy.visible and GetDistance(Enemy, myHero) < 700+350 then ValidEnemies = ValidEnemies + 1 end
- end
- if ValidEnemies > 1 then
- local spellPos = GetAoESpellPosition(350, UltTarget)
- CastSpell(_R, spellPos.x, spellPos.z)
- else
- CastSpell(_R, UltTarget.x, UltTarget.z)
- end
- end
- end
- end
- end
- end
- end
- --[[function Plugin:OnProcessSpell(unit, spell)
- if Menu.dodgeW then
- local Enemies = AutoCarry.Helper.EnemyTable
- for _, Enemy in pairs(Enemies) do
- if unit == Enemy then
- if unit.charName == "Lux" then -- Dodge lux spells
- if spell.name == "" then
- end
- end
- end
- end
- end
- end]]
- Menu = AutoCarry.Plugins:RegisterPlugin(Plugin(), "aVladimir v1.0")
- Menu:addParam("Information1", " aVladimir v1.0 by Anonymous", SCRIPT_PARAM_INFO, "")
- Menu:addParam("Information2", "== Helper-Settings: ==", SCRIPT_PARAM_INFO, "")
- Menu:addParam("burstTarget", "Full Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("A"))
- Menu:addParam("spamQE","QE Haras in AutoCarry/MixedMode", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("minEhp","Dont harras with E if below X% HP", SCRIPT_PARAM_SLICE, 30, 0, 100, 0)
- --Menu:addParam("dodgeW","Dodge dangerous spells with W", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("Information4", "VIP only functions:", SCRIPT_PARAM_INFO, "")
- Menu:addParam("blockR","Block wrong ult", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("autoUltaiming","Automaticly aim with ult", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("Information3", "== Drawer-Settings: ==", SCRIPT_PARAM_INFO, "")
- Menu:addParam("drawQrange","Draw QE range", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("drawRrange","Draw R range", SCRIPT_PARAM_ONOFF, true)
- Menu:addParam("drawRmec","Draw R prediction", SCRIPT_PARAM_ONOFF, false) -- This is only to let you see how it casts ultimate, imo should be disable during game.
Advertisement
Add Comment
Please, Sign In to add comment