Script Function: Q5RW
From Ultima Online: The Second Age
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 (); }