Arylien
06-29-2005, 06:51 AM
I want to create a priority list for a targeting script, so that it will target a certain class of player before selecting another class. I don't know exactly what commands and order to put them in to do it, but the way I'm thinking atm is:
if UnitClass("shaman")=true then target(); else if UnitClass("mage")=true then...... so on and so on for each class, else it does nothing at the end
my point here is, I already have a macro that will target nearest enemy, cast dispel magic on them, then clear my target. that works good and all, but I'd rather have it target a shaman or mage or priest before it targets a rogue or warrior.
if this can be done, then it would be incredibly useful for different spell types in pvp.
if UnitClass("shaman")=true then target(); else if UnitClass("mage")=true then...... so on and so on for each class, else it does nothing at the end
my point here is, I already have a macro that will target nearest enemy, cast dispel magic on them, then clear my target. that works good and all, but I'd rather have it target a shaman or mage or priest before it targets a rogue or warrior.
if this can be done, then it would be incredibly useful for different spell types in pvp.