Script Function: Q4X2

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