I have not tried this, but without using a packet editor my best gues would be:
1) When a mastery is at 0% kill one thing, it should say something like +33exp
2) Scan for the value of that, in my example you would scan for 33
3) kill something else
4) asuming that gives you +33 exp again scan for 66
5) continue this untill you have only a few adresses left
I have not tried this so it may not work, if some one has a way that definately works please post it