Script Function: Q4JR

From Ultima Online: The Second Age
Revision as of 16:52, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4JR(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4JR(obj user, obj usedon, int Q5NM)
 {
   int Q5NC = 0x00;
   if (Q50G(usedon))
   {
     Q5NC = 0x01;
     int damage;
     loc Q4VS = getLocation(user);
     loc there = getLocation(usedon);
     faceHere(user, getDirectionInternal(Q4VS, there));
     doMobAnimation(usedon, 0x36BD, 0x14, 0x0A, 0x00, 0x00);
     sfx(there, 0x0207, 0x00);
     Q57M = usedon;
     Q57L = user;
     callback(this, 0x03, 0x19);
     Q5NQ = Q5NM;
     Q5UK(user, usedon, 0x02, Q5NM);
   }
   Q5UR(this, Q5NC);
   return (Q5NC);
 }