Difference between revisions of "Script Function: Q43R"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q43R(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">int</span> n...") |
|||
Line 21: | Line 21: | ||
[[Engine Function:_setHue|<span style="color:#FF0000;font-weight:bold">setHue</span>]](user, 0x00); | [[Engine Function:_setHue|<span style="color:#FF0000;font-weight:bold">setHue</span>]](user, 0x00); | ||
<span style="color:#0000FF">int</span> Q4NC = ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](user, 0x19) / 0x05) * 0x05; | <span style="color:#0000FF">int</span> Q4NC = ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](user, 0x19) / 0x05) * 0x05; | ||
− | <span style="color:#0000FF">if</span> ([[ | + | <span style="color:#0000FF">if</span> ([[Script_Function:_isScroll|<span style="color:#2B91AF">isScroll</span>]]()) |
{ | { | ||
Q4NC = 0x3C; | Q4NC = 0x3C; |
Latest revision as of 14:16, 18 October 2018
function int Q43R(obj user, int newType) { int Q5NC = 0x00; if (Q50G(user)) { if (newType >= 0x00) { if (isRiding(user)) { int Q52Q = unRide(user); } if (!(hasObjVar(Q62D, "oldBodyType"))) { setObjVar(Q62D, "oldBodyType", getObjType(Q62D)); } if (!(hasObjVar(Q62D, "oldHue"))) { setObjVar(Q62D, "oldHue", getHue(Q62D)); } setType(user, newType); setHue(user, 0x00); int Q4NC = (getSkillLevel(user, 0x19) / 0x05) * 0x05; if (isScroll()) { Q4NC = 0x3C; } Q4MU(user, Q4NC); Q5NC = 0x01; } } Q5UQ(this); return (Q5NC); }