Difference between revisions of "Script Function: Q61L"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q61L(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...") |
(No difference)
|
Latest revision as of 15:29, 12 October 2018
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); }