Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, Yandex, DotBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » [Snippet] Allow flag changes ...
Forum Rules | Mark all | Recent Posts

[Snippet] Allow flag changes in do_cedit by name
< Newer Topic :: Older Topic > Changes to do_cedit

Pages:<< prev 1 next >>
Post is unread #1 Aug 21, 2003, 5:37 pm   Last edited Nov 24, 2007, 12:37 am by Samson
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

This is a change that is also in my Colored wizhelp snippet, if you have an older version of AFKMud you may not have this fix.
//Updated to show the invalid flag rather than just a number - Zarius 8/21/03
   if ( !str_cmp( arg2, "flags" ) )
   {
       int flag;
       if ( !argument || argument[0] == '\0' )
       {
           send_to_char( "Usage: cedit  flag  [flag]...\r\n", ch );
           for ( flag = 0; flag < 32; flag++ )
               ch_printf(ch, "%s ", cmd_flags[flag]);
           send_to_char("\r\n", ch);
           return;
       }
       while ( argument[0] != '\0' )
       {
           argument = one_argument( argument, arg1 );
           flag = get_cmdflag( arg1 );
           if ( flag  31 )
               ch_printf( ch, "Unknown flag: %s\r\n", arg1 );
           else
               TOGGLE_BIT(command->flags, 1 << flag);
               send_to_char( "Command flags updated.\r\n", ch );
       }
       return;
   }
       
Pages:<< prev 1 next >>