Quoted
Macro name: Chiron arrow
usage: have your Arrow attack toggled.
Source code
/run UsePetAction(3)
/run UsePetAction(5)

This post has been edited 4 times, last edit by "Dedelu" (May 7th 2015, 4:22am)
need to use the pet action AFTER chiron is summoned. summon cast time is at least a couple seconds (depending on ISS), so you need the /wait to be at least as long as your summon cast time.
|
|
PHP Source code |
1 2 3 4 5 6 |
/run function SwapFocus() Slot1,Slot2 = 6,12 local MName = UnitName("focus1") local PName = UnitName("player") for i = 1,12 do if UnitName("raid"..i) == MName then Slot1 = i elseif UnitName("raid"..i) == PName then Slot2 = i end end MoveRaidMember(Slot1,Slot2) end
/cast Chain of Light
/wait 2.1
/run SwapFocus()
/wait 2
/run SwapFocus()
|
|
|
Source code |
1 |
/run if SwapFocus==nil then SwapFocus=loadstring("local S1,S2 = 6,12 local MName,PName=UnitName("focus1"),UnitName("player") for i=1,12 do local UName=UnitName("raid"..i) if UName==MName then S1=i elseif UName==PName then S2=i end end MoveRaidMember(S1,S2)") end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
--Splits up the string retrieved from the PositionFrame on the minimap, returns 2 values, the coordinates as ints rounded down.
function SMPAMinimapCords()
--Get the cordinates
local miniCords = MinimapFramePlayerPosition_String:GetText();
--Splice out the characters we can't parse.
local split = SMPAStringSplit(miniCords, "(");
split = SMPAStringSplit(split[1], ")");
split = SMPAStringSplit(split[1], ",");
--Floor the numbers, so I don't have to deal with decimal values. I also had an issue arise if I tried to store back into split 1 after flooring. So I used new variables.
local splitNumber1 = math.floor(split[1]);
local splitNumber2 = math.floor(split[2]);
return splitNumber1, splitNumber2;
end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
--Splits a string and returns a table.
function SMPAStringSplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end
|
This post has been edited 1 times, last edit by "ftwoplay" (Oct 4th 2015, 3:57pm)
|
|
Source code |
1 2 3 4 |
/run local buff=0 for i=1,100 do local _,_,_,d=UnitBuff("player",i) if d==625652 then TargetUnit("") buff=1 break end end if buff ==0 then CastSpellByName("Attack") end
/script ChoiceOption(2)
/wait .1
/script ChoiceOption(2)
|
|
|
Source code |
1 2 3 4 |
/script CastSpellByName("Attack")
/script ChoiceOption(2)
/wait 0.1
/script ChoiceOption(2)
|