Difference between revisions of "Script Function: Q4DB"

From Ultima Online: The Second Age
Jump to: navigation, search
 
Line 14: Line 14:
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"trapLevel"</span>);
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"trapLevel"</span>);
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"trapType"</span>);
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"trapType"</span>);
 +
    <span style="color:#0000FF">return</span> ();
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DB()
 +
  {
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q5V0);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q4PF);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q5QM);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q61M);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q4QW);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q4P4);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q5T7);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q5RM);
 +
    [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q4NI);
 +
    <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q56M, <span style="color:#800000">"inUse"</span>))
 +
    {
 +
      [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](Q56M, <span style="color:#800000">"inUse"</span>);
 +
    }
 +
    <span style="color:#0000FF">if</span> ([[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](Q56M, <span style="color:#800000">"removeinuse"</span>))
 +
    {
 +
      [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](Q56M, <span style="color:#800000">"removeinuse"</span>);
 +
    }
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 06:57, 12 October 2018

 function void Q4DB()
 {
   bark(this, "I regret nothing!");
   list args;
   message(getBackpack(this), "cleanup", args);
   makeVulnerable(this);
   setCurHP(this, 0x00);
   loseHP(this, 0x2710);
   return ();
 }
 function void Q4DB()
 {
   removeObjVar(this, "trapLevel");
   removeObjVar(this, "trapType");
   return ();
 }
 function void Q4DB()
 {
   clearList(Q5V0);
   clearList(Q4PF);
   clearList(Q5QM);
   clearList(Q61M);
   clearList(Q4QW);
   clearList(Q4P4);
   clearList(Q5T7);
   clearList(Q5RM);
   clearList(Q4NI);
   if (hasObjVar(Q56M, "inUse"))
   {
     removeObjVar(Q56M, "inUse");
   }
   if (hasScript(Q56M, "removeinuse"))
   {
     removeObjVar(Q56M, "removeinuse");
   }
   return ();
 }