This post has been edited 10 times, last edit by "BlankMinded" (Sep 27th 2013, 6:46am)
|
|
Source code |
1 2 |
{ name = "Action: 13 (Strong Stimulant)", use = ((boss) and (not pbuffs["Fervent Attack"])) },
{ name = "Fervent Attack", use = ((boss) and (not pbuffs["Strong Stimulant"])) },
|
|
|
Source code |
1 2 3 |
{ name = "Wound Attack", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[620314]) },
{ name = "Low Blow", use = (EnergyBar1 >= 35) and (tbuffs[620313]) or (pvp) },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]) },
|
|
|
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 50 51 52 53 54 55 56 |
function KillSequence(arg1, mode, healthpot)
--arg1 = "v1" or "v2" for debugging
--mode = "PvE" or "PvP"
--healthpot = # of actionbar slot for health potions
--foodslot = # of actionbar slot for food
local Skill = {}
local Skill2 = {}
local i = 0
-- Player and target status.
local combat = GetPlayerCombatState()
local enemy = UnitCanAttack("player","target")
local EnergyBar1 = UnitMana("player")
local EnergyBar2 = UnitSkill("player")
local pctEB1 = PctM("player")
local pctEB2 = PctS("player")
local tbuffs = BuffList("target")
local pbuffs = BuffList("player")
local tDead = UnitIsDeadOrGhost("target")
local behind = (not UnitIsUnit("player", "targettarget"))
local melee = GetActionUsable(13) -- # is your melee range spell slot number
local a1,a2,a3,a4,a5,ASon = GetActionInfo(1) -- # is your Autoshot slot number
local phealth = PctH("player")
local thealth = PctH("target")
local LockedOn = UnitExists("target")
local boss = UnitSex("target") > 2
local elite = UnitSex("target") == 2
local party = GetNumPartyMembers() >= 2
--Determine Class-Combo
mainClass, subClass = UnitClassToken( "player" )
--Silence Logic
local tSpell,tTime,tElapsed = UnitCastingTime("target")
local silenceThis = tSpell and silenceList[tSpell] and ((tTime - tElapsed) > 0.1)
--Potion Checks
healthpot = healthpot or 0
manapot = manapot or 0
--Equipment and Pet Protection
if phealth <= .04 then
--SwapEquipmentItem() --Note: Remove the first double dash to re-enable equipment protection.
for i=1,6 do
if (IsPetSummoned(i) == true) then
ReturnPet(i);
end
end
end
--Check for level 1 mobs, if it is, drop target and acquire a new one.
if (LockedOn and (UnitLevel("target") < 2)) then
TargetUnit("")
return
end
|

Keep at it, and keep asking questions along the way. More than happy to help someone asking legitimate questions and showing the effort. For the potions, you will need to add more args to the arg list at the right of FUNCTION KILLSEQUENCE, the args are in the parenthesis. Once you have a look at how I have it set up for the health and mana pots to work with the args, it isn't too hard to extrapolate that idea into adding more potions. Thanks for a positive feedback. I will slowly get to the potions etc, but for now I am stuck with the Wind Fire Cultivation buff, trying different combinations after use == and even without use == I still can not get the buff to turn on. If I start my class combo as w/m or m/r they work until I change to m/s, if I then switch back to either of those first two they no longer work. I can't tell if Diyce has exited and stopped running, or if it is stuck in a loop from me attempts and making it buff that elite skill.@Gorgar - Looks like you are headed in the right directionKeep at it, and keep asking questions along the way. More than happy to help someone asking legitimate questions and showing the effort. For the potions, you will need to add more args to the arg list at the right of FUNCTION KILLSEQUENCE, the args are in the parenthesis. Once you have a look at how I have it set up for the health and mana pots to work with the args, it isn't too hard to extrapolate that idea into adding more potions.
This post has been edited 2 times, last edit by "Gorgar" (Dec 1st 2013, 2:48am)
|
|
Source code |
1 |
/run for i=1,100 do local n,_,_,id=UnitBuff("player",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
|
This post has been edited 1 times, last edit by "Gorgar" (Dec 1st 2013, 9:34am)
This post has been edited 1 times, last edit by "Gorgar" (Dec 2nd 2013, 5:52am)