Difference between revisions of "Script: Cow"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q635(<span style="color:#0000FF">...")
 
(No difference)

Latest revision as of 23:42, 5 October 2018

inherits sndfx;
function void Q635(obj cow)
{
  sfx(getLocation(this), 0x79, 0x00);
  animateMobile(this, 0x08, 0x00, 0x03, 0x00, 0x00);
  return ();
}
trigger use
{
  int Q68D = random(0x00, 0x63);
  if (Q68D < 0x05)
  {
    Q635(this);
  }
  else
  {
    if (Q68D < 0x14)
    {
      sfx(getLocation(this), 0x78, 0x00);
    }
    else
    {
      if (Q68D < 0x28)
      {
        sfx(getLocation(this), 0x79, 0x00);
      }
    }
  }
  return (0x01);
}