Difference between revisions of "Script: Dec teleport"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> enterrange(0x01) { <span style="color:#0000FF">loc</span> Q4WJ = getLocation|<span style="color:#FF0000;font-weight:bold">get...")
 
 
Line 30: Line 30:
 
     Q648 = 0x1463, 0x0242, (0x00 - 0x14);
 
     Q648 = 0x1463, 0x0242, (0x00 - 0x14);
 
   }
 
   }
   <span style="color:#0000FF">if</span> (![[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648))
+
   <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648))
 
   {
 
   {
 
     <span style="color:#0000FF">return</span> (0x00);
 
     <span style="color:#0000FF">return</span> (0x00);

Latest revision as of 08:41, 19 October 2018

trigger enterrange(0x01)
{
  loc Q4WJ = getLocation(this);
  int Q53G = getX(Q4WJ);
  int Q53H = getY(Q4WJ);
  int Q53I = getZ(Q4WJ);
  loc Q648;
  if ((Q53G == 0x1461) && (Q53H == 0x0249) && (Q53I == (0x00 - 0x0A)))
  {
    Q648 = 0x14BA, 0x0216, 0x00;
  }
  if ((Q53G == 0x14B9) && (Q53H == 0x0213) && (Q53I == 0x0A))
  {
    Q648 = 0x1461, 0x0247, 0x00;
  }
  if ((Q53G == 0x14E4) && (Q53H == 0x0242) && (Q53I == (0x00 - 0x0A)))
  {
    Q648 = 0x1415, 0x028A, 0x00;
  }
  if ((Q53G == 0x1413) && (Q53H == 0x028A) && (Q53I == 0x0A))
  {
    Q648 = 0x14DE, 0x0242, 0x00;
  }
  if ((Q53G == 0x1462) && (Q53H == 0x02F9) && (Q53I == (0x00 - 0x1E)))
  {
    Q648 = 0x14BA, 0x028E, 0x00;
  }
  if ((Q53G == 0x14BA) && (Q53H == 0x028B) && (Q53I == 0x0A))
  {
    Q648 = 0x1463, 0x0242, (0x00 - 0x14);
  }
  if (!teleport(target, Q648))
  {
    return (0x00);
  }
  return (0x01);
}