Script Function: Q4H6

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4H6(obj user)
 {
   if (!getFreeHandSlot(user))
   {
     systemMessage(user, "You must have a free hand to drink a potion.");
     return (0x00);
   }
   if (random(0x00, 0x01) == 0x01)
   {
     sfx(getLocation(user), 0x30, 0x00);
   }
   else
   {
     sfx(getLocation(user), 0x31, 0x00);
   }
   animateMobile(user, 0x21, 0x02, 0x01, 0x00, 0x01);
   return (0x01);
 }