function Boss_buff()
if Magic_Tambourine == true then
if inventory:itemTotalCount(204463) >= 1 then
inventory:useItem(204463) -- 3 days
yrest(5500)
elseif inventory:itemTotalCount(204571) >= 1 then
inventory:useItem(204571) -- 7 days
yrest(5500)
elseif inventory:itemTotalCount(206420) >= 1 then
inventory:useItem(206420) -- 30 days
yrest(5500)
end
elseif Magic_Tambourine == party_true then
yrest(5500)
end
if Magic_Guitar == true then
if inventory:itemTotalCount(204461) >= 1 then
inventory:useItem(204461) -- 3 days
yrest(5500)
elseif inventory:itemTotalCount(206418) >= 1 then
inventory:useItem(206418) -- 7 days
yrest(5500)
elseif inventory:itemTotalCount(204569) >= 1 then
inventory:useItem(204569) -- 30 days
yrest(5500)
end
elseif Magic_Tambourine == party_true then
yrest(5500)
end
changeProfileSkill("MAGE_FLAME", "AutoUse", true);
changeProfileSkill("MAGE_FIREBALL", "AutoUse", true);
changeProfileSkill("MAGE_FLAME", "Priority", 90);
changeProfileSkill("MAGE_FIREBALL", "Priority", 100);
player:cast("MAGE_ESSENCE_OF_MAGIC");
player:cast("PRIEST_MAGIC_BARRIER");
player:cast("MAGE_ENERGY_INFLUX");
player:cast("MAGE_ELECTROSTATIC_CHARGE");
player:cast("MAGE_INTENSIFICATION");
player:cast("MAGE_ELEMENTAL_CATALYSIS");
player:cast("PRIEST_REGENERATE");
end
this onload for mage/priest are working... but my question is how to ignore the instrument if instrument are in cooldown stage?? because time consuming when he try to cast instrument even this is in cooldown stage
function BossBuff()
local starttime = getTime()
yrest(5000)
-- use instrument 206420 30 day tambo
inventory:useItem(206420)
yrest(800)
while (player.Casting) do
player:updateCasting()
yrest(500)
end
-- rest until fight starts or 15 seconds after timer started, I use 20 second timer
repeat
player:updateBattling()
yrest(500)
until deltaTime(getTime(),starttime) >= 15000 or player.Battling
player:cast("WARDEN_SAVAGE_POWER");
player:cast("SCOUT_ARROW_OF_ESSENCE");
player:cast("SCOUT_BLOOD_ARROW");
end
Just to give you an example of timing and such.
Remember no matter you do in life to always have a little fun while you are at it