Difference between revisions of "Script Function: teleported"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> teleported() { <span style="color:#0000FF">loc</span> Q4WK = Engine Function:_getRel...")
(No difference)

Revision as of 09:30, 21 October 2018

function void teleported()
{
  loc Q4WK = getRelayLoc(recipient);
  if (getLocation(this) == Q4WK)
  {
    list args;
    appendToList(args, recipient);
    messageToRange(Q4WK, 0x01, "consolidate", args);
    clearList(args);
    multiMessage(recipient, "requestCollection", args);
  }
  else
  {
    if (isValid(recipient))
    {
      Q4DU();
    }
    else
    {
      int Q4Q1 = teleportNoFall(this, Q4WK);
    }
  }
  return ();
}