Script Function: Q51Q

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q51Q(obj key, obj Q4MZ)
 {
   if (!hasObjVar(Q4MZ, "isLocked"))
   {
     int one = getObjVar(Q4MZ, "lockLevel");
     setObjVar(Q4MZ, "isLocked", one);
     return (0x01);
   }
   removeObjVar(Q4MZ, "isLocked");
   return (0x00);
 }