Difference between revisions of "Script Function: Q4IY"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4IY(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span>...") |
(No difference)
|
Latest revision as of 18:44, 12 October 2018
function void Q4IY(obj user, obj usedon) { int Q4NC; loc Q4VS = getLocation(user); loc there = getLocation(usedon); faceHere(user, getDirectionInternal(Q4VS, there)); if (hasObjVar(this, "magicItemModifier")) { int Q52W = getObjVar(this, "magicItemModifier"); Q4NC = 0x06 * Q52W; } else { Q4NC = 0x01 + (0x05 * (getSkillLevel(user, 0x19))); } sfx(there, 0x01E9, 0x00); openGump(usedon, 0x1392); attachScript(usedon, "rembirdi"); callback(usedon, Q4NC, 0x2B); int Q47S = getObjType(this); callback(this, 0x00, 0x48); return (); }