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

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,387
627
MargoThurb
Today's Birthdays
whisperedecho (34)
Related Links
» SmaugMuds.org » 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, 7:08 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 8:11 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 8:15 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 8:23 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 9:00 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 9:40 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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, 9:44 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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 15, 2017, 10:08 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
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 >>