Script Function: Q4IY
From Ultima Online: The Second Age
function void Q4IY(obj user, obj usedon) { int Q4NC; loc Q4VS = getLocation(user); loc there = getLocation(usedon); faceHere(user, getDirectionInternal(Q4VS, there)); if (hasObjVar(this, "magicItemModifier")) { int Q52W = getObjVar(this, "magicItemModifier"); Q4NC = 0x06 * Q52W; } else { Q4NC = 0x01 + (0x05 * (getSkillLevel(user, 0x19))); } sfx(there, 0x01E9, 0x00); openGump(usedon, 0x1392); attachScript(usedon, "rembirdi"); callback(usedon, Q4NC, 0x2B); int Q47S = getObjType(this); callback(this, 0x00, 0x48); return (); }