Difference between revisions of "Script Function: fixStats"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> fixStats(<span style="color:#0000FF">obj</span> Q68S) { <span style="color:#0000FF">lis...") |
|||
Line 13: | Line 13: | ||
<span style="color:#0000FF">if</span> (item != [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]()) | <span style="color:#0000FF">if</span> (item != [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]()) | ||
{ | { | ||
− | Q5NC = [[ | + | Q5NC = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](item, Q5AH); |
} | } | ||
} | } |
Latest revision as of 07:00, 19 October 2018
function int fixStats(obj Q68S) { list Q4O3; loc Q5AH = getLocation(Q68S); int Q5TS; obj item; int Q5NC; int Q5NG; for(Q5TS = 0x01; Q5TS < 0x1A; Q5TS++) { item = getItemAtSlot(Q68S, Q5TS); append(Q4O3, item); if (item != NULL()) { Q5NC = teleport(item, Q5AH); } } Q5NG = Q5ML(Q68S); int Q52R = numInList(Q4O3) + 0x01; for(Q5TS = 0x01; Q5TS < Q52R; Q5TS++) { item = Q4O3[Q5TS - 0x01]; if (item != NULL()) { Q5NC = equipObj(item, Q68S, Q5TS); } } setNaturalAC(Q68S, 0x00); return (Q5NG); }