Script Function: Q4RQ

From Ultima Online: The Second Age
Revision as of 11:08, 7 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4RQ(<span style="color:#0000FF">obj</span> owner) { <span style="color:#0000FF">lis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4RQ(obj owner)
 {
   list goldOwnerList;
   getObjListVar(goldOwnerList, this, <span style="color:#800000">"goldOwnerList"</span>);
   int quantity = 0x00;
   for(int i = 0x00; i < numInList(goldOwnerList); i++)
   {
     obj Q4FL = goldOwnerList[i];
     if (owner == Q4FL)
     {
       list goldQuantityList;
       getObjListVar(goldQuantityList, this, <span style="color:#800000">"goldQuantityList"</span>);
       quantity = goldQuantityList[i];
       break;
     }
   }
   return (quantity);
 }