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