-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathability_item_usage_chaos_knight.lua
76 lines (75 loc) · 1.35 KB
/
ability_item_usage_chaos_knight.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
require(GetScriptDirectory() .. "/logic")
require(GetScriptDirectory() .. "/ability_item_usage_generic")
local npcBot = GetBot()
local ComboMana = 0
local debugmode=false
local Talents ={}
local Abilities ={}
for i=0,23,1 do
local ability=npcBot:GetAbilityInSlot(i)
if(ability~=nil)
then
if(ability:IsTalent()==true)
then
table.insert(Talents,ability:GetName())
else
table.insert(Abilities,ability:GetName())
end
end
end
local AbilitiesReal =
{
npcBot:GetAbilityByName(Abilities[1]),
npcBot:GetAbilityByName(Abilities[2]),
npcBot:GetAbilityByName(Abilities[3]),
npcBot:GetAbilityByName(Abilities[4])
}
local AbilityToLevelUp=
{
Abilities[1],
Abilities[2],
Abilities[1],
Abilities[2],
Abilities[1],
Abilities[2],
Abilities[1],
Abilities[2],
Abilities[4],
"talent",
Abilities[3],
Abilities[4],
Abilities[3],
Abilities[3],
"talent",
Abilities[3],
"nil",
Abilities[4],
"nil",
"talent",
"nil",
"nil",
"nil",
"nil",
"talent",
}
local TalentTree={
function()
return Talents[2]
end,
function()
return Talents[4]
end,
function()
return Talents[6]
end,
function()
return Talents[8]
end
}
logic.CheckAbilityBuild(AbilityToLevelUp)
function AbilityLevelUpThink()
ability_item_usage_generic.AbilityLevelUpThink2(AbilityToLevelUp,TalentTree)
end
function CourierUsageThink()
ability_item_usage_generic.CourierUsageThink()
end