Script Function: Q42D

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q42D(obj it, int Q5VX, int Q4ID)
 {
   int Q463 = 0x01;
   if (!Q4ID)
   {
     Q463 = 0x00 - 0x01;
   }
   if (!isMobile(it))
   {
     return ();
   }
   string name = Q4T9(Q5VX, Q463);
   if (hasObjVar(it, name))
   {
     Q463 = getObjVar(it, name);
     Q43H(it, Q5VX, 0x00 - Q463);
     removeObjVar(it, name);
   }
   if (hasScript(it, name))
   {
     detachScript(it, name);
   }
   return ();
 }