TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

A replacement for #unalias {%%*}

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
F-3000



Joined: 06 Dec 2010
Posts: 66
Location: Next to polarbear

PostPosted: Sun Jul 24, 2011 4:23 pm    Post subject: A replacement for #unalias {%%*} Reply with quote

NOTE: This very same works with #unaction {%%*}.

Ever run into situation where you wipe out all of your #aliases due to #unalias {%%*}, when you actually haven't (yet) created #alias {%*} in the first place?

Solution is rather simple. Wrap the #alias {%*} inside #class commands. Then kill that #class, when you no longer need the #alias.

Here's an example:
Code:
#alias {.id}
{
   #if {"%0" == "on"}
   {
      #class temp_id_alias open;
      #alias {%*} {#line log ./fl/id_log %%0} {4};
      #class temp_id_alias close;
      #showme <faa>Further input is saved to id_log!;
   };
   #elseif {"%0" == "off"}
   {
      #class temp_id_alias kill;
      #showme <faa>id-log recording stopped.;
   };
   #else {#showme <faa>USAGE: .id on/off};
} {3}
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group