Quoted from "DawwtheElf;294576"
Sorry if I was unclear. I edited my post twice becouse of the chages that occured when trying things around. I got it working now. The Blood Arrow got turned off at once because of the
![]()
Source code
1 (not combat)
|
|
Source code |
1 |
local combat = GetPlayerCombatState() |
Quoted from "Sixpax;294561"
If I understand you correctly, you're asking to have a particular skill run to the target and attack when click-to-move is disabled? I've had others request this and I briefly looked at the UFACS code to try to figure out how it's accomplishing this, but have yet to figure it out. I'm sure it's possible, but I have no idea how to code it.
Quoted from "delve;294620"
I think it just uses the basic attack function to cause that behavior and in all my testing (several months ago now, the last dev may have made it work better) I couldn't get either the auto-approach or auto-looting to work without click-to-move enabled.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
function RogueScout(arg1)
local i=0
local Skill={}
local energy=UnitMana("player")
local focus=UnitSkill("player")
local tbuffs=BuffList("target")
if ((UnitCanAttack("player","target")) and (PctH("target")>0))
i=i+1;Skill[i]={name="Action:23(WA)", use=((string.find(tbuffs,"Grievous Wound")) and (string.find(tbuffs,"Bleed")))}
i=i+1;Skill[i]={name="Action:22(LB)", use=((string.find(tbuffs,"Bleed")) and (not string.find(tbuffs,"Grievous Wound")))}
i=i+1;Skill[i]={name="Action:21(SS)", use=((energy>50) and ((BuffTimeLeft("target","Bleed")<3))}
i=i+1;Skill[i]={name="Action:25(Shot)",use=true}
i=i+1;Skill[i]={name="Action:26(Vamp)",use=(not string.find(tbuffs,"Vampire Arrows"))}
i=i+1;Skill[i]={name="Action:30(Atk)", use=true}
end
MyCombat(Skill,arg1)
end
|
|
|
Source code |
1 |
[string 'RogueScout()']:1: attempt to call global 'RogueScout' (a nil value) |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
function RogueScout(arg1)
local i=0
local Skill={}
local energy=UnitMana("player")
local tbuffs=BuffList("target")
if ((UnitCanAttack("player","target")) and (PctH("target")>0)) then
i=i+1;Skill[i]={name="Action:23(WA)", use=((string.find(tbuffs,"Grievous Wound")) and (string.find(tbuffs,"Bleed")))}
i=i+1;Skill[i]={name="Action:22(LB)", use=((string.find(tbuffs,"Bleed")) and (not string.find(tbuffs,"Grievous Wound")))}
i=i+1;Skill[i]={name="Action:21(SS)", use=((energy>50) and ((BuffTimeLeft("target","Bleed")<3))}
i=i+1;Skill[i]={name="Action:25(Shot)",use=true}
i=i+1;Skill[i]={name="Action:26(Vamp)",use=(not string.find(tbuffs,"Vampire Arrows"))}
i=i+1;Skill[i]={name="Action:30(Atk)", use=true}
end
MyCombat(Skill,arg1)
end
|
Quoted from "blurterblurter;295003"
yea just saw that, still getting the same error with this:
Will be some syntax issue im sure, buggered if I can see it tho

|
|
Source code |
1 |
i=i+1; Skill[i] = { name = "Custom: Heal Me", use = ((UnitClass("target") == "Priest") and (PctH("player") < .5)) }
|
|
|
Source code |
1 2 3 4 5 6 7 |
function CustomAction(action)
if action == "Heal Me" then
DoEmote(4) -- Wave
SendChatMessage("I'm dieing, heal me please!!", "SAY")
end
return false
end
|
|
|
Source code |
1 |
i=i+1; Skill[i] = { name = "Custom: Cancel Regen", use = ((not combat) and (PctH("player") == 1) and ChkBuff("player", "Regenerate")) }
|
|
|
Source code |
1 2 3 4 |
function CustomAction(action)
CancelBuff("Regenerate")
return false
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 |
g_lastaction = "" -- Define g_lastaction globally
function MagePriest(arg1)
Skill = {}
i = 0
friendly = (not UnitCanAttack("target", "player"))
combat = GetPlayerCombatState()
if (not combat) then
g_lastaction = ""
end
i=i+1; Skill[i] = { name = "Custom: Flame", use = ((not friendly) and (g_lastaction ~= "Flame")) }
i=i+1; Skill[i] = { name = "Custom: Fireball", use = (not friendly) }
i=i+1; Skill[i] = { name = "Custom: Rising Tide", use = (not friendly) }
i=i+1; Skill[i] = { name = "Custom: Plasma Arrow", use = (not friendly) }
MyCombat(Skill, arg1)
end
function CustomAction(action)
if CD(action) then
if IsShiftKeyDown() then Msg("- "..action) end
g_lastaction = action
CastSpellByName(action)
return true
else
return false
end
end
|
|
|
Source code |
1 2 3 |
i=i+1; Skill[i] = { name = "Custom: Random Pet", use = (not UnitExists("playerpet")) }
i=i+1; Skill[i] = { name = "Custom: Swap Equipment", use = (PctH("player") < .20) }
i=i+1; Skill[i] = { name = "Custom: Heal Pet", use = (PctH("playerpet") < .75) }
|
|
|
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 RandomPet()
local MyPets = { "Spirit of the Oak", "Nature Crystal", "Oak Walker" }
return "Summon "..MyPets[math.random(3)]
end
function CustomAction(action)
if action == "Random Pet" then
local petsummon = RandomPet()
if CD(petsummon) then
CastSpellByName(petsummon)
return true
end
elseif action == "Swap Equipment" then
SwapEquipmentItem()
return true
elseif (action == "Heal Pet") and CD("Elven Prayer") then
FocusUnit(1, "target")
TargetUnit("playerpet")
CastSpellByName("Elven Prayer")
TargetUnit("focus1")
FocusUnit(1, "")
return true
end
return false
end
|
Quoted from "Sixpax;295060"
[INDENT]
Also, I'm not sure if the curse client overwrites the entire folder or not, so even if you have your custom class functions in a separate file in that folder, MAKE A BACKUP!!
Quoted from "HuBu;295150"
hmm doesn't seem to work. copied in the new DIYCE, keep all my class lua files and nothing is launching.
Quoted from "Sixpax;295157"
Any flashing red icons around your minimap?
Do you get "Reading class skills" message when you login?
Did you modify the DIYCE.toc file with the names of your class .lua files?
Quoted from "HuBu;295162"
Sorry. Six, stupid me must have copied it in wrong of something. But I recopied it and its working now. Going to test out the new functions you added.

Quoted
function Warrior(arg1)
local Skill = {}
local i = 0
local rage = UnitMana("player")
local mana = UnitSkill("player")
local friendly = (not UnitCanAttack("player", "target"))
local combat = GetPlayerCombatState()
local tspell,ttime,telapsed = UnitCastingTime("target")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
i=i+1; Skill = { name = "Interrupting Strike", use = ((not friendly) and (tspell ~= nil) and (ttime >= 1) and ((ttime - telapsed) > 0.5) and (rage >= 30)) }
i=i+1; Skill[i] = { name = "Urgent Heal", use = ((PctH("player") < .50) and (mana >= 300)) }
i=i+1; Skill[i] = { name = "Regenerate", use = ((PctH("player") < .95) and (not string.find(pbuffs, "Regenerate")) and (mana >= 300)) }
i=i+1; Skill[i] = { name = "Opportunity", use = ((not friendly) and (rage >= 15) and string.find(tbuffs, "Weakened")) }
i=i+1; Skill[i] = { name = "Survival Instinct", use = (PctH("player") < .33) }
i=i+1; Skill[i] = { name = "Bloodlust", use = ((not friendly) and (rage < 40) and (PctH("player") >= .90) and (not string.find(pbuffs, "Blood Retention"))) }
i=i+1; Skill[i] = { name = "Berserk", use = ((not friendly) and (rage >= 25)) }
i=i+1; Skill[i] = { name = "Enraged", use = ((not friendly) and (rage < 40)) }
i=i+1; Skill[i] = { name = "Slash", use = ((not friendly) and (not string.find(tbuffs, "Bleed"))) }
i=i+1; Skill[i] = { name = "Open Flank", use = ((not friendly) and (rage >= 10) and string.find(tbuffs, "Vulnerable")) }
i=i+1; Skill[i] = { name = "Probing Attack", use = ((not friendly) and (rage >= 20) and (not string.find(tbuffs, "Vulnerable"))) }
i=i+1; Skill[i] = { name = "Slash", use = ((not friendly) and (rage >= 25) and (not string.find(tbuffs, "Vulnerable"))) }
MyCombat(Skill,arg1)
end
function WarriorS(arg1)
local Skill = {}
local i = 0
local rage = UnitMana("player")
local mana = UnitSkill("player")
local friendly = (not UnitCanAttack("player", "target"))
local combat = GetPlayerCombatState()
local tspell,ttime,telapsed = UnitCastingTime("target")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
i=i+1; Skill[i] = { name = "Interrupting Strike", use = ((not friendly) and (tspell ~= nil) and (ttime >= 1) and ((ttime - telapsed) > 0.5) and (rage >= 30)) }
i=i+1; Skill[i] = { name = "Urgent Heal", use = ((PctH("player") < .50) and (mana >= 300)) }
i=i+1; Skill[i] = { name = "Regenerate", use = ((PctH("player") < .95) and (not string.find(pbuffs, "Regenerate")) and (mana >= 300)) }
i=i+1; Skill[i] = { name = "Opportunity", use = ((not friendly) and (rage >= 15) and string.find(tbuffs, "Weakened")) }
i=i+1; Skill[i] = { name = "Survival Instinct", use = (PctH("player") < .33) }
i=i+1; Skill[i] = { name = "Enraged", use = ((not friendly) and (rage < 40)) }
i=i+1; Skill[i] = { name = "Slash", use = ((not friendly) and (not string.find(tbuffs, "Bleed"))) }
i=i+1; Skill[i] = { name = "Open Flank", use = ((not friendly) and (rage >= 10) and string.find(tbuffs, "Vulnerable")) }
i=i+1; Skill[i] = { name = "Probing Attack", use = ((not friendly) and (rage >= 20) and (not string.find(tbuffs, "Vulnerable"))) }
MyCombat(Skill,arg1)
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 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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
-- DIY Combat Engine version 1.4
g_skill = {}
function Msg(outstr,a1,a2,a3)
DEFAULT_CHAT_FRAME:AddMessage(tostring(outstr),a1,a2,a3)
end
function ReadSkills()
g_skill = {}
local skillname,slot
Msg("- Reading Class Skills")
for page = 1,4 do
slot = 1
skillname = GetSkillDetail(page,slot)
repeat
local a1,a2,a3,a4,a5,a6,a7,a8,skillusable = GetSkillDetail(page,slot)
if skillusable then
g_skill[skillname] = { ['page'] = page, ['slot'] = slot }
end
slot = slot + 1
skillname = GetSkillDetail(page,slot)
until skillname == nil
end
end
ReadSkills() -- Read skills into g_skill table at login
function PctH(tgt)
return (UnitHealth(tgt)/UnitMaxHealth(tgt))
end
function PctM(tgt)
return (UnitMana(tgt)/UnitMaxMana(tgt))
end
function PctS(tgt)
return (UnitSkill(tgt)/UnitMaxSkill(tgt))
end
function CancelBuff(buffname)
local i = 1
local buff = UnitBuff("player",i)
while buff ~= nil do
if buff == buffname then
CancelPlayerBuff(i)
return true
end
i = i + 1
buff = UnitBuff("player",i)
end
return false
end
function BuffTimeLeft(tgt, buffname)
local cnt = 1
local buffcmd, bufftimecmd, buff
if UnitCanAttack("player", tgt) then
buffcmd = UnitDebuff
bufftimecmd = UnitDebuffLeftTime
else
buffcmd = UnitBuff
bufftimecmd = UnitBuffLeftTime
end
buff = buffcmd(tgt, cnt)
while buff ~= nil do
if string.find(buff, buffname) then
return bufftimecmd(tgt, cnt)
end
cnt = cnt + 1
buff = buffcmd(tgt, cnt)
end
return 0
end
function ChkBuff(tgt,buffname)
local cnt = 1
local buffcmd = UnitBuff
if UnitCanAttack("player",tgt) then
buffcmd = UnitDebuff
end
local buff = buffcmd(tgt,cnt)
while buff ~= nil do
if string.gsub(buff, "(%()(.)(%))", "%2") == buffname then
return true
end
cnt = cnt + 1
buff = buffcmd(tgt,cnt)
end
return false
end
function BuffList(tgt)
local cnt = 1
local buffcmd = UnitBuff
local buffstr = "/"
if UnitCanAttack("player",tgt) then
buffcmd = UnitDebuff
end
local buff = buffcmd(tgt,cnt)
while buff ~= nil do
buffstr = buffstr..buff.."/"
cnt = cnt + 1
buff = buffcmd(tgt,cnt)
end
return string.gsub(buffstr, "(%()(.)(%))", "%2")
end
function CD(skillname)
local firstskill = GetSkillDetail(2,1)
if (g_skill[firstskill] == nil) or (g_skill[firstskill].page ~= 2) then
ReadSkills()
end
if g_skill[skillname] ~= nil then
local tt,cd = GetSkillCooldown(g_skill[skillname].page,g_skill[skillname].slot)
return cd==0
elseif skillname == nil then
return false
else
Msg("Skill not available: "..skillname)
return false
end
end
function MyCombat(Skill, arg1)
local spell_name = UnitCastingTime("player")
local talktome = ((arg1 == "v1") or (arg1 == "v2"))
local action,actioncd,actiondef,actioncnt
if spell_name ~= nil then
if (arg1 == "v2") then Msg("- ['..spell_name..']", 0, 1, 1) end
return true
end
for x,tbl in ipairs(Skill) do
if Skill[x].use then
if string.find(Skill[x].name, "Action:") then
action = tonumber((string.gsub(Skill[x].name, "(Action:)( *)(%d+)(.*)", "%3")))
_1,actioncd = GetActionCooldown(action)
actiondef,_1,actioncnt = GetActionInfo(action)
if GetActionUsable(action) and (actioncd == 0) and (actiondef ~= nil) and (actioncnt > 0) then
if talktome then Msg("- "..Skill[x].name) end
UseAction(action)
return true
end
elseif string.find(Skill[x].name, "Custom:") then
action = string.gsub(Skill[x].name, "(Custom:)( *)(.*)", "%3")
if CustomAction(action) then
return true
end
elseif string.find(Skill[x].name, "Item:") then
action = string.gsub(Skill[x].name, "(Item:)( *)(.*)", "%3")
if talktome then Msg("- "..Skill[x].name) end
UseItemByName(action)
return true
elseif CD(Skill[x].name) then
if talktome then Msg("- "..Skill[x].name) end
CastSpellByName(Skill[x].name)
return true
end
end
end
if (arg1 == "v2") then Msg("- [IDLE]", 0, 1, 1) end
return false
end
function CustomAction(action)
if action == "Heal Me" then
DoEmote(4) -- Wave
SendChatMessage("Ich Sterbe, Heil Mich bitte!!", "SAY")
return true
end
elseif (action == "Spiegel") then
if UnitExists("target") then
FocusUnit(1, "target")
TargetUnit("player")
UseAction (20)
TargetUnit("focus1")
FocusUnit(1, "")
return true
end
else
FocusUnit("player")
UseAction (20)
return true
end
return true
end
return false
end
function Rogue(arg1, arg2)
local Skill = {}
local i = 0
local energy = UnitMana("player")
local focus = UnitSkill("player")
local friendly = (not UnitCanAttack("player", "target"))
local combat = GetPlayerCombatState()
local tspell,ttime,telapsed = UnitCastingTime("target")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
i=i+1; Skill[i] = { name = "Werfen", use = ((not friendly) and (ttime >= 1) and ((ttime - telapsed) > 0.5)) }
i=i+1; Skill[i] = { name = "Gift", use = (not ChkBuff("player","Giftig") and not combat) }
i=i+1; Skill[i] = { name = "Aura der Schnelligkeit", use = ((not string.find(pbuffs, "Aura der Schnelligkeit") and (not string.find(pbuffs, "Ausweichen")) and not combat)) }
i=i+1; Skill[i] = { name = "Magischer Schutz", use = (not ChkBuff("player","Magischer Schutz") and not combat) }
i=i+1; Skill[i] = { name = "Gesegnetes Quellwasser", use = (not ChkBuff("player","Gesegnetes Quellwasser") and not combat) }
i=i+1; Skill[i] = { name = "Regenerieren", use = ((PctH("player") < .95) and (not string.find(pbuffs, "Regenerieren"))) }
i=i+1; Skill[i] = { name = "Gesegnete Aura", use = ((PctH("player") < .15) ) }
i=i+1; Skill[i] = { name = "Spitzel", use = ((not string.find(pbuffs, "M\195\182rderischer Zorn")) and (not string.find(pbuffs, "Spitzel")) and combat) }
i=i+1; Skill[i] = { name = "Ausweichen", use = ((not string.find(pbuffs, "Ausweichen")) and combat) }
i=i+1; Skill[i] = { name = "Wilder Angriff", use = ((PctH("player") < .40) and (string.find(pbuffs, "Ausweichen")) and combat) }
i=i+1; Skill[i] = { name = "Custom: Spiegel", use = (not string.find(pbuffs,"Siegel der Verteidigung")) }
i=i+1; Skill[i] = { name = "M\195\182rderischer Zorn", use = ((not string.find(pbuffs, "M\195\182rderischer Zorn")) and (not string.find(pbuffs, "Spitzel")) and combat) }
i=i+1; Skill[i] = { name = "Vorsatz", use = (not ChkBuff("player","Vorsatz") and not combat) }
i=i+1; Skill[i] = { name = "Hinterhalt", use = ((not friendly) and (energy >= 20) and (arg2 == "behind")) }
i=i+1; Skill[i] = { name = "Toter Winkel-Angriff", use = ((not friendly) and (energy >= 25) and string.find(tbuffs, "Blutende Wunde") and (arg2 == "behind")) }
i=i+1; Skill[i] = { name = "Blendung", use = ((not friendly) and (energy >= 20) and not string.find(tbuffs, "Blind") and string.find(tbuffs, "Blutende Wunde") and string.find(tbuffs, "Starke Blutung")) }
i=i+1; Skill[i] = { name = "Wunden angreifen", use = ((not friendly) and (energy >= 35) and string.find(tbuffs, "Blutende Wunde") and string.find(tbuffs, "Starke Blutung")) }
i=i+1; Skill[i] = { name = "Gemeiner Schlag", use = ((not friendly) and (energy >= 35) and string.find(tbuffs, "Blutende Wunde")) }
i=i+1; Skill[i] = { name = "Furchtlos", use = (string.find(pbuffs, "F\195\188rchterliecher Schrei")) }
i=i+1; Skill[i] = { name = "Meucheln", use = ((not friendly) and (energy >= 35) and not string.find(tbuffs, "Blutende Wunde") and not string.find(tbuffs, "Hinterhalt-Blutende Wunde")) }
MyCombat(Skill,arg1)
end
function RogueBoss(arg1, arg2)
local Skill = {}
local i = 0
local energy = UnitMana("player")
local focus = UnitSkill("player")
local friendly = (not UnitCanAttack("player", "target"))
local combat = GetPlayerCombatState()
local tspell,ttime,telapsed = UnitCastingTime("target")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
i=i+1; Skill[i] = { name = "Werfen", use = ((not friendly) and (ttime >= 1) and ((ttime - telapsed) > 0.5)) }
i=i+1; Skill[i] = { name = "Gift", use = (not ChkBuff("player","Giftig") and not combat) }
i=i+1; Skill[i] = { name = "Aura der Schnelligkeit", use = ((not string.find(pbuffs, "Aura der Schnelligkeit") and (not string.find(pbuffs, "Ausweichen")) and not combat)) }
i=i+1; Skill[i] = { name = "Magischer Schutz", use = (not ChkBuff("player","Magischer Schutz") and not combat) }
i=i+1; Skill[i] = { name = "Gesegnetes Quellwasser", use = (not ChkBuff("player","Gesegnetes Quellwasser") and not combat) }
i=i+1; Skill[i] = { name = "Regenerieren", use = ((PctH("player") < .95) and (not string.find(pbuffs, "Regenerieren"))) }
i=i+1; Skill[i] = { name = "Gesegnete Aura", use = ((PctH("player") < .15) ) }
i=i+1; Skill[i] = { name = "Spitzel", use = ((not string.find(pbuffs, "M\195\182rderischer Zorn")) and (not string.find(pbuffs, "Spitzel")) and combat) }
i=i+1; Skill[i] = { name = "Ausweichen", use = ((not string.find(pbuffs, "Ausweichen")) and combat) }
i=i+1; Skill[i] = { name = "Wilder Angriff", use = ((PctH("player") < .40) and (string.find(pbuffs, "Ausweichen")) and combat) }
i=i+1; Skill[i] = { name = "Custom: Spiegel", use = (not string.find(pbuffs,"Siegel der Verteidigung")) }
i=i+1; Skill[i] = { name = "M\195\182rderischer Zorn", use = ((not string.find(pbuffs, "M\195\182rderischer Zorn")) and (not string.find(pbuffs, "Spitzel")) and combat) }
i=i+1; Skill[i] = { name = "Verbergen", use = (not ChkBuff("player","Verbergen") and not combat) }
i=i+1; Skill[i] = { name = "Schattengef\195\164ngnis", use = ((not friendly) and (energy >= 50) and not string.find(tbuffs, "Schattengef\195\164ngnis")) }
i=i+1; Skill[i] = { name = "Schattenschritt", use = ((not friendly) and (energy >= 20) and string.find(tbuffs, "Schattengef\195\164ngnis")) }
i=i+1; Skill[i] = { name = "Hinterhalt", use = ((not friendly) and (energy >= 20) and (arg2 == "behind")) }
i=i+1; Skill[i] = { name = "Item: Trank der herausragenden Fertigkeit", use = (energy <= 10) }
i=i+1; Skill[i] = { name = "Toter Winkel-Angriff", use = ((not friendly) and (energy >= 25) and string.find(tbuffs, "Blutende Wunde") and (arg2 == "behind")) }
i=i+1; Skill[i] = { name = "Blendung", use = ((not friendly) and (energy >= 20) and not string.find(tbuffs, "Blind") and string.find(tbuffs, "Blutende Wunde") and string.find(tbuffs, "Starke Blutung")) }
i=i+1; Skill[i] = { name = "Wunden angreifen", use = ((not friendly) and (energy >= 35) and string.find(tbuffs, "Blutende Wunde") and string.find(tbuffs, "Starke Blutung")) }
i=i+1; Skill[i] = { name = "Gemeiner Schlag", use = ((not friendly) and (energy >= 35) and string.find(tbuffs, "Blutende Wunde")) }
i=i+1; Skill[i] = { name = "Meucheln", use = ((not friendly) and (energy >= 35) and not string.find(tbuffs, "Blutende Wunde") and not string.find(tbuffs, "Hinterhalt-Blutende Wunde")) }
MyCombat(Skill,arg1)
end
|