Script Function: Q43G
From Ultima Online: The Second Age
function int Q43G(obj Q5UY, obj Q4XN, int damage) { int Q5TQ = 0x00; if (isValid(Q5UY)) { if (hasObjVar(Q5UY, "magicItemDamage")) { int Q54V = getObjVar(Q5UY, "magicItemDamage"); Q5TQ = Q54V * 0x0A; } else { if (isValid(Q4XN)) { if (isMobile(Q4XN)) { Q5TQ = getSkillLevel(Q4XN, 0x19); } } } } else { if (isValid(Q4XN)) { if (isMobile(Q4XN)) { Q5TQ = getSkillLevel(Q4XN, 0x19); } } } return (Q43F(Q5TQ, damage)); }