Script Function: Q45B

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q45B(obj Q4MZ, obj key)
 {
   list Q5Z5;
   int Q51N = getObjType(key);
   switch (Q51N)
   {
   case 0x100E
   case 0x100F
   case 0x1010
   case 0x1012
   case 0x1013
     break;
   default
     bark(key, "Honestly, I'm not a key.");
     return (0x00);
     break;
   }
   if (hasObjVar(key, "whatIUnlock"))
   {
     getObjListVar(Q5Z5, key, "whatIUnlock");
   }
   appendToList(Q5Z5, Q4MZ);
   setObjVar(key, "whatIUnlock", Q5Z5);
   return (0x01);
 }