Script Function: Q446

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q446(obj user, obj usedon)
 {
   if (usedon == NULL())
   {
     return (0x00);
   }
   if ((containedBy(usedon) == NULL()) && (canSeeObj(user, usedon) != 0x01))
   {
     bark(user, "I cannot see that object.");
     return (0x00);
   }
   if (isMobile(usedon))
   {
     bark(user, "I cannot gate travel from that object.");
     return (0x00);
   }
   return (0x01);
 }