-
Notifications
You must be signed in to change notification settings - Fork 6
/
item_purchase_undying.lua
79 lines (59 loc) · 1.63 KB
/
item_purchase_undying.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
77
78
79
-- Include this before require to fix Mac
local dir = GetScriptDirectory();
local function GetScriptDirectory()
if string.sub(dir, 1, 6) == "/Users" then
return string.match(dir, '.*/(.+)')
end
return dir;
end
-----------------------------------------
local Helper = require(GetScriptDirectory() .. "/helper");
local tableItemsToBuy = {
"item_stout_shield",
"item_branches",
"item_branches",
"item_tango",
"item_tango",
"item_boots",
"item_energy_booster",
"item_vitality_booster",
"item_ring_of_health",
"item_broadsword",
"item_chainmail",
"item_robe",
"item_ring_of_regen",
"item_recipe_headdress",
"item_chainmail",
"item_recipe_buckler",
"item_recipe_mekansm",
"item_platemail",
"item_mystic_staff",
"item_recipe_shivas_guard",
"item_chainmail",
"item_branches",
"item_recipe_buckler",
"item_recipe_crimson_guard",
"item_vitality_booster",
"item_reaver",
"item_recipe_heart",
"item_recipe_guardian_greaves",
};
local abilities = {
"special_bonus_gold_income_15",
"special_bonus_hp_300",
"special_bonus_unique_undying",
"special_bonus_unique_undying_2",
"undying_flesh_golem",
"undying_decay",
"undying_tombstone",
"undying_soul_rip",
}
----------------------------------------------------------------------------------------------------
function ItemPurchaseThink()
local npcBot = GetBot();
local buildTable = tableItemsToBuy;
Helper.AbilityUpgrade(npcBot, abilities);
Helper.PurchaseBootsAndTP(npcBot);
Helper.PurchaseItems(npcBot, buildTable);
end
----------------------------------------------------------------------------------------------------