Difference between revisions of "Script Function: Q56V"

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> Q56V(<span style="color:#0000FF">obj</span> recipient, <span style="color:#0000FF">string...")
 
 
Line 11: Line 11:
 
     [[Engine Function:_prependToList|<span style="color:#FF0000;font-weight:bold">prependToList</span>]](args, Q56R);
 
     [[Engine Function:_prependToList|<span style="color:#FF0000;font-weight:bold">prependToList</span>]](args, Q56R);
 
     [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]](Q4DT, <span style="color:#800000">"addMessage"</span>, args);
 
     [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]](Q4DT, <span style="color:#800000">"addMessage"</span>, args);
     <span style="color:#0000FF">int</span> Q4Q1 = [[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q4DT, [[Engine Function:_getRelayLoc|<span style="color:#FF0000;font-weight:bold">getRelayLoc</span>]](recipient));
+
     <span style="color:#0000FF">int</span> Q4Q1 = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q4DT, [[Engine Function:_getRelayLoc|<span style="color:#FF0000;font-weight:bold">getRelayLoc</span>]](recipient));
 
     [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](args);
 
     [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](args);
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](Q4DT))
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](Q4DT))

Latest revision as of 08:46, 19 October 2018

 function void Q56V(obj recipient, string Q56R, list args)
 {
   if (isValid(recipient))
   {
     message(recipient, Q56R, args);
     return ();
   }
   obj Q4DT = createNoResObjectAt(0x01, getLocation(this));
   setObjVar(Q4DT, "recipient", recipient);
   attachScript(Q4DT, "comprobe");
   prependToList(args, Q56R);
   message(Q4DT, "addMessage", args);
   int Q4Q1 = teleport(Q4DT, getRelayLoc(recipient));
   clearList(args);
   if (isValid(Q4DT))
   {
     message(Q4DT, "teleported", args);
   }
   return ();
 }