Script Function: Q4A7

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4A7(obj Q68D, loc Q5U8, loc dest)
 {
   if (isPlayer(Q68D))
   {
     if (Q4YX(Q5U8, dest))
     {
       if (isGoldAccount(Q68D))
       {
         return (0x01);
       }
       else
       {
         return (0x00);
       }
     }
     else
     {
       if (Q4YW(Q5U8, dest))
       {
         if (isRiding(Q68D))
         {
         }
       }
     }
     return (0x01);
   }
   if (isNPC(Q68D))
   {
     if (Q50C(Q68D))
     {
       if (Q4YW(Q5U8, dest))
       {
         return (0x00);
       }
       else
       {
         return (0x01);
       }
     }
     return (0x01);
   }
   return (0x01);
 }