Script Function: Q4X8

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4X8(obj key, obj Q68S, obj it)
 {
   loc where = getLocation(Q68S);
   obj house = Q4YP(Q68S, where);
   if (!isValid(house))
   {
     systemMessage(Q68S, "You are not around your house.");
     return (0x00);
   }
   if (!Q4X7(key, house))
   {
     systemMessage(Q68S, "This key is not for this house.");
     return (0x00);
   }
   if (Q50T(it))
   {
     Q666(it);
     systemMessage(Q68S, "You release that locked down object.");
   }
   else
   {
     Q53Q(it);
     systemMessage(Q68S, "You lock that down.");
   }
   return (0x01);
 }