Difference between revisions of "Script Function: Q4UL"

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> Q4UL() { <span style="color:#0000FF">if</span> (!hasObjVar|<span style="color:#...")
 
Line 8: Line 8:
 
     }
 
     }
 
     <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"guildAbbreviation"</span>);
 
     <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"guildAbbreviation"</span>);
 +
    <span style="color:#0000FF">return</span> (x);
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4UL()
 +
  {
 +
    <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](me, <span style="color:#800000">"guildAbbreviation"</span>))
 +
    {
 +
      [[cleanup|<span style="color:#2B91AF">cleanup</span>]](me);
 +
    }
 +
    <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](me, <span style="color:#800000">"guildAbbreviation"</span>);
 
     <span style="color:#0000FF">return</span> (x);
 
     <span style="color:#0000FF">return</span> (x);
 
   }
 
   }

Revision as of 16:10, 12 October 2018

 function string Q4UL()
 {
   if (!hasObjVar(this, "guildAbbreviation"))
   {
     list args;
     message(this, "removedFromGuild", args);
     return ("");
   }
   string x = getObjVar(this, "guildAbbreviation");
   return (x);
 }
 function string Q4UL()
 {
   if (!hasObjVar(me, "guildAbbreviation"))
   {
     cleanup(me);
   }
   string x = getObjVar(me, "guildAbbreviation");
   return (x);
 }