Script: Shiprightplank

From Ultima Online: The Second Age
Revision as of 15:03, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> shipplank; <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">int</span> Q5NC = Q5S7|<s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits shipplank;
trigger creation
{
  int Q5NC = Q5S7(this, 0x00, "shiprightplank");
  return (0x01);
}
trigger enterrange(0x00)
{
  return (Q5S5(0x00, this, target));
}
trigger ooruse
{
  if (isDead(user))
  {
    Q5RW(0x00, this, user);
    return (0x00);
  }
  int Q5NC = Q5SA(0x00, this, user);
  if (!Q5S7(this, 0x00, "shiprightplank"))
  {
    Q5S6(getMultiSlaveId(this));
  }
  return (0x00);
}
trigger use
{
  if (isDead(user))
  {
    Q5RW(0x00, this, user);
    return (0x00);
  }
  int Q5NC = Q5SA(0x00, this, user);
  if (!Q5S7(this, 0x00, "shiprightplank"))
  {
    Q5S6(getMultiSlaveId(this));
  }
  return (0x01);
}
trigger multirecycle
{
  Q5RX(0x00, this, oldtype);
  return (0x01);
}