Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, Bing

Members: 0
Guests: 36
Stats
Files
Topics
Posts
Members
Newest Member
489
3,792
19,647
597
Aileenutz

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » LoP Bugfix List » Locker Issue
Forum Rules | Mark all | Recent Posts

Locker Issue
< Newer Topic :: Older Topic > Lockers not being saved

Pages:<< prev 1 next >>
Post is unread #1 Oct 19, 2008 9:09 am   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,917
JoinedJul 26, 2005

 
in lockers.c
in do_locker
find
   for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
      if( locker->name == ch->name )
         break;

change it to
   for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
      if( locker->pIndexData->vnum == OBJ_VNUM_LOCKER && !str_cmp( locker->name, ch->name ) )
         break;


in rename_locker
find
   for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
      if( locker->name == ch->name )
         break;

change it to this
   for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
      if( locker->pIndexData->vnum == OBJ_VNUM_LOCKER && !str_cmp( locker->name, ch->name ) )
         break;


in save.c
find
                     for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
                     {
                        if( locker->name == ch->name )
                           break;
                     }

change it to
                     for( locker = ch->in_room->first_content; locker; locker = locker->next_content )
                     {
                        if( locker->pIndexData->vnum == OBJ_VNUM_LOCKER && !str_cmp( locker->name, ch->name ) )
                           break;
                     }

Pages:<< prev 1 next >>