Script: Dec teleport

From Ultima Online: The Second Age
Revision as of 22:50, 5 October 2018 by Grimoric (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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);
}