Difference between revisions of "Script: Telecheck"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">member</span> <span style="color:#0000FF">obj</span> Q68D; <span style="color:#0000FF"...")
 
 
Line 13: Line 13:
 
   Q58C = args[0x03];
 
   Q58C = args[0x03];
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x00, 0x86);
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x00, 0x86);
   <span style="color:#0000FF">int</span> Q527 = [[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](this, where);
+
   <span style="color:#0000FF">int</span> Q527 = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](this, where);
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 08:13, 19 October 2018

inherits globals;
member obj Q68D;
member loc where;
member int Q4VQ;
member int Q58C;
trigger message("telecheck")
{
  Q68D = args[0x00];
  where = args[0x01];
  Q4VQ = args[0x02];
  Q58C = args[0x03];
  callback(this, 0x00, 0x86);
  int Q527 = teleport(this, where);
  return (0x01);
}
trigger callback(0x86)
{
  int success = 0x00;
  if (getLocation(this) == where)
  {
    if (canExistAt(where, Q4VQ, Q58C) == 0x07)
    {
      success = 0x01;
    }
  }
  list Q5MM;
  if (success)
  {
    appendToList(Q5MM, 0x01);
  }
  else
  {
    appendToList(Q5MM, 0x00);
  }
  appendToList(Q5MM, where);
  multimessage(Q68D, "telereply", Q5MM);
  deleteObject(this);
  return (0x01);
}