Script: Teleported

From Ultima Online: The Second Age
Jump to: navigation, search
 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 ();
 }
 function void teleported()
 {
   list args = subject;
   messageToRange(getLocation(this), 0x01, "consolidateBounty", args);
   Q66G();
   callback(this, random(0x0E10, 0x0FA0), 0x2F);
   return ();
 }