Difference between revisions of "Script Function: Q4J2"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4J2(<span style="color:#0000FF">int</span> bounty) { <span style="color:#0000FF"...")
 
 
Line 1: Line 1:
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4J2(<span style="color:#0000FF">int</span> bounty)
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4J2(<span style="color:#0000FF">int</span> bounty)
 +
  {
 +
    <span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"  A bounty is hereby offered"</span>, <span style="color:#800000">"  Lord British sets a price"</span>, <span style="color:#800000">"  Claim the reward! 'Tis"</span>, <span style="color:#800000">"  Lord Blackthorn set a price"</span>, <span style="color:#800000">"  The Paladins set a price"</span>, <span style="color:#800000">"  The Merchants set a price"</span>, <span style="color:#800000">"  Lord British's bounty "</span>;
 +
    <span style="color:#0000FF">string</span> Q5Y4 = Q5Y8<nowiki>[</nowiki>[[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00, [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5Y8) - 0x01)];
 +
    <span style="color:#0000FF">return</span> (Q5Y4);
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4J2(<span style="color:#0000FF">obj</span> killer)
 
   {
 
   {
 
     <span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"  A bounty is hereby offered"</span>, <span style="color:#800000">"  Lord British sets a price"</span>, <span style="color:#800000">"  Claim the reward! 'Tis"</span>, <span style="color:#800000">"  Lord Blackthorn set a price"</span>, <span style="color:#800000">"  The Paladins set a price"</span>, <span style="color:#800000">"  The Merchants set a price"</span>, <span style="color:#800000">"  Lord British's bounty "</span>;
 
     <span style="color:#0000FF">list</span> Q5Y8 = <span style="color:#800000">"  A bounty is hereby offered"</span>, <span style="color:#800000">"  Lord British sets a price"</span>, <span style="color:#800000">"  Claim the reward! 'Tis"</span>, <span style="color:#800000">"  Lord Blackthorn set a price"</span>, <span style="color:#800000">"  The Paladins set a price"</span>, <span style="color:#800000">"  The Merchants set a price"</span>, <span style="color:#800000">"  Lord British's bounty "</span>;

Latest revision as of 18:35, 12 October 2018

 function string Q4J2(int bounty)
 {
   list Q5Y8 = "  A bounty is hereby offered", "  Lord British sets a price", "  Claim the reward! 'Tis", "  Lord Blackthorn set a price", "  The Paladins set a price", "  The Merchants set a price", "  Lord British's bounty ";
   string Q5Y4 = Q5Y8[random(0x00, numInList(Q5Y8) - 0x01)];
   return (Q5Y4);
 }
 function string Q4J2(obj killer)
 {
   list Q5Y8 = "  A bounty is hereby offered", "  Lord British sets a price", "  Claim the reward! 'Tis", "  Lord Blackthorn set a price", "  The Paladins set a price", "  The Merchants set a price", "  Lord British's bounty ";
   string Q5Y4 = Q5Y8[random(0x00, numInList(Q5Y8) - 0x01)];
   return (Q5Y4);
 }