Difference between revisions of "Script Function: Q4GJ"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4GJ(<span style="color:#0000FF">obj</span> victim, <span style="color:#0000FF">int</span...") |
|||
Line 13: | Line 13: | ||
{ | { | ||
<span style="color:#0000FF">int</span> Q5NC = [[Script_Function:_Q41Q|<span style="color:#2B91AF">Q41Q</span>]](victim, s, Q5VZ, Q4NC); | <span style="color:#0000FF">int</span> Q5NC = [[Script_Function:_Q41Q|<span style="color:#2B91AF">Q41Q</span>]](victim, s, Q5VZ, Q4NC); | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4GJ(<span style="color:#0000FF">obj</span> victim, <span style="color:#0000FF">int</span> damage) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (![[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](victim)) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | [[Script_Function:_Q423|<span style="color:#2B91AF">Q423</span>]](this, victim, damage, 0x01, 0x00); | ||
+ | sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x023B, 0x00); | ||
+ | <span style="color:#0000FF">if</span> ([[Script_Function:_Q50G|<span style="color:#2B91AF">Q50G</span>]](victim)) | ||
+ | { | ||
+ | [[Engine Function:_attachScript|<span style="color:#FF0000;font-weight:bold">attachScript</span>]](victim, <span style="color:#800000">"poisoned"</span>); | ||
+ | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](victim, <span style="color:#800000">"poison_strength"</span>, 0x02); | ||
} | } | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 17:25, 12 October 2018
function void Q4GJ(obj victim, int damage) { loc Q4VS = getLocation(Q67S); sfx(Q4VS, 0x28, 0x00); if (!Q50G(victim)) { return (); } doDamageType(Q67S, victim, damage, 0x02); int Q5VZ = 0x00 - 0x0A; int Q4NC = 0xB4; for(int s = 0x00; s < 0x03; s++) { int Q5NC = Q41Q(victim, s, Q5VZ, Q4NC); } return (); }
function void Q4GJ(obj victim, int damage) { if (!isValid(victim)) { return (); } Q423(this, victim, damage, 0x01, 0x00); sfx(getLocation(this), 0x023B, 0x00); if (Q50G(victim)) { attachScript(victim, "poisoned"); setObjVar(victim, "poison_strength", 0x02); } return (); }