Script Function: Q5ME

From Ultima Online: The Second Age
Revision as of 02:44, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5ME(<span style="color:#0000FF">obj</span> it) { <span style="color:#0000FF">if</s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5ME(obj it)
 {
   if (Q4MY)
   {
     return ();
   }
   int Q51J;
   list Q5FK;
   string Q53Y;
   int Q5JI;
   int objSlot;
   if (hasObjVar(it, "oldBodyType"))
   {
     setType(it, getObjVar(it, "oldBodyType"));
     removeObjVar(it, "oldBodyType");
   }
   if (hasObjVar(it, "oldHue"))
   {
     setHue(it, getObjVar(it, "oldHue"));
     removeObjVar(it, "oldHue");
   }
   if (hasObjListVar(it, "notMyItems"))
   {
     getObjListVar(Q5FK, it, "notMyItems");
     removeObjVar(it, "notMyItems");
   }
   Q5JI = numInList(Q5FK);
   for(int x = 0x00; x < Q5JI; x++)
   {
     objSlot = getObjVar(Q5FK[x], "objSlot");
     removeObjVar(Q5FK[x], "objSlot");
     Q51J = equipObj(Q5FK[x], it, objSlot);
   }
   shortcallback(it, 0x01, 0x71);
   Q4MY = 0x01;
   return ();
 }