Difference between revisions of "Script: 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 = getRelayLoc|<span st...")
 
 
Line 21: Line 21:
 
       }
 
       }
 
     }
 
     }
 +
    <span style="color:#0000FF">return</span> ();
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> teleported()
 +
  {
 +
    <span style="color:#0000FF">list</span> args = subject;
 +
    [[Engine Function:_messageToRange|<span style="color:#FF0000;font-weight:bold">messageToRange</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x01, <span style="color:#800000">"consolidateBounty"</span>, args);
 +
    [[Script_Function:_Q66G|<span style="color:#2B91AF">Q66G</span>]]();
 +
    [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x0E10, 0x0FA0), 0x2F);
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 18:29, 12 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 ();
 }
 function void teleported()
 {
   list args = subject;
   messageToRange(getLocation(this), 0x01, "consolidateBounty", args);
   Q66G();
   callback(this, random(0x0E10, 0x0FA0), 0x2F);
   return ();
 }