Script: Acidblood

From Ultima Online: The Second Age
Revision as of 01:26, 6 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> washit { <span style="color:#0000FF">if</span> (damamt < 0x03) {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits sndfx;
trigger washit
{
  if (damamt < 0x03)
  {
    return (0x01);
  }
  obj Q687 = getWeapon(attacker);
  if (Q687 == NULL())
  {
    return (0x01);
  }
  if (isRanged(Q687))
  {
    return (0x01);
  }
  int Q4XB = getCurHP(Q687);
  Q4XB = Q4XB - 0x01;
  setCurHP(Q687, Q4XB);
  ebarkTo(attacker, attacker, "*Acid blood scars your weapon!*");
  return (0x01);
}