Difference between revisions of "Script: Des stairs"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { setType|<span style="color:#FF0000;font-weight:bold">se...")
 
 
Line 34: Line 34:
 
   <span style="color:#0000FF">if</span> ([[Engine Function:_isInMap|<span style="color:#FF0000;font-weight:bold">isInMap</span>]](Q648))
 
   <span style="color:#0000FF">if</span> ([[Engine Function:_isInMap|<span style="color:#FF0000;font-weight:bold">isInMap</span>]](Q648))
 
   {
 
   {
     <span style="color:#0000FF">int</span> r = [[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648);
+
     <span style="color:#0000FF">int</span> r = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648);
 
     <span style="color:#0000FF">return</span> (!r);
 
     <span style="color:#0000FF">return</span> (!r);
 
   }
 
   }
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 07:38, 19 October 2018

inherits globals;
trigger creation
{
  setType(this, 0x01);
  return (0x00);
}
trigger enterrange(0x01)
{
  loc Q54M = 0x140A, 0x038C, (0x00 - 0x16);
  loc Q54P = 0x1418, 0x031D, 0x16;
  loc Q54Q = 0x1420, 0x032A, (0x00 - 0x13);
  loc Q54N = 0x140D, 0x03D9, 0x16;
  loc Q43K = getLocation(this);
  loc Q648;
  Q648 = 0x00 - 0x01, 0x00 - 0x01, 0x00;
  if (Q43K == Q54M)
  {
    Q648 = 0x1417, 0x0322, 0x04;
  }
  if (Q43K == Q54P)
  {
    Q648 = 0x140A, 0x0387, 0x00;
  }
  if (Q43K == Q54Q)
  {
    Q648 = 0x1412, 0x03D9, 0x05;
  }
  if (Q43K == Q54N)
  {
    Q648 = 0x141C, 0x032A, 0x00;
  }
  if (isInMap(Q648))
  {
    int r = teleport(target, Q648);
    return (!r);
  }
  return (0x01);
}