Script Function: Q5S9

From Ultima Online: The Second Age
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;
 }