Script Function: Q4NQ

From Ultima Online: The Second Age
Revision as of 17:11, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4NQ(<span style="color:#0000FF">obj</span> user) { <span style="color:#0000FF">obj<...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }