Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Sogou

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Not a bug but more unneeded s...
Forum Rules | Mark all | Recent Posts

Not a bug but more unneeded stuff
< Newer Topic :: Older Topic > rent

Pages:<< prev 1 next >>
Post is unread #1 Aug 6, 2005, 7:10 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

In act_wiz.c
Find and remove
   ch_printf_color( ch, "&cRent: &w%d  ", obj->pIndexData->rent );

In build.c
Find and remove
   if( !str_cmp( arg2, "rent" ) )
   {
      if( !can_omodify( ch, obj ) )
         return;
      if( IS_OBJ_STAT( obj, ITEM_PROTOTYPE ) )
         obj->pIndexData->rent = value;
      else
         send_to_char( "Item must have prototype flag to set this value.\n\r", ch );
      return;
   }

Find
      fprintf( fpout, "%d %d %d\n", pObjIndex->weight,
               pObjIndex->cost, pObjIndex->rent ? pObjIndex->rent : ( int )( pObjIndex->cost / 10 ) );

Change it to
      fprintf( fpout, "%d %d 0\n", pObjIndex->weight,
               pObjIndex->cost );

I just put in a 0 you can remove that too if you want but tossing in a 0 is probably the best way so you dont have to change object format loading :)

In db.c
find
      pObjIndex->rent = fread_number( fp );  /* unused */

change it to
    /* Use to be rent */
    fread_number(fp);

Left this to load up that number so it keeps it all fine with the current areas, its why i also left in a 0 :) you can remove both if you feel like it, best way to do so is to first remove where it puts in the 0, then save all the areas even the ones being built and then remove the fread_number where it use to load up rent.

Not really used for anything so might as well remove it
       
Post is unread #2 Aug 14, 2005, 8:25 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Taking that value out would make things like the rent snippet that much more involved to add. It could also break area file compatibility. Take it out if you want, but I think this one will remain in the FUSS distro since the risk outweighs the minor benefit.
       
Pages:<< prev 1 next >>