Script: Reminvis

From Ultima Online: The Second Age
Revision as of 15:41, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">member</span> <span style="color:#0000FF">loc</span> where; <span style="color:#0000...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits spelskil;
member loc where;
trigger creation
{
  where = getLocation(this);
  callback(this, 0x01, 0x94);
  return (0x01);
}
function void Q5MC(obj Q4XN)
{
  setInvisible(Q4XN, 0x00);
  detachScript(Q4XN, "reminvis");
  return ();
}
trigger callback(0x94)
{
  if (getLocation(this) != where)
  {
    Q5MC(this);
  }
  else
  {
    callback(this, 0x01, 0x94);
  }
  return (0x00);
}
trigger callback(0x1F)
{
  Q5MC(this);
  return (0x00);
}
trigger message("uninvis")
{
  Q5MC(this);
  return (0x01);
}