Script Function: Q61L
From Ultima Online: The Second Age
function int Q61L(obj user, obj usedon) { if (usedon == NULL()) { return (0x00); } if (hasObjVar(usedon, "inUse")) { systemMessage(user, "Someone else is inscribing that item."); return (0x00); } int Q66P = getObjType(usedon); switch (Q66P) { case 0x0EF3 case 0x0E34 Q56M = usedon; Q62D = user; setObjVar(Q56M, "inUse", 0x00); attachscript(Q56M, "removeinuse"); callback(Q56M, 0x3C, 0x1B); return (Q65B(user, usedon)); break; case 0x0FEF case 0x0FF0 case 0x0FF1 case 0x0FF2 Q56M = usedon; Q62D = user; setObjVar(Q56M, "inUse", 0x00); attachscript(Q56M, "removeinuse"); callback(Q56M, 0x3C, 0x1B); return (Q65A(user, usedon)); break; default systemMessage(user, "Can't inscribe that item."); if (hasObjVar(Q5U9, "inUse")) { removeObjVar(Q5U9, "inUse"); } if (hasObjVar(usedon, "inUse")) { removeObjVar(usedon, "inUse"); } return (0x00); break; } return (0x01); }