Script Function: Q4IY

From Ultima Online: The Second Age
Revision as of 17:44, 12 October 2018 by Grimoric (talk | contribs) (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>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 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 ();
 }