Difference between revisions of "Script Function: Q4BI"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4BI(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
 
(No difference)

Latest revision as of 16:10, 10 October 2018

 function int Q4BI(obj user, obj usedon, int damage)
 {
   if (isDead(usedon))
   {
     return (0x00);
   }
   if (Q5ZJ(usedon, 0x1A, Q42P(damage), 0x28) > 0x00)
   {
     systemMessage(usedon, "You feel yourself resisting magical energy!");
     return ((damage + 0x01) / 0x02);
   }
   return (damage);
 }