Script Function: Q51U

From Ultima Online: The Second Age
Revision as of 05:20, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q51U(<span style="color:#0000FF">obj</span> Q5NV, <span style="color:#0000FF">obj</span> u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q51U(obj Q5NV, obj user, obj usedon)
 {
   list Q51V;
   getContents(Q51V, Q5NV);
   int num = numInList(Q51V);
   for(int Q4EJ = 0x00; Q4EJ < num; Q4EJ++)
   {
     obj Q51R = Q51V[Q4EJ];
     if (Q51O(Q51R, usedon))
     {
       if (Q51Q(Q51R, usedon))
       {
         barkTo(usedon, user, "You lock " + getName(usedon) + ".");
       }
       else
       {
         barkTo(usedon, user, "You unlock " + getName(usedon) + ".");
       }
       return (0x01);
     }
   }
   barkTo(usedon, user, "You do not have a key for " + getName(usedon) + ".");
   return (0x01);
 }