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

WoWGameObject type and required skill

jim87

New Member
Joined
Aug 26, 2011
Messages
445
Reaction score
7
Hello!

I've got this snippet of code:
PHP:
WoWObject o = ...;
o.CanLoot // bool, can be used for gathering nodes
o.RequiredSkill // uint? <-- how can I use this? Why does it have the question mark?

I'd like to know how can I know which kind of node it is (o.SubType returns WoWGameObjectType, but I didn't see nor mine nor herb) and how I can find the actual profession I need to have in order to use it. Also, I found no mentions about professions under ObjectManager.Me, how could I know the actual profession levels?

Thanks.
 
Check LockType.

RequiredSkill is a uint? because its a nullable type. Please go pick up a basic programming book to read more about it (and all the other basic C# constructs)


StyxWoW.Me.GetSkill. Professions are only called professions to end-users. They're called "Skills" internally, as thats what Blizzard calls them.
 
Thanks Apoc. As of the nullable type, I've never heard of it, even if I frequented 2 programming courses at the University :) - I'll study them, thanks ^^ (it's hard to search for a question mark both on google or in a book if you don't know what it represents).
 
Google

Hmm... 2nd result... yea... hard to search for.

Also, nullable types are usually chapter 3-5 in most "starter" programming books on C#. (Thats assuming they're general C# books, not aimed towards specific things such as ASP.NET, etc)
 
Last edited:
Well, actually searching "uint?" I find the definition of uint, not of nullable uint nor a general concept of nullable type. Of course knowing it's a nullable type I search c# "nullable type" and here it is at first result MSDN. I've never written in C# before, even if I programmed in other languages where I never used this tecnique - at the Univeristy teachers prefere to work on cross-platform languages like Java.
 
Last edited:
Back
Top