Difference between revisions of "Script Function: Q4X2"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4X2(<span style="color:#0000FF">obj</span> house, <span style="color:#0000FF">obj</span>...")
 
(No difference)

Latest revision as of 03:58, 12 October 2018

 function void Q4X2(obj house, obj vendor)
 {
   if (hasObjListVar(house, "vendors"))
   {
     list Q5AV;
     getObjListVar(Q5AV, house, "vendors");
     removeSpecificItem(Q5AV, vendor);
     if (numInList(Q5AV) > 0x00)
     {
       setObjVar(house, "vendors", Q5AV);
     }
     else
     {
       removeObjVar(house, "vendors");
     }
   }
   return ();
 }