SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Nami Script spliced together by veers13 | |
3 | Stolen from: | |
4 | - SonaHarass 1.2 by eXtragoZ | |
5 | - Nunu The Insane Top-Laner v4 by Manciuszz | |
6 | ||
7 | dirty as fuck | |
8 | ]] | |
9 | ||
10 | if myHero.charName == "Nami" then | |
11 | require "AllClass" | |
12 | ||
13 | --[[ Config ]] | |
14 | local HK=32 --spacebar | |
15 | local HKE=67 --C | |
16 | local HAR=88 --X | |
17 | ||
18 | --[[ Code ]] | |
19 | local range = 825 | |
20 | local Wrange = 725 | |
21 | local Erange = 950 | |
22 | ||
23 | -- Active | |
24 | local Active = false | |
25 | local spamW = true | |
26 | local harass = false | |
27 | local spamE = false | |
28 | ||
29 | local ts | |
30 | local waittxt = {} | |
31 | ||
32 | function OnLoad() | |
33 | NCConfig = scriptConfig("Nami Combo", "namicombo") | |
34 | ts = TargetSelector(TARGET_LOW_HP,range,DAMAGE_MAGIC) | |
35 | ts.name = "Nami" | |
36 | NCConfig:addTS(ts) | |
37 | for i=1, heroManager.iCount do waittxt[i] = i*3 end | |
38 | end | |
39 | ||
40 | function OnTick() | |
41 | ts:update() | |
42 | if ts.target then ts:SetPrediction(GetDistance(ts.target)/0.8) end | |
43 | Prediction__OnTick() | |
44 | ||
45 | if Active and myHero:CanUseSpell(_Q) == READY then | |
46 | for i=1, heroManager.iCount do | |
47 | local enemy = heroManager:GetHero(i) | |
48 | if enemy.team ~= myHero.team and enemy.visible and enemy.dead == false and myHero:GetDistance(enemy) < range then | |
49 | CastSpell(_Q, ts.nextPosition.x, ts.nextPosition.z) | |
50 | end | |
51 | end | |
52 | end | |
53 | if Active and spamW and myHero:CanUseSpell(_W) == READY then | |
54 | for i=1, heroManager.iCount do | |
55 | local teammate = heroManager:GetHero(i) | |
56 | 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 | |
57 | CastSpell(_W, teammate) | |
58 | end | |
59 | end | |
60 | end | |
61 | if harass and myHero:CanUseSpell(_W) == READY then | |
62 | for i=1, heroManager.iCount do | |
63 | local enemy = heroManager:GetHero(i) | |
64 | if enemy.team ~= myHero.team and enemy.visible and enemy.dead == false and myHero:GetDistance(enemy) < Wrange then | |
65 | CastSpell(_W, ts.target) | |
66 | end | |
67 | end | |
68 | end | |
69 | ||
70 | BloodBoilBuff() | |
71 | end | |
72 | ||
73 | function BloodBoilBuff() | |
74 | if Active and spamE and myHero:CanUseSpell(_E) == READY then | |
75 | local buffTarget | |
76 | local players = GetPlayerz() | |
77 | ||
78 | for i=1, #players, 1 do | |
79 | if GetDistance(players[i]) <= 950 then | |
80 | 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 | |
81 | buffTarget = players[i] | |
82 | break | |
83 | end | |
84 | end | |
85 | end | |
86 | ||
87 | if buffTarget == nil then | |
88 | local mostad = 0 | |
89 | for i=1, #players, 1 do | |
90 | if GetDistance(players[i]) <= 950 and not players[i].isMe and mostad < players[i].totalDamage then | |
91 | mostad = players[i].totalDamage | |
92 | buffTarget = players[i] | |
93 | end | |
94 | end | |
95 | end | |
96 | ||
97 | if buffTarget ~= nil then | |
98 | CastSpell(_E, buffTarget) | |
99 | end | |
100 | ||
101 | end | |
102 | end | |
103 | ||
104 | function GetPlayerz() | |
105 | local teammates = {} | |
106 | for i=1, heroManager.iCount, 1 do | |
107 | local member = heroManager:getHero(i) | |
108 | if member ~= nil and member.type == "obj_AI_Hero" and member.team == myHero.team then | |
109 | table.insert(teammates,member) | |
110 | end | |
111 | end | |
112 | return teammates | |
113 | end | |
114 | ||
115 | function OnDraw() | |
116 | if not myHero.dead then | |
117 | DrawCircle(myHero.x, myHero.y, myHero.z, range, 0x992D3D) | |
118 | DrawCircle(myHero.x, myHero.y, myHero.z, Erange, 0x992D3D) | |
119 | end | |
120 | ||
121 | end | |
122 | ||
123 | function OnWndMsg(msg,key) | |
124 | if key == HK then | |
125 | Active = (msg == KEY_DOWN) | |
126 | end | |
127 | ||
128 | if key == HAR then | |
129 | harass = (msg == KEY_DOWN) | |
130 | end | |
131 | ||
132 | if key == HKE and msg == KEY_DOWN then | |
133 | if spamE then | |
134 | spamE = false | |
135 | PrintChat("Auto E: OFF") | |
136 | else | |
137 | spamE = true | |
138 | PrintChat("Auto E: ON") | |
139 | end | |
140 | end | |
141 | end | |
142 | PrintChat(" >> Quick 'n Dirty Nami loaded!") | |
143 | end |