Difference between revisions of "Script: Sha rune daemon"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> speech(<span style="color:#800000">"godStart"</span>) { callback|<...")
 
 
Line 17: Line 17:
 
  {
 
  {
 
   <span style="color:#0000FF">list</span> Q5DQ;
 
   <span style="color:#0000FF">list</span> Q5DQ;
   [[[[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]]ToRange|<span style="color:#FF0000;font-weight:bold">[[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]]ToRange</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x03, <span style="color:#800000">"switchType"</span>, Q5DQ);
+
   [[Engine Function:_messageToRange|<span style="color:#FF0000;font-weight:bold">messageToRange</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x03, <span style="color:#800000">"switchType"</span>, Q5DQ);
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x02, 0x24);
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x02, 0x24);
 
   <span style="color:#0000FF">return</span> (0x00);
 
   <span style="color:#0000FF">return</span> (0x00);
 
  }
 
  }

Latest revision as of 18:19, 5 October 2018

inherits globals;
trigger speech("godStart")
{
  callback(this, 0x02, 0x24);
  return (0x00);
}
trigger creation
{
  callback(this, 0x02, 0x24);
  setType(this, 0x01);
  return (0x00);
}
trigger callback(0x24)
{
  list Q5DQ;
  messageToRange(getLocation(this), 0x03, "switchType", Q5DQ);
  callback(this, 0x02, 0x24);
  return (0x00);
}