Script Function: Q41H
From Ultima Online: The Second Age
function void Q41H(obj Q4XN) { int value = 0x00; if (hasObjVar(Q4XN, "mybasevalue")) { value = getObjVar(Q4XN, "mybasevalue"); } int Q4AX = Q42M(); int Q5BE = 0x00; if (Q4AX < 0x00) { Q5BE = 0x03E7; } else { Q5BE = 0x01 * Q4AX / 0x0A; } Q5BE = Q5BE + 0x05; if (Q5BE != value) { setObjVar(Q4XN, "mybasevalue", Q5BE); } return (); }