lots of little stuff, but mostly bank optimization, due to the weirdness of the calls

This commit is contained in:
mark 2007-01-19 22:10:11 +00:00
parent 566de1c2cf
commit f95101c201
29 changed files with 214 additions and 282 deletions

View file

@ -147,7 +147,9 @@ namespace Server.Engines.Quests.Collector
if ( obj != null && !obj.Completed )
{
if ( player.BankBox != null && player.BankBox.ConsumeTotal( typeof( Gold ), 10 ) )
BankBox bank = player.FindBankNoCreate();
if ( bank != null && bank.ConsumeTotal( typeof( Gold ), 10 ) )
{
obj.Complete();
}

View file

@ -131,10 +131,7 @@ namespace Server.Engines.Quests.Doom
if ( obj != null && obj.CurProgress > 0 )
{
BankBox box = From.BankBox;
if ( box != null )
box.DropItem( new DaemonBone( obj.CurProgress ) );
From.BankBox.DropItem( new DaemonBone( obj.CurProgress ) );
From.SendLocalizedMessage( 1050030 ); // The Daemon bones that you have thus far given to Victoria have been returned to you.
}