if arg1.Name == "WARRIOR_MOON_CLEAVE" or arg1.Name == "WARRIOR_BLASTING_CYCLONE" or
arg1.Name == "WARRIOR_WHIRLWIND" or arg1.Name == "WARRIOR_SHOUT" then
if 2 > CountAggroTargets() then
return false
end
end
Can I bracket all the skills in some way, or do I have to leave the "arg1.Name ==" for every one, just like it is now? Or is there a totally different and better way to code this?
I think he was just trying to stop using aoe attacks unless there were multiple mobs, so would need to add in a new thing to skill database for aoe skill to be able to use it with just 1 bit of code for all skills.
Remember no matter you do in life to always have a little fun while you are at it
Mushroomstamp wrote:I'm having trouble understanding what this is accomplishing. Why denote damage or dot? And wouldn't I still need to put each skill name in there?
What this means is if multiple mobs are attacking you and the skill isn't your AOE spell then skip it. I'm assuming you don't want to skip Heals and buffs so I added the check to skip it only if it's an attack skill.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
That code assumes 1 aoe skill. I was debating saying "if you have more than one aoe skill you would have to add them all" but I didn't.
I was just looking to help with a solution with how the coding is now. I don't really want to add functionallity for aoe skills to the bot considering they all seem to work differently. It would be a bit of a nightmare.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.