Script: Poi cleanup

From Ultima Online: The Second Age
Revision as of 16:44, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { callback|<span style="color:#FF0000;font-weight:bold">c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger creation
{
  callback(this, 0x01F4, 0x4C);
  return (0x01);
}
trigger callback(0x4C)
{
  list Q5J1;
  getPlayersInRange(Q5J1, getLocation(this), 0x0F);
  if (numInList(Q5J1) > 0x00)
  {
    callback(this, 0x012C, 0x4C);
    return (0x00);
  }
  deleteObject(this);
  return (0x01);
}
trigger enterrange(0x05)
{
  if (!isPlayer(target))
  {
    return (0x01);
  }
  callback(this, 0x012C, 0x4C);
  return (0x01);
}