Script Function: Cleanup

From Ultima Online: The Second Age
Revision as of 19:04, 7 October 2018 by Grimoric (talk | contribs)
Jump to: navigation, search
 function void cleanup()
 {
   removeObjVar(this, <span style="lastCriminal");
   removeObjVar(this, <span style="lastVictim");
   removeObjVar(this, <span style="crimeSeverity");
   removeObjVar(this, <span style="crimeLocation");
   detachScript(this, <span style="witness");
   return ();
 }
 function void cleanup()
 {
   if (isContainer(this))
   {
     list Q4E4;
     getContents(Q4E4, this);
     while(numInList(Q4E4))
     {
       list args;
       message(Q4E4[0x00], "cleanup", args);
       removeItem(Q4E4, 0x00);
     }
   }
   removeObjVar(this, "vendedOwner");
   removeObjVar(this, "vendedPrice");
   removeObjVar(this, "description");
   detachScript(this, "vended");
   return ();
 }