Script Function: Q5N6

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q5N6()
 {
   obj Q5C1 = createGlobalNPCAtSpecificLoc(getTemplate(this), getLocation(this));
   if (!isValid(Q5C1))
   {
     return ();
   }
   copyAllObjVars(Q5C1, this);
   list Q4E4;
   getContents(Q4E4, this);
   debugMessage("Items found:" + numInList(Q4E4));
   for(int i = numInList(Q4E4) - 0x01; i >= 0x00; i--)
   {
     debugMessage(getName(Q4E4[0x00]) + "(" + i + ")");
     int Q4Q1;
     if (isMobile(Q4E4[0x00]))
     {
       Q4Q1 = putMobContainer(Q4E4[0x00], Q5C1);
     }
     else
     {
       Q4Q1 = putObjContainer(Q4E4[0x00], Q5C1);
     }
     removeItem(Q4E4, 0x00);
   }
   return ();
 }