Difference between revisions of "Script Function: Q4DH"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DH(<span style="color:#0000FF">int</span> Q68Q) { <span style="color:#0000FF">if<...") |
|||
Line 27: | Line 27: | ||
[[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CD, Q629); | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CD, Q629); | ||
[[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CC, Q629); | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CC, Q629); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4DH(<span style="color:#0000FF">int</span> Q68Q) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (Q68Q == 0x00) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (0x00 < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q67L)) | ||
+ | { | ||
+ | for(<span style="color:#0000FF">int</span> Q629 = 0x00; Q629 < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q67L); Q629++) | ||
+ | { | ||
+ | <span style="color:#0000FF">int</span> Q61S = [[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q67L[Q629]); | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](Q67L[Q629])) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (Q61S == 0x0336) | ||
+ | { | ||
+ | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q67L, Q629); | ||
+ | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q67K, Q629); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">else</span> | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (0x00 < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5CD)) | ||
+ | { | ||
+ | for(Q629 = 0x00; Q629 < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5CD); Q629++) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (![[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](Q67L[Q629])) | ||
+ | { | ||
+ | Q61S = [[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q5CD[Q629]); | ||
+ | <span style="color:#0000FF">if</span> (Q61S == 0x0336) | ||
+ | { | ||
+ | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CD, Q629); | ||
+ | [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q5CC, Q629); | ||
+ | } | ||
} | } | ||
} | } |
Latest revision as of 17:26, 12 October 2018
function void Q4DH(int Q68Q) { if (Q68Q == 0x00) { if (0x00 < numInList(Q67L)) { for(int Q629 = 0x00; Q629 < numInList(Q67L); Q629++) { int Q61S = getObjType(Q67L[Q629]); if (Q61S == 0x0335) { removeItem(Q67L, Q629); removeItem(Q67K, Q629); } } } } else { if (0x00 < numInList(Q5CD)) { for(Q629 = 0x00; Q629 < numInList(Q5CD); Q629++) { Q61S = getObjType(Q5CD[Q629]); if (Q61S == 0x0335) { removeItem(Q5CD, Q629); removeItem(Q5CC, Q629); } } } } return (); }
function void Q4DH(int Q68Q) { if (Q68Q == 0x00) { if (0x00 < numInList(Q67L)) { for(int Q629 = 0x00; Q629 < numInList(Q67L); Q629++) { int Q61S = getObjType(Q67L[Q629]); if (isValid(Q67L[Q629])) { if (Q61S == 0x0336) { removeItem(Q67L, Q629); removeItem(Q67K, Q629); } } } } } else { if (0x00 < numInList(Q5CD)) { for(Q629 = 0x00; Q629 < numInList(Q5CD); Q629++) { if (!isValid(Q67L[Q629])) { Q61S = getObjType(Q5CD[Q629]); if (Q61S == 0x0336) { removeItem(Q5CD, Q629); removeItem(Q5CC, Q629); } } } } } return (); }