Script Function: Q4MU

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q4MU(obj user, int Q4NC)
 {
   obj Q5F4;
   obj Q69F;
   list Q5FH;
   int Q51J;
   if (hasScript(Q62D, "remincognito"))
   {
     list Q5DR;
     message(Q62D, "undoincognito", Q5DR);
   }
   for(int x = 0x01; x < 0x11; x++)
   {
     Q5F4 = getItemAtSlot(Q62D, x);
     if (isValid(Q5F4))
     {
       debugMessage("removing items");
       Q51J = putObjContainer(Q5F4, Q62D);
       appendToList(Q5FH, Q5F4);
       setObjVar(Q5F4, "objSlot", x);
       if (!Q51J)
       {
         debugMessage("item stacker error");
       }
     }
   }
   setObjVar(user, "notMyItems", Q5FH);
   attachScript(user, "polychec");
   callback(user, Q4NC, 0x14)return();
 }