Difference between revisions of "Script Function: Q4DB"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DB() { <span style="color:#FF0000;font-weight:bold">bark</span>(this, <s...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DB() | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DB() | ||
{ | { | ||
− | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, | + | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"I regret nothing!"</span>); |
<span style="color:#0000FF">list</span> args; | <span style="color:#0000FF">list</span> args; | ||
− | [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]]([[Engine Function:_getBackpack|<span style="color:#FF0000;font-weight:bold">getBackpack</span>]](this), | + | [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]]([[Engine Function:_getBackpack|<span style="color:#FF0000;font-weight:bold">getBackpack</span>]](this), <span style="color:#800000">"cleanup"</span>, args); |
[[Engine Function:_makeVulnerable|<span style="color:#FF0000;font-weight:bold">makeVulnerable</span>]](this); | [[Engine Function:_makeVulnerable|<span style="color:#FF0000;font-weight:bold">makeVulnerable</span>]](this); | ||
[[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](this, 0x00); | [[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](this, 0x00); | ||
[[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](this, 0x2710); | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](this, 0x2710); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DB() | ||
+ | { | ||
+ | [[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>); | ||
+ | <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 05: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 (); }