Difference between revisions of "Script Function: Q4S2"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4S2(<span style="color:#0000FF">obj</span> killer) { <span style="color:#0000FF">if...") |
|||
Line 1: | Line 1: | ||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4S2(<span style="color:#0000FF">obj</span> killer) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjListVar|<span style="color:#FF0000;font-weight:bold">hasObjListVar</span>]](killer, <span style="color:#800000">"killcount"</span>)) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | <span style="color:#0000FF">list</span> Q51M; | ||
+ | [[Engine Function:_getObjListVar|<span style="color:#FF0000;font-weight:bold">getObjListVar</span>]](Q51M, killer, <span style="color:#800000">"killcount"</span>); | ||
+ | <span style="color:#0000FF">return</span> ([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q51M)); | ||
+ | } | ||
+ | |||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4S2(<span style="color:#0000FF">obj</span> killer) | <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4S2(<span style="color:#0000FF">obj</span> killer) | ||
{ | { |
Latest revision as of 17:38, 12 October 2018
function int Q4S2(obj killer) { if (!hasObjListVar(killer, "killcount")) { return (0x00); } list Q51M; getObjListVar(Q51M, killer, "killcount"); return (numInList(Q51M)); }
function int Q4S2(obj killer) { if (!hasObjListVar(killer, "killcount")) { return (0x00); } list Q51M; getObjListVar(Q51M, killer, "killcount"); return (numInList(Q51M)); }