Difference between revisions of "Script Function: Q4H6"
From Ultima Online: The Second Age
(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</...") |
(No difference)
|
Latest revision as of 22:29, 11 October 2018
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); }