Script Function: Q4H6

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