Difference between revisions of "Script Function: Q5JE"

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> Q5JE(<span style="color:#0000FF">obj</span> victim) { <span style="color:#0000FF">if...")
 
(No difference)

Latest revision as of 02:44, 12 October 2018

 function int Q5JE(obj victim)
 {
   if (isDead(this))
   {
     return (0x00);
   }
   if (!hasObjVar(this, "poison_strength"))
   {
     setObjVar(this, "poison_strength", 0x01);
     return (0x01);
   }
   if (getCurHP(this) < 0x00)
   {
     return (0x00);
   }
   return (0x01);
 }