buzzard 3 Posted September 6, 2014 Share Posted September 6, 2014 Heyya anyone knows if there is a method that can retrieve player debuff type. Basicly instead of : player.HaveBuff("SomeHarmFulDebuff") I can retrieve collection of partymember debuffs. Then iterate the collection and see if debuff type is magic/poison/curse and dispell it with some spell like "Natures's Cure" Else I'll have to use a list of all harmfull spells(gonna be a long one i guess...) Bear T.O.E. 1 Link to comment Share on other sites More sharing options...
Droidz 2726 Posted September 10, 2014 Share Posted September 10, 2014 Hello, You can use lua for it: http://www.wowwiki.com/API_UnitBuff and http://www.wowwiki.com/API_UnitDebuff for i=1,40 do local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player",i); if spellId > 0 then print("name="..debuffType) end end buzzard 1 Link to comment Share on other sites More sharing options...
buzzard 3 Posted September 13, 2014 Author Share Posted September 13, 2014 Yeah I've found this in wow api when I was planning to make 'database' of all debuffs :p Guess I'll be using parts of lua, thanks! 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