Script Function: Q4MH

From Ultima Online: The Second Age
Revision as of 04:20, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4MH(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4MH(obj user, obj corpse)
 {
   loc Q4VS = getLocation(user);
   loc there = Q4VS;
   list Q5DR;
   there = getLocation(corpse);
   faceHere(user, getDirectionInternal(Q4VS, there));
   int Q5UZ = 0x00;
   int Q4NC = Q4SB(this, user, Q5UZ, corpse);
   int Q68G = 0x021D;
   obj daemon = createGlobalNPCAt(Q68G, there, 0x00);
   if (daemon == NULL())
   {
     barkTo(user, user, "Something is in the way.");
     return (0x00);
   }
   doLocAnimation(there, 0x3728, 0x0A, 0x0A, 0x00, 0x00);
   doLocAnimation(there, 0x3728, 0x08, 0x14, 0x00, 0x00);
   attachScript(daemon, "destcrea");
   int Q5NC = Q558(daemon, user, 0x64, 0x01);
   Q5AA(corpse);
   faceHere(daemon, getDirectionInternal(there, Q4VS));
   callback(daemon, Q4NC, 0x08);
   return (0x01);
 }