Difference between revisions of "Script: Seance"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"canUseSkill"</span>) { <span styl...")
 
 
Line 25: Line 25:
 
   Q5QK = (0x03 * Q5QK) + [[Engine Function:_getIntelligence|<span style="color:#FF0000;font-weight:bold">getIntelligence</span>]](this);
 
   Q5QK = (0x03 * Q5QK) + [[Engine Function:_getIntelligence|<span style="color:#FF0000;font-weight:bold">getIntelligence</span>]](this);
 
   [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>, 0x01);
 
   [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>, 0x01);
   [[seance|<span style="color:#FF0000;font-weight:bold">seance</span>]](this, 0x01);
+
   [[Engine Function:_seance|<span style="color:#FF0000;font-weight:bold">seance</span>]](this, 0x01);
 
   [[Engine Function:_attachScript|<span style="color:#FF0000;font-weight:bold">attachScript</span>]](this, <span style="color:#800000">"seance_user"</span>);
 
   [[Engine Function:_attachScript|<span style="color:#FF0000;font-weight:bold">attachScript</span>]](this, <span style="color:#800000">"seance_user"</span>);
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, Q5QK, 0x47);
 
   [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, Q5QK, 0x47);
 
   <span style="color:#0000FF">return</span> (0x00);
 
   <span style="color:#0000FF">return</span> (0x00);
 
  }
 
  }

Latest revision as of 06:17, 24 October 2018

inherits sndfx;
trigger message("canUseSkill")
{
  return (0x00);
}
trigger callback(0x4D)
{
  detachScript(this, "seance");
  return (0x00);
}
trigger message("useSkill")
{
  callback(this, 0x0A, 0x4D);
  if (!skillTest(this, 0x20))
  {
    systemMessage(this, "You fail your attempt at contacting the netherworld.");
    return (0x00);
  }
  systemMessage(this, "You establish contact with the netherworld.");
  sfx(getLocation(this), 0x024A, 0x00);
  int Q5QK = getSkillLevel(this, 0x20);
  Q5QK = (0x03 * Q5QK) + getIntelligence(this);
  setObjVar(this, "seance_setting", 0x01);
  seance(this, 0x01);
  attachScript(this, "seance_user");
  callback(this, Q5QK, 0x47);
  return (0x00);
}