Script Function: Q5S9

From Ultima Online: The Second Age
Revision as of 22:01, 11 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5S9(<span style="color:#0000FF">int</span> Q5T4, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5S9(int Q5T4, obj Q5IB)
 {
   setType(Q5IB, Q5SB(Q5T4, getObjType(Q5IB)));
   int Q4VF = hasObjVar(Q5IB, "notLockable");
   int Q50U = Q5S2(Q5T4, getObjType(Q5IB));
   if ((Q50U) && (!Q4VF))
   {
     int Q527 = 0x01;
     setObjVar(Q5IB, "notLockable", Q527);
   }
   if ((!Q50U) && (Q4VF))
   {
     removeObjVar(Q5IB, "notLockable");
   }
   return;
 }