Script Function: Q657

From Ultima Online: The Second Age
Revision as of 04:14, 8 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q657(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">int</span> o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q657(obj user, int objtype, loc place, int Q67X, int Q5EC, int walldur, int Q4UK, int Q4H9)
 {
   if (!canSeeLoc(user, place))
   {
     return (0x00);
   }
   if (Q509(place, 0x03))
   {
     return (0x00);
   }
   obj Q4EZ = Q4EQ(objtype, place);
   if (Q4EZ != NULL())
   {
     Q5RC(Q4EZ, user);
     copyControllerInfo(Q4EZ, user);
     setObjVar(Q4EZ, "newType", Q67X);
     setObjVar(Q4EZ, "walltype", Q5EC);
     setObjVar(Q4EZ, "walldur", walldur);
     attachScript(Q4EZ, "crtwall");
     shortcallback(Q4EZ, Q4H9, 0x2E);
     if (!getCompileFlag(0x01))
     {
       if (Q4UK)
       {
         Q5UL(user, place, 0x01, 0x00);
       }
     }
     return (0x01);
   }
   return (0x00);
 }