Script Function: Q5JE

From Ultima Online: The Second Age
Revision as of 03:44, 12 October 2018 by Grimoric (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 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);
 }