Script Function: Q553

From Ultima Online: The Second Age
Revision as of 17:39, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q553(<span style="color:#0000FF">loc</span> location, <span style="color:#0000FF">obj</spa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }