Difference between revisions of "Script Function: Q4MM"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
 
 
Line 7: Line 7:
 
       <span style="color:#0000FF">int</span> Q4NA;
 
       <span style="color:#0000FF">int</span> Q4NA;
 
       <span style="color:#0000FF">loc</span> Q4VS = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](user);
 
       <span style="color:#0000FF">loc</span> Q4VS = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](user);
       <span style="color:#0000FF">int</span> Q5ZL = [[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](user, there);
+
       <span style="color:#0000FF">int</span> Q5ZL = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](user, there);
 
       <span style="color:#0000FF">if</span> (Q5ZL)
 
       <span style="color:#0000FF">if</span> (Q5ZL)
 
       {
 
       {

Latest revision as of 08:44, 19 October 2018

 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);
 }