Quoted from "CROMI80;481314"
[LEFT] --Begin Player Skill Sequences
--Priest = AUGUR, Druid = DRUID, Mage = MAGE, Knight = KNIGHT,
--Scout = RANGER, Rogue = THIEF, Warden = WARDEN, Warrior = WARRIOR
--Class: Scout/Warden
if mainClass == "RANGER" and subClass == "WARDEN" then
--Potions and Buffs
Skill = {
{ name = "Frost Arrow", use = (not pbuffs("Frost Arrow")) },
{ name = "Briar Shield", use = (not pbuffs("Briar Shield")) },
{ name = "Entling Offering", use = (not pbuffs("Entling Offering")) },
--Combat & PVE
if enemy and (mode == "PvE") then
Skill2 = {
{ name = "Snipe", use = (pbuffs("Hidden Peril")) },
{ name = "Combo Shot", use = (CD("Combo Shot")) },
{ name = "Autoshot", use = (not ASon) },
{ name = "Vampire Arrows", use = (CD("Vampire Arrows") and (EnergyBar1 >= 30)) },
{ name = "Thorn Arrow", use = (CD("Torn Arrow")) },
{ name = "Hidden Peril", use = (CD("Hidden Peril") and (EnergyBar1 >= 30)) },
{ name = "Reflected Shot", use = (CD("Reflected Shot")) },
{ name = "Piercing Arrow", use = (CD("Piercing Arrow")) },
{ name = "Wind Arrows", use = ((CD("Wind Arrows")) and (EnergyBar1 >= 55)) },
{ name = "Shoot", use = (CD("Shoot")) },
}
--Combat & PVP
elseif enemy and (mode == "PvP") then
Skill2 = {
{ name = "Detection", use = (not pbuffs("Detection")) },
{ name = "Snipe", use = (pbuffs("Hidden Peril")) },
{ name = "Autoshot", use = (not ASon) },
{ name = "Piercing Arrow", use = (CD("Piercing Arrow")) },
{ name = "Reflected Shot", use = (CD("Reflected Shot")) },
{ name = "Vampire Arrows", use = (CD("Vampire Arrows")) },
{ name = "Thorn Arrow", use = (CD("Torn Arrow")) },
{ name = "Hidden Peril", use = (CD("Hidden Peril") and (EnergyBar1 >= 30)) },
{ name = "Combo Shot", use = (CD("Combo Shot")) },
{ name = "Wind Arrows", use = ((CD("Wind Arrows")) and (EnergyBar1 >= 35)) },
}
end
i got this error message [string'?']:4: '=' expected near 'that'[/LEFT]
Quoted from "ghostwolf82;481319"
Looks like he is using the mode arg correctly, but the cooldown checks are redundant in the code.
What does line 4 look like in your customfunctions.lua? You shouldn't have changed anything in the original code, so either you added custom functions above the SilenceList, or you edited the SilenceList (which again, you shouldn't be needing to). Also, there is no lua code for a "that", so please post what you have at line 4.
When posting code, please wrap it in [ code ] and [ /code ] tags.
Quoted from "Playalot;481338"
I've downloaded the .zip file and move the content (2 lua and 1 toc) to the addons folder. I've revised the custom file to match the 'Rogue/Scout' as per one of the post here. In game, I made a macro stating "/run KillSequence()" (without the quotes). However, when i execute the macro, nothing happens. No error messages, as if the macro is not loading at all. Please advise.
|
|
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 |
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
--Combat
if enemy then
Skill = {
{ name = "Survival Instinct", = (health <= .49) },
{ name = "Splitting Chop", = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) },
{ name = "Thunder", = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) },
{ name = "Open Flank", = ((not friendly) and (rage >= 10) and (string.find(tbuffs,"Vulnerable")) and CD("Thunder")) },
{ name = "Keen Attack", = (enemy and (energy >= 20) and string.find(tbuffs,"Vulnerable")) },
{ name = "Probing Attack", = (enemy and (rage >= 15)) },
{ name = "Blood Dance", = ((enemy) and (health >= .50)) },
{ name = "Slash", = ((enemy) and (rage >= 25)) },
{ name = "Shadowstab", = ((enemy) and (energy >= 20)) },
}
end
--ADD MORE CLASS COMBOS HERE.
--USE AN "ELSEIF" TO CONTINUE WITH MORE CLASS COMBOS.
--THE NEXT "END" STATEMENT IS THE END OF THE CLASS COMBOS STATEMENTS.
--DO NOT POST BELOW THE FOLLOWING "END" STATEMENT!
end
|
Quoted from "lee9859;481470"
Thanks for all the work on this thread...have learned lots, but not quite enough I guess...
Here is what I've added to the CustomFuntions.lua file for my Warrior/Rogue:
I am getting the following errors when I attempt to use:
![]()
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 24elseif mainClass == "WARRIOR" and subClass == "THIEF" then --Combat if enemy then Skill = { { name = "Survival Instinct", = (health <= .49) }, { name = "Splitting Chop", = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) }, { name = "Thunder", = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) }, { name = "Open Flank", = ((not friendly) and (rage >= 10) and (string.find(tbuffs,"Vulnerable")) and CD("Thunder")) }, { name = "Keen Attack", = (enemy and (energy >= 20) and string.find(tbuffs,"Vulnerable")) }, { name = "Probing Attack", = (enemy and (rage >= 15)) }, { name = "Blood Dance", = ((enemy) and (health >= .50)) }, { name = "Slash", = ((enemy) and (rage >= 25)) }, { name = "Shadowstab", = ((enemy) and (energy >= 20)) }, } end --ADD MORE CLASS COMBOS HERE. --USE AN "ELSEIF" TO CONTINUE WITH MORE CLASS COMBOS. --THE NEXT "END" STATEMENT IS THE END OF THE CLASS COMBOS STATEMENTS. --DO NOT POST BELOW THE FOLLOWING "END" STATEMENT! end
...../DICYE/Customfunctions.lua [string'?']:147:unexpected symbol near "="
[string 'KillSequence()']=1:attempt to call global 'KillSequence' (a nil value)
any help anyone can offer would be great!
Quoted from "lee9859;481470"
...../DICYE/Customfunctions.lua [string'?']:147:unexpected symbol near "="
[string 'KillSequence()']=1:attempt to call global 'KillSequence' (a nil value)
any help anyone can offer would be great!
|
|
Source code |
1 |
{ name = "Survival Instinct", = (health <= .49) },
|
|
|
Source code |
1 |
{ name = "Survival Instinct", use = (health <= .49) },
|
Quoted from "AngelIsrafel;481478"
I'm a total nub when it comes to this, but isn't the class called rogue not Theif?
|
|
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 |
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
--Combat
if enemy then
Skill = {
{ name = "Survival Instinct", use = (health <= .49) },
{ name = "Splitting Chop", use = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) },
{ name = "Thunder", use = (enemy and (rage >= 15) and string.find(tbuffs,"Weakened")) },
{ name = "Open Flank", use = ((not friendly) and (rage >= 10) and (string.find(tbuffs,"Vulnerable")) and CD("Thunder")) },
{ name = "Keen Attack", use = (enemy and (energy >= 20) and string.find(tbuffs,"Vulnerable")) },
{ name = "Probing Attack", use = (enemy and (rage >= 15)) },
{ name = "Blood Dance", use = ((enemy) and (health >= .50)) },
{ name = "Slash", use = ((enemy) and (rage >= 25)) },
{ name = "Shadowstab", use = ((enemy) and (energy >= 20)) },
}
end
--ADD MORE CLASS COMBOS HERE.
--USE AN "ELSEIF" TO CONTINUE WITH MORE CLASS COMBOS.
--THE NEXT "END" STATEMENT IS THE END OF THE CLASS COMBOS STATEMENTS.
--DO NOT POST BELOW THE FOLLOWING "END" STATEMENT!
end
--End Player Skill Sequences
|
|
|
Source code |
1 |
/run if (not PriestFairySequence()) then KillSequence() end |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
--Combat
if enemy then
Skill = {
{ name = "Survival Instinct", use = (health <= .49) }, --IMHO you should set this to trigger at .33 as an "OH SH!T"
{ name = "Splitting Chop", use = (rage >= 15) and (tbuffs,['Weakened'])) },
{ name = "Thunder", use = (rage >= 15) and (tbuffs,['Weakened']) },
{ name = "Open Flank", use = (rage >= 10) and (tbuffs,['Vulnerable'])) and CD("Thunder") },
{ name = "Keen Attack", use = (energy >= 20) and (tbuffs,['Vulnerable']) },
{ name = "Probing Attack", use = (rage >= 15) },
{ name = "Blood Dance", use = (health >= .50) },
{ name = "Slash", use = (rage >= 25) },
{ name = "Shadowstab", use = (energy >= 20) },
}
end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
--Combat
if enemy then
Skill = {
{ name = "Survival Instinct", use = (health <= .49) }, --IMHO you should set this to trigger at .33 as an "OH SH!T"
{ name = "Splitting Chop", use = (rage >= 15) and (tbuffs,['Weakened'])) },
{ name = "Thunder", use = (rage >= 15) and (tbuffs,['Weakened']) },
{ name = "Open Flank", use = (rage >= 10) and (tbuffs,['Vulnerable'])) and CD("Thunder") },
{ name = "Keen Attack", use = (energy >= 20) and (tbuffs,['Vulnerable']) },
{ name = "Probing Attack", use = (rage >= 15) },
{ name = "Blood Dance", use = (health >= .50) },
{ name = "Slash", use = (rage >= 25) },
{ name = "Shadowstab", use = (energy >= 20) },
}
end
|