Script Function: Q4KK
From Ultima Online: The Second Age
function int Q4KK(obj this, int Q57Y) { int myLoyalty; string debug; myLoyalty = Q4SC(); if (0x00) { debug = myLoyalty; bark(this, debug); } if ((random(0x00, 0x64) + Q57Y) > myLoyalty) { Q4LP(this); if (myLoyalty < 0x00) { Q4IH(this); } return (0x00); } myLoyalty = myLoyalty + 0x01; setObjVar(this, "myLoyalty", myLoyalty); Q4LJ(this); return (0x01); }