Script Function: Q4MM

From Ultima Online: The Second Age
Revision as of 04:14, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4MM(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">loc</span> t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4MM(obj user, loc there)
 {
   int Q5NC = 0x00;
   there = Q4TC(user, there);
   if (getZ(there) != (0x00 - 0x80))
   {
     int Q4NA;
     loc Q4VS = getLocation(user);
     int Q5ZL = teleport(user, there);
     if (Q5ZL)
     {
       doLocAnimation(Q4VS, 0x3728, 0x0A, 0x0A, 0x00, 0x00);
       doLocAnimation(there, 0x3728, 0x0A, 0x0A, 0x00, 0x00);
       sfx(there, 0x01FE, 0x00);
       Q5NC = 0x01;
     }
     else
     {
       bark(user, "I can't teleport there!");
     }
   }
   Q5UQ(this);
   return (Q5NC);
 }