Advertisement
Terrah

GetWizardSpecialization

Aug 9th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include "inc_lua"
  2.  
  3. //Get the wizard specialization of oCreature
  4. //Returns -1 if oCreature is not a wizard
  5. int GetWizardSpecialization(object oCreature);
  6.  
  7. int GetWizardSpecialization(object oCreature){
  8.  
  9.     if(GetObjectType(oCreature)==OBJECT_TYPE_CREATURE && GetLevelByClass(CLASS_TYPE_WIZARD,oCreature)>0){
  10.         return StringToInt(ExecuteLuaString(oCreature,"return nwn.SetGetSpecialization(OBJECT_SELF);"));
  11.     }
  12.  
  13.     return -1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement