Quoted
/script UseItemByName("Aoth Strike Cape");
/wait .1
/script UseEquipmentItem(5)
/wait .3
/script UseEquipmentItem(5)
/wait .4
/script UseItemByName("Outside Codex");
/wait 60
/wait 60
/w Bleedingblak Ultimate Shot (cape) ready
Quoted
/run SetTitleRequest(530592);
/wait .1
/cast Ironblood Will
/wait .1
/cast Ironblood Will
/wait .1
/cast Ironblood Will
/run SetTitleRequest(530724);
/wait 60
/wait 60
/wait 60
/wait 60
/wait 60
/w Bleedingblak IRONBLOOD READY

|
|
Source code |
1 |
/run BladeCapeMacro = bladeCape() |
|
|
Source code |
1 |
/run BladeCapeMacro() |
|
|
Source code |
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 |
function bladeCape()
local staticCall = 0
return function()
local dV, dM, iN, dVF, dMF = GetInventoryItemDurable("player",5)
local pbuffs = BuffList("player")
Msg(staticCall)
if staticCall == 0 then
if not (iN == "Transformed Lindworm's Cape") then
UseItemByName("Transformed Lindworm's Cape")
else
if not pbuffs["Shadow Flash"] then
staticCall = 1
end
end
else
if pbuffs["Shadow Flash"] then
staticCall = 0
else
if not (iN == "Aoth Blade Cape") then
UseItemByName("Aoth Blade Cape")
else
UseEquipmentItem(5)
end
end
end
end
end
|
This post has been edited 1 times, last edit by "Darwec" (Feb 17th 2014, 1:00am)
|
|
Source code |
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 |
function bladeCape()
local button = #
local _, _, Name, _, _ = GetInventoryItemDurable("player",5)
for i=1, 50 do
if UnitBuff("player",i)=="Shadow Flash" then
if Name=="Transformed Lindworm's Cape" then
return
else
UseItemByName("Transformed Lindworm's Cape") break
end
elseif i==50 then
if GetActionUsable(button) then
if Name~="Aoth Blade Cape" then
UseItemByName("Aoth Blade Cape")
end
UseAction(button) break
end
end
end
if Name~="Transformed Lindworm's Cape" then
UseItemByName("Transformed Lindworm's Cape")
else
return
end
end
|
|
|
Source code |
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 |
function SiegeTitle(title, prev)
local tid = TitleToId(title)
local pid = TitleToId(prev)
if tid and pid then
if not (GetCurrentTitle() == tid) then
SetTitleRequest(tid)
end
local name, _, _, _, _, _, _, _, _ = GetSkillDetail(1,17);
local cooldown, remaining = GetSkillCooldown(1,17);
if name and (remaining == 0) then
CastSpellByName(name)
else
if not (GetCurrentTitle() == pid) then
SetTitleRequest(pid)
end
end
else
Msg("Title Failure, Check Spelling")
end
end
-- title is an id or a string, if its a string, will look up the ID
-- Code Stolen from the Titleist addon
function TitleToId(title)
local count = GetTitleCount();
--hacky, rom doesnt load title count until achievement frame is loaded
if count == 0 then
AchievementTitleFrame:Show();
AchievementTitleFrame:Hide();
count = GetTitleCount();
end;
for i=1,count-1 do
local name, titleID, geted, icon, classify1, classify2, note, brief, rare = GetTitleInfoByIndex(i);
if tonumber(title) ~= nil then
if tonumber(title) == tonumber(titleID) then
return titleID;
end
else
if string.lower(title) == string.lower(name) then
return titleID;
end
end;
end
return nil;
end;
|
|
|
Source code |
1 2 3 |
/run SiegeTitle("siege title","normal title")
/wait .5
/run SetTitleRequest(TitleToId("normal title"))
|
This post has been edited 1 times, last edit by "Darwec" (Feb 17th 2014, 5:27am)
|
|
Source code |
1 |
name = "Macro: /use Aoth Blade Cape", use = boss } |
@ Darwec, look through the german diyce forums using google translate. It appears as though someone has already posted functions to use capes and title skills for diyce.
Also, you can avoid having to use action bar slot references. There's a function called ExecuteMacroLine("string") that will let you incorporate /cast X and /use Aoth Blade Cape type macros into lua code.
one such application for diyce is to modify the MyCombat function (in DIYCE.lua) so that you can use
![]()
Source code
1 name = "Macro: /use Aoth Blade Cape", use = boss }
in the same fasion that the current action bar references work. I have this done should you want/need help in doing it but it appears as though you should be more then capable of figuring it out
|
|
Source code |
1 |
/run SiegeTitle("Siege title","Normal Title", skillposition)
|
|
|
Source code |
1 2 3 4 5 6 |
/run SiegeTitle("Siege title","Normal Title", skillposition)
/wait .1
/run SiegeTitle("Siege title","Normal Title", skillposition)
/wait .1
/run SiegeTitle("Siege title","Normal Title", skillposition)
/wait .1
|
|
|
Source code |
1 |
/run SiegeTitle("Siege title","Normal Title", skillposition)
|
|
|
Source code |
1 |
/run CapeCast(aoth, norm) |
|
|
Source code |
1 |
/run RingCast(aoth,norm) |