Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Yahoo!

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » NoDelete
Forum Rules | Mark all | Recent Posts

NoDelete
< Newer Topic :: Older Topic > NoDelete for AREAS

Pages:<< prev 1 next >>
Post is unread #1 Jun 19, 2004, 3:51 am   Last edited Nov 18, 2007, 4:52 pm by Samson
Go to the top of the page
Go to the bottom of the page

RapidRunner

GroupMembers
Posts72
JoinedDec 4, 2003

Command: Nodelete for Area flags.
Simple enough, but kinda helpful somewhat..

in mud.h:

Under

 #define AFLAG_NOQUIT  BV10


add:
#define AFLAG_NODELETE          BV11


in build.c

Find:

char *const	area_flags[] =


Add nodelete next to noquit

Then in Aset in filename add:

    if( IS_AREA_FLAG( tarea, AFLAG_NODELETE ) )
    {
         ch_printf( ch, "&RYou cannot change %s.\n\r", tarea->filename );
         return;
    }


Then in Adelete
under
 No such area as %s 

Add:

     if( IS_AREA_FLAG( area, AFLAG_NODELETE ) )
     {
          ch_printf( ch, "&RYou cannot DELETE %s&d.\n\r", area->filename );
          return;
     }


Thats all, have fun... Even though this probably isn't even needed, but what the heck...
       
Pages:<< prev 1 next >>