Difference between revisions of "Script Function: Q45B"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q45B(<span style="color:#0000FF">obj</span> Q4MZ, <span style="color:#0000FF">obj</span> k...")
 
(No difference)

Latest revision as of 18:55, 12 October 2018

 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);
 }