AntonDingir8 0 Posted December 25, 2020 Share Posted December 25, 2020 Hello is there a way check if targettarget is a healer or dps then use taunt spell? And how to check what player class is it is or maybe even what his role TANK or DAMAGER or HEALER? I'm trying to do that with Lua check in fightclass but its not seems to work: usetaunt = "no" if UnitClass("targettarget") == "MAGE" or UnitClass("targettarget") == "PRIEST" or UnitClass("targettarget") == "HUNTER" or UnitClass("targettarget") == "SHAMAN" or UnitClass("targettarget") == "WARLOCK" or UnitClass("targettarget") == "ROGUE" or UnitClass("targettarget") == "DRUID" then usetaunt = "yes" end https://images-ext-1.discordapp.net/external/rqN-VTSxbTsvo8XjWgZR5MnRdQlTDs1Hu9Hufn9HAKI/https/media.discordapp.net/attachments/769981940090535966/791693570394292224/Screenshot_4.jpg please help Link to comment Share on other sites More sharing options...
zzzar 13 Posted December 26, 2020 Share Posted December 26, 2020 Hello, you can check lfg roles by lua GetLFGRoles(). I assume you want to taunt mobs as tank from party members, you can use something like var targettotaunt = wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitAttackables().Where(q=>q.InCombat && q.TargetObject != ObjectManager.Me).FirstOrDefault(); To check wow class you can use wManager.Wow.ObjectManager.WoWUnit.WowClass AntonDingir8 1 Link to comment Share on other sites More sharing options...
AntonDingir8 0 Posted December 26, 2020 Author Share Posted December 26, 2020 Thank you! But where should i put this c# code ? And my friend said to me that wow has problems with checking what role peoples are in LFG, is it buggy ? Will this works? -> GetLFGRoles() Im playing on private 3.3.5 server. Link to comment Share on other sites More sharing options...
zzzar 13 Posted December 26, 2020 Share Posted December 26, 2020 Oh, my bad , GetLFGRoles() return your role, for checking other's roles you need UnitGroupRolesAssigned(Unit); . Taunt code needs to be put in fightclass, or plugin if you wish. Link to comment Share on other sites More sharing options...
AntonDingir8 0 Posted December 26, 2020 Author Share Posted December 26, 2020 https://prnt.sc/waitwz like this ? Link to comment Share on other sites More sharing options...
zzzar 13 Posted December 27, 2020 Share Posted December 27, 2020 not tested fc.xml Link to comment Share on other sites More sharing options...
AntonDingir8 0 Posted December 27, 2020 Author Share Posted December 27, 2020 Its not working ? And as i understood this code will taunt enemy from everyone that isn't himself. I want it to taunt only enemy only if attacked player is a priest mage shaman rouge.. dd, rdd or healer. Not from tank.? And how to make it work in raids groups too? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now