Difference between revisions of "Script Function: Q425"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q425(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span>...")
 
 
Line 2: Line 2:
 
   {
 
   {
 
     [[Engine Function:_barkTo|<span style="color:#FF0000;font-weight:bold">barkTo</span>]](Q4XN, user, <span style="color:#800000">"What ship do you want to dock?"</span>);
 
     [[Engine Function:_barkTo|<span style="color:#FF0000;font-weight:bold">barkTo</span>]](Q4XN, user, <span style="color:#800000">"What ship do you want to dock?"</span>);
 +
    [[Engine Function:_targetObj|<span style="color:#FF0000;font-weight:bold">targetObj</span>]](user, Q4XN);
 +
    <span style="color:#0000FF">return</span> ();
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q425(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> Q4XN)
 +
  {
 +
    <span style="color:#0000FF">if</span> ([[Engine Function:_amtGoldInBank|<span style="color:#FF0000;font-weight:bold">amtGoldInBank</span>]](user) < 0x19)
 +
    {
 +
      [[Engine Function:_barkTo|<span style="color:#FF0000;font-weight:bold">barkTo</span>]](this, user, <span style="color:#800000">"Thou dost not have 25 gold in thy bank account."</span>);
 +
      <span style="color:#0000FF">return</span> ();
 +
    }
 +
    [[Engine Function:_barkTo|<span style="color:#FF0000;font-weight:bold">barkTo</span>]](Q4XN, user, <span style="color:#800000">"I charge 25 gold for docking thy ship.  What ship do you want to dock?"</span>);
 
     [[Engine Function:_targetObj|<span style="color:#FF0000;font-weight:bold">targetObj</span>]](user, Q4XN);
 
     [[Engine Function:_targetObj|<span style="color:#FF0000;font-weight:bold">targetObj</span>]](user, Q4XN);
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 15:05, 12 October 2018

 function void Q425(obj user, obj Q4XN)
 {
   barkTo(Q4XN, user, "What ship do you want to dock?");
   targetObj(user, Q4XN);
   return ();
 }
 function void Q425(obj user, obj Q4XN)
 {
   if (amtGoldInBank(user) < 0x19)
   {
     barkTo(this, user, "Thou dost not have 25 gold in thy bank account.");
     return ();
   }
   barkTo(Q4XN, user, "I charge 25 gold for docking thy ship.  What ship do you want to dock?");
   targetObj(user, Q4XN);
   return ();
 }