Difference between revisions of "Script: Trap tele gen er one"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> enterrange(0x01) { <span style="color:#0000FF">loc</span> Q648; <span style="color:#0000FF">if</span> (hasObjVar|<span sty...")
 
 
Line 6: Line 6:
 
     Q648 = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"toLocation"</span>)
 
     Q648 = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"toLocation"</span>)
 
     );
 
     );
     <span style="color:#0000FF">if</span> (![[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648))
+
     <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, Q648))
 
     {
 
     {
 
       <span style="color:#0000FF">return</span> (0x01);
 
       <span style="color:#0000FF">return</span> (0x01);

Latest revision as of 07:52, 19 October 2018

trigger enterrange(0x01)
{
  loc Q648;
  if (hasObjVar(this, "toLocation"))
  {
    Q648 = getObjVar(this, "toLocation")
    );
    if (!teleport(target, Q648))
    {
      return (0x01);
    }
    return (0x00);
  }
  return (0x01);
}