Script Function: Q4RQ
From Ultima Online: The Second Age
function int Q4RQ(obj owner) { list goldOwnerList; getObjListVar(goldOwnerList, this, "goldOwnerList"); int quantity = 0x00; for(int i = 0x00; i < numInList(goldOwnerList); i++) { obj Q4FL = goldOwnerList[i]; if (owner == Q4FL) { list goldQuantityList; getObjListVar(goldQuantityList, this, "goldQuantityList"); quantity = goldQuantityList[i]; break; } } return (quantity); }