Difference between revisions of "Script Function: Q4BU"

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> Q4BU(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">string</span...")
 
 
Line 10: Line 10:
 
     }
 
     }
 
     [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petFriend"</span>, 0x01);
 
     [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petFriend"</span>, 0x01);
     <span style="color:#0000FF">if</span> (![[isPet|<span style="color:#2B91AF">isPet</span>]](this))
+
     <span style="color:#0000FF">if</span> (![[Script_Function:_isPet|<span style="color:#2B91AF">isPet</span>]](this))
 
     {
 
     {
 
       [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"I shall obey this person's orders as if they were your own."</span>);
 
       [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"I shall obey this person's orders as if they were your own."</span>);

Latest revision as of 01:51, 21 October 2018

 function int Q4BU(obj this, string Q698, obj speaker)
 {
   if (Q698 != "friend")
   {
     return (0x00);
   }
   if (0x00)
   {
     bark(this, "Got order to befriend.");
   }
   setObjVar(this, "petFriend", 0x01);
   if (!isPet(this))
   {
     bark(this, "I shall obey this person's orders as if they were your own.");
   }
   else
   {
     systemMessage(speaker, "Click on the player whom you wish to make a co-owner.");
   }
   targetObj(speaker, this);
   return (0x01);
 }