Script Function: Q4J5

From Ultima Online: The Second Age
Revision as of 21:51, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4J5(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">int</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4J5(obj user, int Q68O)
 {
   int Q65M = getObjType(user);
   if (Q65M < 0xC8)
   {
     if (Q65M == 0x16)
     {
       animateMobile(user, 0x04 + Q68O - 0x01, 0x04, 0x01, 0x00, 0x00);
       return ();
     }
     if ((Q65M != 0x18) && (Q65M != 0x09) && (Q65M != 0x0A) && (Q65M != 0x04))
     {
       return ();
     }
     switch (Q68O)
     {
     case 0x01
       animateMobile(user, 0x0C, 0x07, 0x01, 0x00, 0x00);
       break;
     case 0x02
     case 0x03
       animateMobile(user, 0x0D, 0x07, 0x01, 0x00, 0x00);
       break;
     }
   }
   else
   {
     if (Q65M >= 0x0190)
     {
       if (getItemAtSlot(user, 0x19) != NULL())
       {
         return ();
       }
       switch (Q68O)
       {
       case 0x01
         animateMobile(user, 0x10, 0x07, 0x01, 0x00, 0x00);
         break;
       case 0x02
       case 0x03
         animateMobile(user, 0x11, 0x06, 0x01, 0x00, 0x00);
         break;
       }
     }
   }
   return ();
 }