Script Function: CheckStatus

From Ultima Online: The Second Age
Revision as of 18:49, 7 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void checkStatus()
 {
   if (isContainer(this))
   {
     list Q4E4;
     getContents(Q4E4, this);
     while(numInList(Q4E4))
     {
       list args;
       if (!hasScript(Q4E4[0x00], <span style="color:#800000">"vended"</span>))
       {
         attachScript(Q4E4[0x00], <span style="color:#800000">"vended"</span>);
       }
       message(Q4E4[0x00], <span style="color:#800000">"checkStatus"</span>, args);
       removeItem(Q4E4, 0x00);
     }
   }
   if (Q4SH() < 0x00)
   {
     if (!Q4Z0(this))
     {
       setObjVar(this, <span style="color:#800000">"vendedPrice"</span>, getValue(this));
     }
   }
   return ();
 }