lots of little stuff, but mostly bank optimization, due to the weirdness of the calls
This commit is contained in:
parent
566de1c2cf
commit
f95101c201
29 changed files with 214 additions and 282 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue