Script Function: Q4BM

From Ultima Online: The Second Age
Revision as of 15:53, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4BM(<span style="color:#0000FF">obj</span> it) { <span style="color:#0000FF">if</sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4BM(obj it)
 {
   if (isMobile(it))
   {
     list Q4O4;
     getEquipment(Q4O4, it);
     obj bank = getItemAtSlot(it, 0x1D);
     if (bank != NULL())
     {
       appendToList(Q4O4, bank);
     }
     if (Q4CB(it, Q4O4))
     {
       return (0x01);
     }
   }
   if (isContainer(it))
   {
     list Q4E4;
     getContents(Q4E4, it);
     if (Q4CB(it, Q4E4))
     {
       return (0x01);
     }
   }
   if (!isMobile(it))
   {
     if (Q4CA(it))
     {
       return (0x01);
     }
   }
   return (0x00);
 }