Script: Sethue

From Ultima Online: The Second Age
Revision as of 15:19, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">int</span> x = <span style="color:#FF0000;font-weight:bold">getHue</span>(this);...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger use
{
  int x = getHue(this);
  if (x < 0x0960)
  {
    x = 0x0960;
  }
  x = x + 0x01;
  if (x > 0x097D)
  {
    x = 0x0961;
  }
  setHue(this, x);
  string Q4XU = x;
  bark(this, Q4XU);
  return (0x01);
}