Difference between revisions of "Script Function: Q5RW"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5RW(<span style="color:#0000FF">int</span> Q5T4, <span style="color:#0000FF">obj</span>...")
 
(No difference)

Latest revision as of 23:00, 11 October 2018

 function void Q5RW(int Q5T4, obj Q5IB, obj user)
 {
   if (isDead(user) && isManifesting(user))
   {
     int Q50U = Q5S2(Q5T4, getObjType(Q5IB));
     if (!Q50U)
     {
       int Q5GC = isOnMulti(user, getMultiSlaveId(Q5IB));
       int Q50S = hasObjVar(Q5IB, "isLocked");
       if ((!Q5GC) && (Q50S))
       {
         barkTo(user, user, "That is locked.");
       }
       else
       {
         Q5RZ(Q5T4, Q5IB, Q50S);
       }
     }
   }
   return ();
 }