Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class 'Plugin'
- if myHero.charName ~= "Nami" then return end
- local Menu
- local Skills, Keys, Items, Data, Jungle, Helper, MyHero, Minions, Crosshair, Orbwalker = AutoCarry.Helper:GetClasses()
- local AllyList = {}
- local Q = {
- range = 875,
- speed = 1750,
- delay = 0.5,
- width = 200
- }
- function Plugin:__init()
- PrintChat("Nami the British Edition v0.1")
- -- Prodiction
- require 'Prodiction'
- Prod = ProdictManager.GetInstance()
- ProQ = Prod:AddProdictionObject(_Q, Q.range, Q.speed, Q.delay, Q.width)
- Prodiction.AddCallbackDash(Q.range, Q.speed, Q.delay, Q.width, myHero, OnPredictionDash)
- end
- function Plugin:OnTick()
- if myHero.dead then
- return
- end
- Checks()
- --[[ Mixed Mode ]]--
- if Menu.hm.hmuseW then
- if Keys.MixedMode and ValidTarget(Target) then
- CastSpell(_W, Target)
- end
- end
- --[[Carry mode ]]--
- -- Auto carry Q Casting
- if Menu.ac.acuseQ then
- if Keys.AutoCarry and ValidTarget(Target) then
- ProQ:GetPredictionCallBack(Target, CastQ)
- end
- end
- -- Casting W
- if Menu.ac.acuseW then
- if Keys.AutoCarry and ValidTarget(Target) then
- CastSpell(_W, myHero)
- end
- end
- -- Casting E
- if Menu.ac.acuseE and Keys.AutoCarry then
- for i=1, heroManager.iCount do
- local allytarget = heroManager:GetHero(i)
- if allytarget.team == myHero.team and not allytarget.dead and allytarget.health > 0 and GetDistance(allytarget) < 950 then
- if Menu.ac["teammateE"..i] then
- CastSpell(_E, allytarget)
- end
- end
- end
- end
- end
- ---------------------------------------------------------------------------
- ----------------------------------------------------------------------------
- --[[ Functions ]]--
- -- Checks
- function Checks()
- --target
- Target = AutoCarry.Crosshair:GetTarget()
- -- Cool downs
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- end
- -- Load Allies for Casting E
- function LoadEMenu()
- for i=1, heroManager.iCount do
- local teammate = heroManager:GetHero(i)
- if teammate.team == myHero.team then
- Menu.ac:addParam("teammateE"..i, "Cast E on "..teammate.charName, SCRIPT_PARAM_ONOFF, true)
- end
- end
- end
- --[[ Prodiction basic calls ]]--
- -- Cast Q
- function CastQ(unit, pos)
- CastSpell(_Q, pos.x, pos.z)
- end
- --[[ Prodiction adv calls ]]--
- -- On Dashing
- function OnPredictionDash(unit, pos, info)
- -- PrintChat("Target Dashed")
- if Menu.al.alqdash and unit and unit.team ~= myHero.team and pos then
- CastSpell(_Q, pos.x, pos.z)
- end
- end
- ---------------------------------------------------------------------------
- --[[ Menu ]]--
- Menu = AutoCarry.Plugins:RegisterPlugin(Plugin(), "Namis fish tank")
- -- auto carry menu
- Menu:addSubMenu("Auto Carry Mode", "ac")
- Menu.ac:addParam("acuseQ", "Cast Q:Aqua Prison", SCRIPT_PARAM_ONOFF, true)
- Menu.ac:addParam("acuseW", "Cast W:Ebb and Flow", SCRIPT_PARAM_ONOFF, true)
- Menu.ac:addParam("acuseE", "Cast E:Tidecaller's Blessing", SCRIPT_PARAM_ONOFF, true)
- LoadEMenu()
- -- harass menu
- Menu:addSubMenu("Harass Mode", "hm")
- Menu.hm:addParam("hmuseQ", "Cast Q:Aqua Prison", SCRIPT_PARAM_ONOFF, true)
- Menu.hm:addParam("hmuseW", "Cast W:Ebb and Flow", SCRIPT_PARAM_ONOFF, true)
- Menu.hm:addParam("hmuseE", "Cast E:Tidecallers's Blessing", SCRIPT_PARAM_ONOFF, true)
- --Advanced Logic
- Menu:addSubMenu("Advanced Logic", "al")
- Menu.al:addParam("alqdash", "Q at dashing location", SCRIPT_PARAM_ONOFF, true)
- -- debug
- Menu:addSubMenu("Debugging", "db")
- Menu.db:addParam("dbSacRangeSwitch", "Change SAC Range Switch", SCRIPT_PARAM_ONOFF, true)
- Menu.db:addParam("dbSacRange", "Sac Range", SCRIPT_PARAM_SLICE, 600, 50, 1800, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement