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<...")
 
 
Line 6: Line 6:
 
     <span style="color:#0000FF">return</span> (0x01);
 
     <span style="color:#0000FF">return</span> (0x01);
 
   }
 
   }
   <span style="color:#0000FF">if</span> (![[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, toLocation))
+
   <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, toLocation))
 
   {
 
   {
 
     <span style="color:#0000FF">return</span> (0x00);
 
     <span style="color:#0000FF">return</span> (0x00);

Latest revision as of 08:39, 19 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);
}