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

Members: 0
Guests: 28
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

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

Bank issue
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 1, 2010 5:56 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,917
JoinedJul 26, 2005

 
in bank.c
find
   /* Create a new account with amount deposit */
   if( type == BANK_CREATE )
   {
      if( uall )
         amount = ch->gold;
      else
      {
         if( amount <= 0 )
         {
            send_to_char( "You need to at least deposit something to open an account.\r\n", ch );
            return;
         }
      }
      if( !( bank = new_bank( ) ) )
         return;

change that to this
   /* Create a new account with amount deposit */
   if( type == BANK_CREATE )
   {
      if( uall )
         amount = ch->gold;
      else
      {
         if( amount <= 0 )
         {
            send_to_char( "You need to at least deposit something to open an account.\r\n", ch );
            return;
         }
         if( !has_gold( ch, amount ) )
         {
            send_to_char( "You don't have that much gold.\r\n", ch );
            return;
         }
      }
      if( !( bank = new_bank( ) ) )
         return;

Can you say oops. Everyone using the code should fix this one, that can be a very bad issue lol.

Pages:<< prev 1 next >>