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, Majestic-12, Yandex

Members: 0
Guests: 1
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » reset list
Forum Rules | Mark all | Recent Posts

reset list
< Newer Topic :: Older Topic > try this

Pages:<< prev 1 next >>
Post is unread #1 Aug 25, 2005, 10:12 am   Last edited Aug 25, 2005, 10:25 am by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

in reset.c
in do_reset function
find
   if( !argument || argument[0] == '\0' )
   {
      send_to_char( "Usage: reset area\n\r", ch );

change that to
   if( !argument || argument[0] == '\0' )
   {
      send_to_char( "Usage: reset area\n\r", ch );
      send_to_char( "Usage: reset list\n\r", ch );

find
   if( !str_cmp( arg, "area" ) )
   {
      reset_area( ch->in_room->area );
      send_to_char( "Area has been reset.\n\r", ch );
      return;
   }

after that add
   if( !str_cmp( arg, "list" ) )
   {
      RESET_DATA *pReset;
      char *rbuf;
      short num;
      ROOM_INDEX_DATA *room;
      bool found = FALSE;

      for( room = ch->in_room->area->first_room; room; room = room->next_aroom )
      {
         num = 0;
         if( !room->first_reset )
           continue;

         for( pReset = room->first_reset; pReset; pReset = pReset->next )
         {
            num++;
            found = TRUE;
            if( num == 1 )
              ch_printf( ch, "Room:[%d]\n\r", room->vnum );
            if( !( rbuf = sprint_reset( pReset, &num ) ) )
               continue;
            send_to_char( rbuf, ch );
         }
      }
      if(!found)
        send_to_char( "The area your in has no resets.\n\r", ch );
      return;
   }

Feel free to mess around with the display i just went with it like this for now :) welcome to put in some ideas on how to make it look better but this will display all resets in the area you are in. You can also add in for it to use their assigned area if they have one or what ever you want to do with it :) Expend it as you like :)
       
Pages:<< prev 1 next >>