Difference between revisions of "Script Function: Q5K6"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q5K6(<span style="color:#0000FF">obj</span> Q47Z, <span style="color:#0000FF">obj</span> Q...") |
|||
Line 1: | Line 1: | ||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q5K6(<span style="color:#0000FF">obj</span> Q47Z, <span style="color:#0000FF">obj</span> Q521) | ||
+ | { | ||
+ | <span style="color:#0000FF">obj</span> Q58D; | ||
+ | <span style="color:#0000FF">obj</span> killer; | ||
+ | <span style="color:#0000FF">obj</span> Q4QI; | ||
+ | <span style="color:#0000FF">list</span> Q4E4; | ||
+ | [[Engine Function:_getContents|<span style="color:#FF0000;font-weight:bold">getContents</span>]](Q4E4, Q47Z); | ||
+ | <span style="color:#0000FF">int</span> Q55T = [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4E4); | ||
+ | for(<span style="color:#0000FF">int</span> i = 0x00; i < Q55T; i++) | ||
+ | { | ||
+ | Q58D = Q4E4[i]; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q58D) == 0x0EB0) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q58D, <span style="color:#800000">"killer"</span>)) | ||
+ | { | ||
+ | killer = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](Q58D, <span style="color:#800000">"killer"</span>); | ||
+ | <span style="color:#0000FF">if</span> (killer == Q521) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (Q58D); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> ([[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]()); | ||
+ | } | ||
+ | |||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q5K6(<span style="color:#0000FF">obj</span> Q47Z, <span style="color:#0000FF">obj</span> Q521) | <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q5K6(<span style="color:#0000FF">obj</span> Q47Z, <span style="color:#0000FF">obj</span> Q521) | ||
{ | { |
Latest revision as of 17:34, 12 October 2018
function obj Q5K6(obj Q47Z, obj Q521) { obj Q58D; obj killer; obj Q4QI; list Q4E4; getContents(Q4E4, Q47Z); int Q55T = numInList(Q4E4); for(int i = 0x00; i < Q55T; i++) { Q58D = Q4E4[i]; if (getObjType(Q58D) == 0x0EB0) { if (hasObjVar(Q58D, "killer")) { killer = getObjVar(Q58D, "killer"); if (killer == Q521) { return (Q58D); } } } } return (NULL()); }
function obj Q5K6(obj Q47Z, obj Q521) { obj Q58D; obj killer; obj Q4QI; list Q4E4; getContents(Q4E4, Q47Z); int Q55T = numInList(Q4E4); for(int i = 0x00; i < Q55T; i++) { Q58D = Q4E4[i]; if (getObjType(Q58D) == 0x0EB0) { if (hasObjVar(Q58D, "killer")) { killer = getObjVar(Q58D, "killer"); if (killer == Q521) { return (Q58D); } } } } return (NULL()); }