Difference between revisions of "Script Function: Q4RQ"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
(No difference)

Revision as of 10:08, 7 October 2018

 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);
 }