Difference between revisions of "Script: Boulder"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setType</span>(this, 0x11B6); <span style="color:#0000FF...")
 
 
Line 37: Line 37:
 
     <span style="color:#0000FF">return</span> (0x00);
 
     <span style="color:#0000FF">return</span> (0x00);
 
   }
 
   }
   <span style="color:#0000FF">if</span> (![[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](this, Q5C0))
+
   <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](this, Q5C0))
 
   {
 
   {
 
     <span style="color:#0000FF">return</span> (0x00);
 
     <span style="color:#0000FF">return</span> (0x00);

Latest revision as of 07:21, 19 October 2018

trigger creation
{
  setType(this, 0x11B6);
  return (0x00);
}
trigger speech("*")
{
  int Q4FS = getX(getLocation(this));
  int Q4FT = getY(getLocation(this));
  int Q4FU = getZ(getLocation(this));
  loc Q5C0;
  if (arg == "w" || (arg == "west"))
  {
    Q5C0 = (Q4FS - 0x01), Q4FT, Q4FU;
  }
  if (arg == "e" || (arg == "east"))
  {
    Q5C0 = (Q4FS + 0x01), Q4FT, Q4FU;
  }
  if (arg == "n" || (arg == "north"))
  {
    Q5C0 = Q4FS, (Q4FT - 0x01), Q4FU;
  }
  if (arg == "s" || (arg == "south"))
  {
    Q5C0 = Q4FS, (Q4FT + 0x01), Q4FU;
  }
  if (arg == "implode" || (arg == "Andrew"))
  {
    setType(this, 0x11A6);
    return (0x00);
  }
  if (arg == "boulder")
  {
    setType(this, 0x11B6);
    return (0x00);
  }
  if (!teleport(this, Q5C0))
  {
    return (0x00);
  }
  return (0x01);
}