Quoted from "mrmisterwaa;478939"
As far as I can tell, it's working the way I want it.
I personally don't use the melee function, due to my DPS being higher if I just do it manually and result to my own logic for the bleeds. However, it does work if you choose to do it for Solo'ing.
This one can only be used if you are by yourself in a party with no other Rogues. (or Warrior Rogue, Warden Rogue etc.)
I have yet to implement some sort of Partyhealer timers for the Bleeds, it will take some time. :3
/run RogueScout("","X")
For people who don't know much, where it says arg2 == (example) "MELEE" then for X you put MELEE.
arg2:
BUFF
FAILSAFE
CD
LONGCD
MELEE
RANGED
Last thing that needs to change is the Action keys where you keep the follwoing:
Yawaka's Blessing (RT Item Set-Skill)
Unbridled Enthusiasm (House maid Speed Potion)
Swap Macro
Phirius Potions
![]()
Source code
1 2 /run SwapEquipmentItem() /run ReturnPet(# of slot your pet is in)
Strong Stimulant
Extinction Potion (This can be changed with Potion of Annihilation)
Energy Potion
Unknown Choice (WA Item Set-Skill)
If anyone notices anything I didn't in the code, please let me know. I have been tweaking it all day and might have missed something.
![]()
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78function RogueScout(arg1,arg2) local Skill = {} local i = 0 --Player Status local energy = UnitMana("player") local mana = UnitSkill("player") local focus = UnitSkill("player") local phealth = PctH("player") local pbuffs = BuffList("player") local combat = GetPlayerCombatState() local behind = (not UnitIsUnit("player", "targettarget")) local premed = (pbuffs == string.find(pbuffs, "Premeditation")) --Target Status local friendly = (not UnitCanAttack("player", "target")) local tDead = UnitIsDeadOrGhost("target") local tbuffs = BuffList("target") local boss = ((UnitSex("target"))>=2) --Buffs if(arg2 == "BUFF") then i=i+1; Skill[i] = { name = "Combat Master", use = ((not combat and not string.find(pbuffs, "Combat Master"))) } i=i+1; Skill[i] = { name = "Enhanced Armor", use = ((not friendly) and (not string.find(pbuffs, "Enhanced Armor"))) } i=i+1; Skill[i] = { name = "Searing Light", use = ((not friendly) and (not string.find(pbuffs, "Searing Light"))) } i=i+1; Skill[i] = { name = "Lion's Protection", use = ((not friendly) and (not string.find(pbuffs, "Lion's Protection"))) } i=i+1; Skill[i] = { name = "Action: 62", use = ((not combat and not string.find(pbuffs, "Yawaka's Blessing"))) } i=i+1; Skill[i] = { name = "Action: 69", use = ((not combat and not string.find(pbuffs, "Unbridled Enthusiasm"))) } -- Speed Potion end --Potions & Swap Macro if(arg2 == "FAILSAFE") then i=i+1; Skill[i] = { name = "Action: 42", use = (combat and (phealth < .03 and (boss))) } -- Swap Macro i=i+1; Skill[i] = { name = "Action: 43", use = (combat and (phealth < .25 and (boss))) } -- Phirius Potion end --Cooldowns if(arg2 == "CD") then i=i+1; Skill[i] = { name = "Action: 46 (Energy Potion)", use = ((combat) and (energy < 15 and (boss))) } -- Energy Potion i=i+1; Skill[i] = { name = "Action: 30 (Strong Stimulant)", use = ((boss) and (not string.find(pbuffs, "Fervent Attack"))) } i=i+1; Skill[i] = { name = "Action: 34 (Extinction Potion)", use = ((boss) and (not ChkBuff("player","Extinction Potion"))) } i=i+1; Skill[i] = { name = "Energy Thief", use = ((combat) and (boss) and (not tDead) and (energy < 50)) } i=i+1; Skill[i] = { name = "Assassins Rage", use = ((boss) and (not tDead)) } i=i+1; Skill[i] = { name = "Fervent Attack", use = ((boss) and (not tDead) and not string.find(pbuffs, "Strong Stimulant")) } end --60 Second Buffs if(arg2 == "LONGCD") then i=i+1; Skill[i] = { name = "Informer", use = ((not string.find(pbuffs, "Informer"))) } i=i+1; Skill[i] = { name = "Action: 64 (Unknown Choice)", use = ((energy > 20)) } i=i+1; Skill[i] = { name = "Action: 65 (Caviar Sandwich)", use = ((not string.find(pbuffs, "Caviar Sandwich"))) } end --Melee if(arg2 == "MELEE") then i=i+1; Skill[i] = { name = "Wound Attack", use = (((not friendly) and (energy >= 35)) and (string.find(tbuffs, "Bleed") and string.find(tbuffs, "Grievous Wound"))) } i=i+1; Skill[i] = { name = "Low Blow", use = ((((not friendly) and (energy >= 25)) and (string.find(tbuffs, "Bleed") and ((not string.find(tbuffs, "Grievous Wound"))))) or (string.find(pbuffs, "Energy Thief"))) } i=i+1; Skill[i] = { name = "Shadowstab", use = (((not friendly) and (energy >= 20)) and (not string.find(tbuffs, "Bleed"))) } i=i+1; Skill[i] = { name = "Blind Spot", use = ((not friendly) and (string.find(pbuffs, "Energy Thief") or (premed)) and (behind)) } i=i+1; Skill[i] = { name = "Wrist Attack", use = ((not friendly) and (boss) and (focus >=50)) } i=i+1; Skill[i] = { name = "Vampire Arrows", use = ((not friendly)) } i=i+1; Skill[i] = { name = "Shot", use = ((not friendly)) } end --Ranged if(arg2 == "RANGED") then i=i+1; Skill[i] = { name = "Vampire Arrows", use = ((not friendly)) } i=i+1; Skill[i] = { name = "Shot", use = ((not friendly)) } end --RogueKnight Section (Third Class) if(arg2 == "RK") then i=i+1; Skill[i] = { name = "Disarmament", use = ((not friendly)) } i=i+1; Skill[i] = { name = "Holy Strike", use = ((not friendly)) } end MyCombat(Skill,arg1) end
Changelog: Fix a tiny bug in the Cooldown section where it would be trigging Strong Stimulant (or Fervent Attack) when it shouldn't.
|
|
Source code |
1 |
{ name = "Action: 20", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[500704]) },
|
Quoted from "ghostwolf82;479610"
Did some testing, and yes... The debuff does indeed change for the R/P. Grievous Wound changes from 620314 to 500704, however this still does not work. Neither does calling it from an action bar slot.
Starting to wonder what the heck is with this skill for this combo. Something somewhere is very broken (yes, another something...) .
![]()
Source code
1{ name = "Action: 20", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[500704]) },
|
|
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 |
--Class: Rogue/Priest
elseif mainClass == "THIEF" and subClass == "AUGUR" then
--Potions and Buffs
Skill = {
{ name = "Regenerate", use = (phealth <= .90) and (pctEB2 >= .05) and (not pbuffs['Regenerate']) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Quickness Aura", use = (pctEB2 >= .05) and ((not pbuffs['Quickness Aura']) or (pbuffs['Quickness Aura'].time <= 45)) },
{ name = "Poison", use = ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45))},
}
--Combat
if enemy then
Skill2 = {
{ name = "Premeditation", use = (not combat) and boss and (EnergyBar1 >= 50) },
{ name = "Slowing Poison", use = boss },
{ name = "Informer", use = boss },
{ name = "Fervent Attack", use = boss },
{ name = "Assassins Rage", use = boss },
{ name = "Kick", use = (pctEB2 >= .05) },
{ name = "Sneak Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Blind Spot Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]) },
{ name = "Low Blow", use = (EnergyBar1 >= 30) and (tbuffs[620313]) and (not tbuffs[500704]) },
{ name = "Wound Attack", use = (EnergyBar1 >= 35) },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) },
{ name = "Attack", use = (thealth == 1) },
}
end
end
|
Quoted from "ghostwolf82;479618"
Yeah, I had made those changes already. I have a few versions of DIYCE I work on, and when I grabbed the code posted in the link in my sig I grabbed from one that had the older version, not from my master version. Sorry for the confusion. I shall soon post a work around for this issue soon, but would still love to really fix it altogether so there just is no problem. (Not a fan of leaving a problem intact.)
Quoted from "gunny1444;481003"
i set up my dyice and put a script in it and its not working can some 1 give me a 3 line long code just to say some thing
|
|
Source code |
1 2 3 |
DEFAULT_CHAT_FRAME:AddMessage("This says")
DEFAULT_CHAT_FRAME:AddMessage(" some")
DEFAULT_CHAT_FRAME:AddMessage(" thing")
|
|
|
Source code |
1 |
(rage >= 30)) } |
Quoted
When your shot makes a critical hit, your target receives additional 2% physical damage. Lasts 8 seconds. (Cooldown is 20 seconds after skill has stopped).
|
|
Source code |
1 |
Skill[1] = { name = "Shot", use = ((CD("Exploiting Shot")) and (not string.find(tbuffs, "Exploiting Shot"))) }
|
|
|
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 |
if enemy then
Skill[1] = { name = "Autoshot", use = (not ASon) }
if not Skill[1].use then
Skill[1] = { name = "Sapping Arrow", use = ((not string.find(tbuffs, "Sapping Arrow")) and (CD("Sapping Arrow"))) }
if not Skill[1].use then
Skill[1] = { name = "Shot", use = ((CD("Exploiting Shot")) and (not string.find(tbuffs, "Exploiting Shot"))) }
if not Skill[1].use then
Skill[1] = { name = "Reflected Shot", use = (CD("Reflected Shot")) }
if not Skill[1].use then
Skill[1] = { name = "Vampire Arrows", use = CD("Vampire Arrows") }
if not Skill[1].use then
Skill[1] = { name = "Deadly Poison Bite", use = CD("Deadly Poison Bite") }
if not Skill[1].use then
Skill[1] = { name = "Piercing Arrow", use = (CD("Piercing Arrow")) }
if not Skill[1].use then
Skill[1] = { name = "Combo Shot", use = CD("Combo Shot") }
if not Skill[1].use then
Skill[1] = { name = "Weak Spot", use = CD("Weak Spot") }
if not Skill[1].use then
Skill[1] = { name = "Wind Arrows", use = (CD("Wind Arrows")) and (focus >= 35) }
end
end
end
end
end
end
end
end
end
end
|