Difference between revisions of "Script Function: Q4WV"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4WV(<span style="color:#0000FF">obj</span> Q5AO, <span style="color:#0000FF">loc</span>...") |
|||
Line 14: | Line 14: | ||
[[Engine Function:_setX|<span style="color:#FF0000;font-weight:bold">setX</span>]](Q5CV, [[Engine Function:_getX|<span style="color:#FF0000;font-weight:bold">getX</span>]](Q5CV) + 0x01); | [[Engine Function:_setX|<span style="color:#FF0000;font-weight:bold">setX</span>]](Q5CV, [[Engine Function:_getX|<span style="color:#FF0000;font-weight:bold">getX</span>]](Q5CV) + 0x01); | ||
Q63A = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x1062, Q5CV); | Q63A = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x1062, Q5CV); | ||
+ | [[Script_Function:_Q4X0|<span style="color:#2B91AF">Q4X0</span>]](Q63A); | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4WV(<span style="color:#0000FF">obj</span> Q5AO, <span style="color:#0000FF">loc</span> Q5CV) | ||
+ | { | ||
+ | <span style="color:#0000FF">obj</span> Q63A; | ||
+ | <span style="color:#0000FF">if</span> (Q5AO != [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]()) | ||
+ | { | ||
+ | [[Engine Function:_setZ|<span style="color:#FF0000;font-weight:bold">setZ</span>]](Q5CV, [[Engine Function:_getZ|<span style="color:#FF0000;font-weight:bold">getZ</span>]](Q5CV) + 0x07); | ||
+ | [[Engine Function:_setX|<span style="color:#FF0000;font-weight:bold">setX</span>]](Q5CV, [[Engine Function:_getX|<span style="color:#FF0000;font-weight:bold">getX</span>]](Q5CV) - 0x02); | ||
+ | [[Engine Function:_setY|<span style="color:#FF0000;font-weight:bold">setY</span>]](Q5CV, [[Engine Function:_getY|<span style="color:#FF0000;font-weight:bold">getY</span>]](Q5CV) + 0x01); | ||
+ | Q63A = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x1074, Q5CV); | ||
+ | [[Script_Function:_Q4X0|<span style="color:#2B91AF">Q4X0</span>]](Q63A); | ||
+ | [[Engine Function:_setY|<span style="color:#FF0000;font-weight:bold">setY</span>]](Q5CV, [[Engine Function:_getY|<span style="color:#FF0000;font-weight:bold">getY</span>]](Q5CV) - 0x03); | ||
+ | [[Engine Function:_setX|<span style="color:#FF0000;font-weight:bold">setX</span>]](Q5CV, [[Engine Function:_getX|<span style="color:#FF0000;font-weight:bold">getX</span>]](Q5CV) + 0x03); | ||
+ | Q63A = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x1070, Q5CV); | ||
[[Script_Function:_Q4X0|<span style="color:#2B91AF">Q4X0</span>]](Q63A); | [[Script_Function:_Q4X0|<span style="color:#2B91AF">Q4X0</span>]](Q63A); | ||
} | } | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Revision as of 14:53, 12 October 2018
function void Q4WV(obj Q5AO, loc Q5CV) { obj Q63A; if (Q5AO != NULL()) { setZ(Q5CV, getZ(Q5CV) + 0x07); setX(Q5CV, getX(Q5CV) - 0x01); setY(Q5CV, getY(Q5CV) - 0x02); Q63A = createGlobalObjectAt(0x1019, Q5CV); Q4X0(Q63A); setX(Q5CV, getX(Q5CV) + 0x02); Q63A = createGlobalObjectAt(0x1061, Q5CV); Q4X0(Q63A); setX(Q5CV, getX(Q5CV) + 0x01); Q63A = createGlobalObjectAt(0x1062, Q5CV); Q4X0(Q63A); } return (); }
function void Q4WV(obj Q5AO, loc Q5CV) { obj Q63A; if (Q5AO != NULL()) { setZ(Q5CV, getZ(Q5CV) + 0x07); setX(Q5CV, getX(Q5CV) - 0x02); setY(Q5CV, getY(Q5CV) + 0x01); Q63A = createGlobalObjectAt(0x1074, Q5CV); Q4X0(Q63A); setY(Q5CV, getY(Q5CV) - 0x03); setX(Q5CV, getX(Q5CV) + 0x03); Q63A = createGlobalObjectAt(0x1070, Q5CV); Q4X0(Q63A); } return (); }