Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions ShadowShamanItemPurchase
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
-- 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_courier",
"item_tango",
"item_tango",

"item_boots",
"item_energy_booster",

"item_flying_courier",

"item_point_booster",
"item_staff_of_wizardry",
"item_ogre_axe",
"item_blade_of_alacrity",

"item_aether_lens_",

"item_ring_of_health",
"item_cloak",
"item_ring_of_regen",

"item_ring_of_regen",
"item_branches",
"item_recipe_headdress",
"item_recipe_pipe",

"item_boots",
"item_recipe_travel_boots",

"item_octarine_core",

};

local abilities = {
"special_bonus_hp_150",
"special_bonus_cast_range_100",
"special_bonus_respawn_reduction_30",
"special_bonus_unique_shadow_shaman_2",
"shadow_shaman_mass_serpent_ward",
"shadow_shaman_ether_shock",
"shadow_shaman_voodoo",
"shadow_shaman_shackles",
}

----------------------------------------------------------------------------------------------------

function ItemPurchaseThink()

local npcBot = GetBot();
local buildTable = tableItemsToBuy;

Helper.AbilityUpgrade(npcBot, abilities);
Helper.PurchaseBootsAndTP(npcBot);
Helper.PurchaseItems(npcBot, buildTable);

end


----------------------------------------------------------------------------------------------------