Difference between revisions of "Script Function: Q428"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q428(<span style="color:#0000FF">obj</span> Q5UY, <span style="color:#0000FF">int</span> Q...") |
(No difference)
|
Latest revision as of 10:53, 10 October 2018
function int Q428(obj Q5UY, int Q45Y, obj Q5U8, obj dest, int Q65M, int Q5NQ) { int damage = Q45Y; if (isNPC(dest)) { damage = Q45Y * 0x02; } obj caster = Q5U8; if (Q5NQ) { caster = dest; } damage = Q43G(Q5UY, caster, damage); if (isValid(dest)) { if (inJusticeRegion(getLocation(dest))) { damage = Q4BI(Q5U8, dest, damage); } else { damage = Q4BH(Q5U8, dest, damage); } } Q423(Q5U8, dest, damage, Q65M, Q5NQ); return (damage); }