Login
User Name:

Password:



Register

Forgot your password?
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
SWRFUSS 1.4
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, Sogou

Members: 0
Guests: 32
Stats
Files
Topics
Posts
Members
Newest Member
488
3,789
19,632
596
Elwood

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

parse description bug
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 15, 2017 9:08 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
Looks like since I've never really used the pager in game I hadn't noticed this, but while testing today found this bug.
in act_info.c function parse_description
find
   send_to_char( showdescription, ch );

change that to
   send_to_pager( showdescription, ch );

Post is unread #2 Dec 15, 2017 10:11 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
in wilderness.c function parse_wilderness description
find
   send_to_char( showdescription, ch );

change it to
   send_to_pager( showdescription, ch );

Post is unread #3 Dec 15, 2017 10:15 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
act_info.c function show_compass
change
    ch_printf( ch, "&W%s&w------&W%s&w------&W%s\r\n", dir_nw, dir_n, dir_ne );
    ch_printf( ch, "&W%s&w---&W%s&w<-&G*&w->&W%s&w---&W%s\r\n", dir_w, dir_u, dir_d, dir_e );
    ch_printf( ch, "&W%s&w------&W%s&w------&W%s\r\n", dir_sw, dir_s, dir_se );

to
    pager_printf( ch, "&W%s&w------&W%s&w------&W%s\r\n", dir_nw, dir_n, dir_ne );
    pager_printf( ch, "&W%s&w---&W%s&w<-&G*&w->&W%s&w---&W%s\r\n", dir_w, dir_u, dir_d, dir_e );
    pager_printf( ch, "&W%s&w------&W%s&w------&W%s\r\n", dir_sw, dir_s, dir_se );

Post is unread #4 Dec 15, 2017 10:23 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
act_wiz.c do_mstat
find
   /* Should show all affects listed not just ones with matching skills */
   for( paf = victim->first_affect; paf; paf = paf->next )
   {
      if( ( skill = get_skilltype( paf->type ) ) )
         ch_printf( ch, "&c%s: &w'%s' ", skill_tname[skill->type], skill->name );
      else
         ch_printf( ch, "&c%d: &w'Unknown' ", paf->type );

      if( ( paf->location % REVERSE_APPLY ) == APPLY_STAT )
         ch_printf( ch, "Mods %s", ext_flag_string( &paf->bitvector, stattypes ) );
      else if( ( paf->location % REVERSE_APPLY ) == APPLY_RESISTANT )
         ch_printf( ch, "Mods %s", ext_flag_string( &paf->bitvector, ris_flags ) );
      else
         ch_printf( ch, "Mods %s", a_types[paf->location % REVERSE_APPLY] );

      if( ( paf->location % REVERSE_APPLY ) == APPLY_EXT_AFFECT )
      {
         if( paf->modifier == 0 )
            ch_printf( ch, " by %s", ext_flag_string( &paf->bitvector, a_flags ) );
         else if( paf->modifier > 0 && paf->modifier < AFF_MAX )
            ch_printf( ch, " by %s", a_flags[paf->modifier] );
         else
            ch_printf( ch, " by %d", paf->modifier );
      }
      else
         ch_printf( ch, " by %d", paf->modifier );
      ch_printf( ch, " for %d Seconds &D\r\n", paf->duration );
   }

change it to
   /* Should show all affects listed not just ones with matching skills */
   for( paf = victim->first_affect; paf; paf = paf->next )
   {
      if( ( skill = get_skilltype( paf->type ) ) )
         pager_printf( ch, "&c%s: &w'%s' ", skill_tname[skill->type], skill->name );
      else
         pager_printf( ch, "&c%d: &w'Unknown' ", paf->type );

      if( ( paf->location % REVERSE_APPLY ) == APPLY_STAT )
         pager_printf( ch, "Mods %s", ext_flag_string( &paf->bitvector, stattypes ) );
      else if( ( paf->location % REVERSE_APPLY ) == APPLY_RESISTANT )
         pager_printf( ch, "Mods %s", ext_flag_string( &paf->bitvector, ris_flags ) );
      else
         pager_printf( ch, "Mods %s", a_types[paf->location % REVERSE_APPLY] );

      if( ( paf->location % REVERSE_APPLY ) == APPLY_EXT_AFFECT )
      {
         if( paf->modifier == 0 )
            pager_printf( ch, " by %s", ext_flag_string( &paf->bitvector, a_flags ) );
         else if( paf->modifier > 0 && paf->modifier < AFF_MAX )
            pager_printf( ch, " by %s", a_flags[paf->modifier] );
         else
            pager_printf( ch, " by %d", paf->modifier );
      }
      else
         pager_printf( ch, " by %d", paf->modifier );
      pager_printf( ch, " for %d Seconds &D\r\n", paf->duration );
   }

Post is unread #5 Dec 15, 2017 11:00 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
news.c function do_news
find
   set_pager_color( AT_HELP, ch );

change it to
   set_char_color( AT_HELP, ch );

Post is unread #6 Dec 15, 2017 11:40 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
bti.c function do_bti
find
   set_pager_color( AT_HELP, ch );

change it to
   set_char_color( AT_HELP, ch );

Post is unread #7 Dec 15, 2017 11:44 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
skills.c function do_skilltable
find
   send_to_char( "Skills and Number of Uses This Run:\r\n", ch );

change it to
   send_to_pager( "Skills and Number of Uses This Run:\r\n", ch );


find
      send_to_char( "\r\n", ch );

change it to
      send_to_pager( "\r\n", ch );

Post is unread #8 Dec 16, 2017 12:08 am   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,914
JoinedJul 26, 2005

 
act_info.c function do_cmdtable
find
   ch_printf( ch, "Commands and Number of %s This Run:\r\n", lag ? "Lags" : "Uses" );

change it to
   pager_printf( ch, "Commands and Number of %s This Run:\r\n", lag ? "Lags" : "Uses" );


find
      send_to_char( "\r\n", ch );

change it to
      send_to_pager( "\r\n", ch );

Pages:<< prev 1 next >>