Script Function: Q553

From Ultima Online: The Second Age
Jump to: navigation, search
 function obj Q553(loc location, obj Q5UY, obj caster)
 {
   obj spirit = createGlobalNPCAt(0x023E, location, 0x00);
   if (spirit != NULL())
   {
     copyControllerInfo(spirit, caster);
     attachScript(spirit, "bspiritai");
     attachScript(spirit, "destcrea");
     setObjVar(spirit, "summonDifficulty", 0x01F4);
     callback(spirit, 0x78, 0x08);
     if (!getCompileFlag(0x01))
     {
       Q5UL(spirit, location, 0x02, 0x00);
     }
     int Q4XF = doNPCHandleStates(spirit);
   }
   return (spirit);
 }