Difference between revisions of "Script: 4506"

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> activate(<span style="color:#0000FF">obj</span> victim) { <span style="color:#0000FF">...")
 
 
Line 19: Line 19:
 
  <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"activate"</span>)
 
  <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"activate"</span>)
 
  {
 
  {
   [[activate|<span style="color:#2B91AF">activate</span>]](this);
+
   [[Script_Function:_activate|<span style="color:#2B91AF">activate</span>]](this);
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }
Line 25: Line 25:
 
  <span style="color:#0000FF">trigger</span> enterrange(0x00)
 
  <span style="color:#0000FF">trigger</span> enterrange(0x00)
 
  {
 
  {
   [[activate|<span style="color:#2B91AF">activate</span>]](target);
+
   [[Script_Function:_activate|<span style="color:#2B91AF">activate</span>]](target);
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 01:17, 21 October 2018

function void activate(obj victim)
{
  loc Q61V = getLocation(this);
  doLocAnimation(Q61V, 0x119B, 0x0A, 0x05, 0x00, 0x00);
  list Q67L;
  getObjectsAt(Q67L, Q61V);
  appendToList(Q67L, victim);
  int Q53A = numInList(Q67L);
  for(int i = 0x00; i < Q53A; i++)
  {
    if (isMobile(Q67L[i]))
    {
      loseHP(Q67L[i], 0x0A);
    }
  }
  return ();
}
trigger message("activate")
{
  activate(this);
  return (0x01);
}
trigger enterrange(0x00)
{
  activate(target);
  return (0x01);
}