Script: Trapped door

From Ultima Online: The Second Age
Revision as of 09:12, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">int</span> Q5CE = <span style="color:#FF0000;font-weight:bold">getX</span>(getLoca...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger use
{
  int Q5CE = getX(getLocation(this)) + 0x01;
  int Q4FT = getY(getLocation(this));
  int Q4FU = getZ(getLocation(this));
  loc Q64L = Q5CE, Q4FT, Q4FU;
  if (!hasObjVar(this, "not_trapped"))
  {
    doLocAnimation(Q64L, 0x372A, 0x02, 0x14, 0x00, 0x00);
    return (0x00);
  }
  return (0x01);
}