Script Function: Q5N6

From Ultima Online: The Second Age
Revision as of 05:24, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5N6() { <span style="color:#0000FF">obj</span> Q5C1 = createGlobalNPCAtSpecificL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ();
 }