Script Function: Q4X8

From Ultima Online: The Second Age
Revision as of 15:53, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4X8(<span style="color:#0000FF">obj</span> key, <span style="color:#0000FF">obj</span> Q6...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }