Script: Horse

From Ultima Online: The Second Age
Revision as of 21:23, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> pet; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">if</span> (isDead|<span style="color...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits pet;
trigger use
{
  if (isDead(user))
  {
    return (0x00);
  }
  if (!hasObjListVar(this, "myBoss"))
  {
    barkTo(this, user, "That horse does not look broken! You would have to tame it to ride it.");
    return (0x00);
  }
  if (hasObjListVar(this, "myBoss"))
  {
    if (!Q4BD(this, user))
    {
      barkTo(this, user, "This isn't your horse; it refuses to let you ride.");
      return (0x00);
    }
    return (0x01);
  }
  return (0x01);
}