Script Function: Q4GK
From Ultima Online: The Second Age
function int Q4GK() { Q55A = 0x00; Q52U = 0x00; if (Q559 < 0x4E) { Q55A++; } if (Q559 < 0x1A) { Q55A++; } if (Q559 < 0x10) { Q55A++; } if (Q559 < 0x0A) { Q55A++; } if (Q559 < 0x06) { Q55A++; } if (Q559 < 0x04) { Q55A++; } if (Q4AP < 0x07) { Q52U++; } if (Q4AP < 0x06) { Q52U++; Q52U++; } if (Q4AP < 0x05) { Q52U++; } if (Q4AP < 0x04) { Q52U++; } if (Q4AP < 0x03) { Q52U++; } if (Q4AP < 0x02) { Q52U++; } if (Q55A < Q52U) { Q48D = Q52U; } else { Q48D = Q55A; } string Q56J = Q55A; string Q52D = Q52U; string b = Q48D; return (Q48D); }