Difference between revisions of "Script: Sha wall face"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"fireInTheHole"</span>) { <span style="color:#0000FF">int</span> Q62A = getObjType|<span...")
 
 
Line 22: Line 22:
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     }
 
     }
     <span style="color:#0000FF">int</span> Q4GH = [[dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x03, 0x0F);
+
     <span style="color:#0000FF">int</span> Q4GH = [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x03, 0x0F);
 
     [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, Q4GH);
 
     [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, Q4GH);
 
   }
 
   }
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 20:54, 18 October 2018

trigger message("fireInTheHole")
{
  int Q62A = getObjType(this);
  loc Q61U = getLocation(this);
  list Q67G;
  getMobsInRange(Q67G, Q61U, 0x01);
  if (numInList(Q67G) != 0x00)
  {
    obj target = Q67G[0x00];
  }
  if (!hasObjVar(this, "disarmed"))
  {
    switch (Q62A)
    {
    case 0x10FC
      doLocAnimation(Q61U, 0x10FE, 0x02, 0x10, 0x00, 0x00);
      break;
    case 0x1110
      doLocAnimation(Q61U, 0x1111, 0x02, 0x10, 0x00, 0x00);
      break;
    default
      break;
    }
    int Q4GH = dice(0x03, 0x0F);
    loseHP(target, Q4GH);
  }
  return (0x01);
}