Script Function: Q4NQ

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4NQ(obj user)
 {
   obj rightHand = getItemAtSlot(user, 0x01);
   obj leftHand = getItemAtSlot(user, 0x02);
   if (leftHand != NULL())
   {
     if (isWeapon(leftHand))
     {
       barkToHued(user, user, 0x22, "You must have a free hand to drink a potion.");
       return (0x00);
     }
     if (rightHand != NULL())
     {
       barkToHued(user, user, 0x22, "You must have a free hand to drink a potion.");
       return (0x00);
     }
   }
   return (0x01);
 }