Script Function: Q4RQ

From Ultima Online: The Second Age
Revision as of 01:13, 8 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 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);
 }