Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "inc_lua"
- //Get the wizard specialization of oCreature
- //Returns -1 if oCreature is not a wizard
- int GetWizardSpecialization(object oCreature);
- int GetWizardSpecialization(object oCreature){
- if(GetObjectType(oCreature)==OBJECT_TYPE_CREATURE && GetLevelByClass(CLASS_TYPE_WIZARD,oCreature)>0){
- return StringToInt(ExecuteLuaString(oCreature,"return nwn.SetGetSpecialization(OBJECT_SELF);"));
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement