Script Function: Q45B

From Ultima Online: The Second Age
Revision as of 17:55, 12 October 2018 by Grimoric (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }