Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Nami Script spliced together by veers13
- Stolen from:
- - SonaHarass 1.2 by eXtragoZ
- - Nunu The Insane Top-Laner v4 by Manciuszz
- dirty as fuck
- ]]
- if myHero.charName == "Nami" then
- require "AllClass"
- --[[ Config ]]
- local HK=32 --spacebar
- local HKE=67 --C
- local HAR=88 --X
- --[[ Code ]]
- local range = 825
- local Wrange = 725
- local Erange = 950
- -- Active
- local Active = false
- local spamW = true
- local harass = false
- local spamE = false
- local ts
- local waittxt = {}
- function OnLoad()
- NCConfig = scriptConfig("Nami Combo", "namicombo")
- ts = TargetSelector(TARGET_LOW_HP,range,DAMAGE_MAGIC)
- ts.name = "Nami"
- NCConfig:addTS(ts)
- for i=1, heroManager.iCount do waittxt[i] = i*3 end
- end
- function OnTick()
- ts:update()
- if ts.target then ts:SetPrediction(GetDistance(ts.target)/0.8) end
- Prediction__OnTick()
- if Active and myHero:CanUseSpell(_Q) == READY then
- for i=1, heroManager.iCount do
- local enemy = heroManager:GetHero(i)
- if enemy.team ~= myHero.team and enemy.visible and enemy.dead == false and myHero:GetDistance(enemy) < range then
- CastSpell(_Q, ts.nextPosition.x, ts.nextPosition.z)
- end
- end
- end
- if Active and spamW and myHero:CanUseSpell(_W) == READY then
- for i=1, heroManager.iCount do
- local teammate = heroManager:GetHero(i)
- if teammate.team == myHero.team and teammate.visible and teammate.dead == false and teammate.health/teammate.maxHealth<=0.75 and myHero:GetDistance(teammate) < Wrange then
- CastSpell(_W, teammate)
- end
- end
- end
- if harass and myHero:CanUseSpell(_W) == READY then
- for i=1, heroManager.iCount do
- local enemy = heroManager:GetHero(i)
- if enemy.team ~= myHero.team and enemy.visible and enemy.dead == false and myHero:GetDistance(enemy) < Wrange then
- CastSpell(_W, ts.target)
- end
- end
- end
- BloodBoilBuff()
- end
- function BloodBoilBuff()
- if Active and spamE and myHero:CanUseSpell(_E) == READY then
- local buffTarget
- local players = GetPlayerz()
- for i=1, #players, 1 do
- if GetDistance(players[i]) <= 950 then
- if (players[i].charName == "Graves" or players[i].charName == "Sivir" or players[i].charName == "Tristana" or players[i].charName == "Ezreal" or players[i].charName == "Urgot" or players[i].charName == "Vayne" or players[i].charName == "MissFortune" or players[i].charName == "Kogmaw" or players[i].charName == "Ashe" or players[i].charName == "Caitlyn" or players[i].charName == "Varus" or players[i].charName == "Draven") then
- buffTarget = players[i]
- break
- end
- end
- end
- if buffTarget == nil then
- local mostad = 0
- for i=1, #players, 1 do
- if GetDistance(players[i]) <= 950 and not players[i].isMe and mostad < players[i].totalDamage then
- mostad = players[i].totalDamage
- buffTarget = players[i]
- end
- end
- end
- if buffTarget ~= nil then
- CastSpell(_E, buffTarget)
- end
- end
- end
- function GetPlayerz()
- local teammates = {}
- for i=1, heroManager.iCount, 1 do
- local member = heroManager:getHero(i)
- if member ~= nil and member.type == "obj_AI_Hero" and member.team == myHero.team then
- table.insert(teammates,member)
- end
- end
- return teammates
- end
- function OnDraw()
- if not myHero.dead then
- DrawCircle(myHero.x, myHero.y, myHero.z, range, 0x992D3D)
- DrawCircle(myHero.x, myHero.y, myHero.z, Erange, 0x992D3D)
- end
- end
- function OnWndMsg(msg,key)
- if key == HK then
- Active = (msg == KEY_DOWN)
- end
- if key == HAR then
- harass = (msg == KEY_DOWN)
- end
- if key == HKE and msg == KEY_DOWN then
- if spamE then
- spamE = false
- PrintChat("Auto E: OFF")
- else
- spamE = true
- PrintChat("Auto E: ON")
- end
- end
- end
- PrintChat(" >> Quick 'n Dirty Nami loaded!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement