Difference between revisions of "Script Function: guildName"

From Ultima Online: The Second Age
Jump to: navigation, search
Line 15: Line 15:
 
     <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](me, <span style="color:#800000">"guildName"</span>))
 
     <span style="color:#0000FF">if</span> (![[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](me, <span style="color:#800000">"guildName"</span>))
 
     {
 
     {
       [[cleanup|<span style="color:#2B91AF">cleanup</span>]](me);
+
       [[Script_Function:_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">"guildName"</span>);
 
     <span style="color:#0000FF">string</span> x = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](me, <span style="color:#800000">"guildName"</span>);
 
     <span style="color:#0000FF">return</span> (x);
 
     <span style="color:#0000FF">return</span> (x);
 
   }
 
   }

Revision as of 08:39, 19 October 2018

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