Well, this
may be possible, as long as the buff is applied to you and not the pet.
To remove (again, as long as this buff is on
You and not the pet)
|
Source code
|
1
|
/run for i=1,100 do n,_,_,id=UnitBuff("player",i) if id==503479 then CancelPlayerBuff(i) break end end
|
As for using the item, you can simply put it on an action bar slot and either click the item manually, or use it via a macro with:
|
Source code
|
1
|
/run UseAction([I][B]slot[/B][/I])
|
replace
slot above with the action bar slot number. They are numbered from left to right, top to bottom in the following way
- Main Bar (1-20)
- Upper Bar (21-40)
- Right Bar (41-60)
- Left Bar (61-80)