Difference between revisions of "Script: Seance user"

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> callback(0x47) { seance|<span style="color:#FF0000;font-weight:bol...")
 
 
Line 3: Line 3:
 
  <span style="color:#0000FF">trigger</span> callback(0x47)
 
  <span style="color:#0000FF">trigger</span> callback(0x47)
 
  {
 
  {
   [[seance|<span style="color:#FF0000;font-weight:bold">seance</span>]](this, 0x00);
+
   [[Engine Function:_seance|<span style="color:#FF0000;font-weight:bold">seance</span>]](this, 0x00);
 
   [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>);
 
   [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>);
 
   [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](this, <span style="color:#800000">"seance_user"</span>);
 
   [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](this, <span style="color:#800000">"seance_user"</span>);
Line 14: Line 14:
 
   <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>))
 
   <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"seance_setting"</span>))
 
   {
 
   {
     [[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);
 
   }
 
   }
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 06:16, 24 October 2018

inherits globals;
trigger callback(0x47)
{
  seance(this, 0x00);
  removeObjVar(this, "seance_setting");
  detachScript(this, "seance_user");
  systemMessage(this, "You feel your contacts with the netherworld fade.");
  return (0x00);
}
trigger serverswitch
{
  if (hasObjVar(this, "seance_setting"))
  {
    seance(this, 0x01);
  }
  return (0x01);
}