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, DotBot, Google, Yandex

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
622
ignatius
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » blasted things lol
Forum Rules | Mark all | Recent Posts

blasted things lol
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 31, 2005, 8:52 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

in update.c in function advance_level
find
   /*
    * bonus for deadlies 
    */
   if( IS_PKILL( ch ) )
   {
      add_mana = ( int )( add_mana + add_mana * .3 );
      add_move = ( int )( add_move + add_move * .3 );
      add_hp += 1;   /* bitch at blod if you don't like this :) */
      sprintf( buf, "Gravoc's Pandect steels your sinews.\n\r" );
   }

The buf isnt sent to char, some just remove it or the whole thing depending on if you want deadly's to get bonuses. But to correctly fix that (keeping the bonus and all) change it to like this
   /*
    * bonus for deadlies 
    */
   if( IS_PKILL( ch ) )
   {
      add_mana = ( int )( add_mana + add_mana * .3 );
      add_move = ( int )( add_move + add_move * .3 );
      add_hp += 1;   /* bitch at blod if you don't like this :) */
      send_to_char( "Gravoc's Pandect steels your sinews.\n\r", ch );
   }

       
Post is unread #2 Aug 31, 2005, 9:02 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

Another one in update.c in function gain_exp
find
   /*
    * Deadly exp loss floor is exp floor of level
    */
   if( IS_PKILL( ch ) && modgain < 0 )
   {
      if( ch->exp + modgain < exp_level( ch, ch->level ) )
      {
         modgain = exp_level( ch, ch->level ) - ch->exp;
         sprintf( buf, "Gravoc's Pandect protects your insight.\n\r" );
      }
   }

change that to this
   /*
    * Deadly exp loss floor is exp floor of level
    */
   if( IS_PKILL( ch ) && modgain < 0 )
   {
      if( ch->exp + modgain < exp_level( ch, ch->level ) )
      {
         modgain = exp_level( ch, ch->level ) - ch->exp;
         send_to_char( "Gravoc's Pandect protects your insight.\n\r", ch );
      }
   }

As with the other one the info was never sent, it also doesnt need to be put in a buf since it is not using any %'s, im not going to bother posting all the sprintf's that dont need to be since that would be alot of stuff, but i'll post the ones where the info is never sent to the char because of the lack of sending it.
       
Post is unread #3 Aug 31, 2005, 10:16 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

shops.c in function appraise_all
find
   if( total > 0 )
   {
      send_to_char( "\n\r", ch );
      sprintf( buf, "$N tells you, 'It will cost %d piece%s of gold in total.'", total, cost == 1 ? "" : "s" );
      act( AT_TELL, buf, ch, NULL, keeper, TO_CHAR );
      strcpy( pbuf, "$N tells you, 'Remember there is a 10% surcharge for repair all.'" );
      act( AT_TELL, buf, ch, NULL, keeper, TO_CHAR );
   }

Its sending buf twice and the second one should be sending pbuf
personaly i say fix it this way though
change
   char buf[MAX_STRING_LENGTH], *pbuf = buf;

to this
   char buf[MAX_STRING_LENGTH];

then replace the code at the top of this post with this
   if( total > 0 )
   {
      send_to_char( "\n\r", ch );
      sprintf( buf, "$N tells you, 'It will cost %d piece%s of gold in total.'", total, cost == 1 ? "" : "s" );
      act( AT_TELL, buf, ch, NULL, keeper, TO_CHAR );
      act( AT_TELL, "$N tells you, 'Remember there is a 10% surchurge for repair all'", ch, NULL, keeper, TO_CHAR );
   }

Its just mainling getting rid of the strcpy to pbuf and making it display the stuff in the act since well its not needed in a buf since no %'s are used. could be wrong though and if i am feel free to say so :)
       
Pages:<< prev 1 next >>