What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Checking toon for Profession!?

thenrique87

Member
Joined
May 20, 2010
Messages
143
Reaction score
0
hey guys

Im trying to find a way to use the "if" statement to check the toon for any primary profession on slot1 or slot2.... I dont know how else to explain what im looking for, so here is an example:

<If Condition="PrimarySkill(Slot1) == 0" > (meaning there is no skill on the first slot under the profession tab)

I mean something like that... I dont care how you guys play around with it, just something that works.
Any ideas? Thanks in advance!
 
If Mining.Level >0 || leatherworking.Level >0 ||... And so on, you get the Point?

Only profession missing is skinning, you would need an lua event to return those numbers.

Not the easiest way, but the way I would do it.
 
Well, there are conditions that would allow me to check the level of a profession, but my problem is checking if there is any profession in one slot or the other. I get what your saying, but it doesnt solve my problem really.

I wanna ask the bot to do this;

Do I have a profession on the PrimaryProfession1StatusBar? if so, do this.
Do I have a profession on the PrimaryProfession2StatusBar? if so, do that.

Example;
1- My lock has a mining on the second Primary Profession bar, but nothing on the first. That means its got only one profession learned, thus i can work on trying to make it learn the other.

2- The other scenario would be checking for professions, period. If i got one profession learned do this, If i got no profession learned do that.

Is this easier to grasp?
 
This would work too, if you check for lvl >0, this means the profession is learned. So yes it returns the prof level, but in this case it returns if a professions is learned or not.

First you check if any prof is learned and right after it, you check if a second prof is learned, can't see where the problem is huh?

The third step could be what to do when prof x is learned.

You could add this in one if clause or in separate ones.

Or if you don't like my style, search this website:

docs/api - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

There should be something useful.

If not, next step, pm inrego, he knows too much. ;)
 
Im not so good at this stuff but trying to learn. Cant you just check for all proffesions and when you find one you add +1 to a int variabel? And then if n<2 you learn a second proffesion?

Really tired and you prolly thought this through.. and as always there is a better way :)!
 
Back
Top