Script: Play

From Ultima Online: The Second Age
Revision as of 16:48, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> use { setObjVar|<span style="color:#FF0000;font-weight:bold">setObjV...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits sndfx;
trigger use
{
  setObjVar(user, "lastInstrument", this);
  int Q5U6;
  if (!skillTest(user, 0x1D))
  {
    Q5U6 = getObjVar(this, "badSound");
    sfx(getLocation(user), Q5U6, 0x3C);
    return (0x00);
  }
  Q5U6 = getObjVar(this, "goodSound");
  sfx(getLocation(user), Q5U6, 0x3C);
  return (0x01);
}