Difference between revisions of "Script: Dest tele one"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> enterrange(0x02) { <span style="color:#0000FF">loc</span> toLocation = 0x1417, 0x0322, 0x03; <span style="color:#0000FF">if<...")
(No difference)

Revision as of 22:45, 5 October 2018

trigger enterrange(0x02)
{
  loc toLocation = 0x1417, 0x0322, 0x03;
  if (getY(getLocation(target)) > getY(getLocation(this)))
  {
    return (0x01);
  }
  if (!teleport(target, toLocation))
  {
    return (0x00);
  }
  return (0x01);
}