Difference between revisions of "Script: Trap brazier"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">if</span> (hasObjVar|<span style="...")
 
(No difference)

Latest revision as of 08:11, 5 October 2018

inherits sndfx;
trigger use
{
  if (hasObjVar(this, "brazierTrapInUse"))
  {
    return (0x00);
  }
  loc Q61U = getLocation(this);
  setObjVar(this, "brazierTrapInUse", 0x00);
  loc Q466 = getX(getLocation(this)), getY(getLocation(this)), (getZ(getLocation(this)) + 0x05);
  doLocAnimation(Q466, 0x3709, 0x0A, 0x1E, 0x00, 0x00);
  sfx(Q61U, 0x54, 0x05);
  callback(this, 0x04, 0x41);
  return (0x00);
}
trigger callback(0x41)
{
  removeObjVar(this, "brazierTrapInUse");
  return (0x00);
}