This commit is contained in:
parent
7ad00dceac
commit
0b4c3b15d9
41 changed files with 976 additions and 144 deletions
|
|
@ -65,11 +65,8 @@ namespace Server.Gumps
|
|||
|
||||
if ( from.Backpack != null )
|
||||
totalGold += from.Backpack.GetAmount( typeof( Gold ) );
|
||||
|
||||
BankBox bank = from.FindBankNoCreate();
|
||||
|
||||
if ( bank != null )
|
||||
totalGold += bank.GetAmount( typeof( Gold ) );
|
||||
|
||||
totalGold += Banker.GetBalance( from );
|
||||
|
||||
if ( totalGold < m_VI.Price )
|
||||
{
|
||||
|
|
@ -85,9 +82,9 @@ namespace Server.Gumps
|
|||
|
||||
if ( from.Backpack != null )
|
||||
leftPrice -= from.Backpack.ConsumeUpTo( typeof( Gold ), leftPrice );
|
||||
|
||||
if ( leftPrice > 0 && bank != null )
|
||||
bank.ConsumeUpTo( typeof( Gold ), leftPrice );
|
||||
|
||||
if ( leftPrice > 0 )
|
||||
Banker.Withdraw( from, leftPrice );
|
||||
|
||||
m_Vendor.HoldGold += m_VI.Price;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue