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
|
|
@ -62,9 +62,6 @@ namespace Server.Misc
|
|||
{
|
||||
BankBox bank = m.BankBox;
|
||||
|
||||
if ( bank == null )
|
||||
return;
|
||||
|
||||
// The new AOS bankboxes don't have powerscrolls, they are automatically 'applied':
|
||||
|
||||
for ( int i = 0; i < PowerScroll.Skills.Length; ++i )
|
||||
|
|
@ -431,107 +428,104 @@ namespace Server.Misc
|
|||
|
||||
BankBox bank = m.BankBox;
|
||||
|
||||
if ( bank != null )
|
||||
{
|
||||
bank.DropItem( new BankCheck( 1000000 ) );
|
||||
bank.DropItem( new BankCheck( 1000000 ) );
|
||||
|
||||
// Full spellbook
|
||||
Spellbook book = new Spellbook();
|
||||
// Full spellbook
|
||||
Spellbook book = new Spellbook();
|
||||
|
||||
book.Content = ulong.MaxValue;
|
||||
book.Content = ulong.MaxValue;
|
||||
|
||||
bank.DropItem( book );
|
||||
bank.DropItem( book );
|
||||
|
||||
Bag bag = new Bag();
|
||||
Bag bag = new Bag();
|
||||
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bag.DropItem( new Moonstone( MoonstoneType.Felucca ) );
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bag.DropItem( new Moonstone( MoonstoneType.Felucca ) );
|
||||
|
||||
// Felucca moonstones
|
||||
bank.DropItem( bag );
|
||||
// Felucca moonstones
|
||||
bank.DropItem( bag );
|
||||
|
||||
bag = new Bag();
|
||||
bag = new Bag();
|
||||
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bag.DropItem( new Moonstone( MoonstoneType.Trammel ) );
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bag.DropItem( new Moonstone( MoonstoneType.Trammel ) );
|
||||
|
||||
// Trammel moonstones
|
||||
bank.DropItem( bag );
|
||||
// Trammel moonstones
|
||||
bank.DropItem( bag );
|
||||
|
||||
// Treasure maps
|
||||
bank.DropItem( new TreasureMap( 1, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 2, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 3, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 4, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 5, Map.Trammel ) );
|
||||
// Treasure maps
|
||||
bank.DropItem( new TreasureMap( 1, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 2, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 3, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 4, Map.Trammel ) );
|
||||
bank.DropItem( new TreasureMap( 5, Map.Trammel ) );
|
||||
|
||||
// Bag containing 50 of each reagent
|
||||
bank.DropItem( new BagOfReagents( 50 ) );
|
||||
// Bag containing 50 of each reagent
|
||||
bank.DropItem( new BagOfReagents( 50 ) );
|
||||
|
||||
// Craft tools
|
||||
bank.DropItem( MakeNewbie( new Scissors() ) );
|
||||
bank.DropItem( MakeNewbie( new SewingKit( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SmithHammer( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new FletcherTools( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new DovetailSaw( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new MortarPestle( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ScribesPen( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new TinkerTools( 1000 ) ) );
|
||||
// Craft tools
|
||||
bank.DropItem( MakeNewbie( new Scissors() ) );
|
||||
bank.DropItem( MakeNewbie( new SewingKit( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SmithHammer( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new FletcherTools( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new DovetailSaw( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new MortarPestle( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ScribesPen( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new TinkerTools( 1000 ) ) );
|
||||
|
||||
// A few dye tubs
|
||||
bank.DropItem( new Dyes() );
|
||||
bank.DropItem( new DyeTub() );
|
||||
bank.DropItem( new DyeTub() );
|
||||
bank.DropItem( new BlackDyeTub() );
|
||||
// A few dye tubs
|
||||
bank.DropItem( new Dyes() );
|
||||
bank.DropItem( new DyeTub() );
|
||||
bank.DropItem( new DyeTub() );
|
||||
bank.DropItem( new BlackDyeTub() );
|
||||
|
||||
DyeTub darkRedTub = new DyeTub();
|
||||
DyeTub darkRedTub = new DyeTub();
|
||||
|
||||
darkRedTub.DyedHue = 0x485;
|
||||
darkRedTub.Redyable = false;
|
||||
darkRedTub.DyedHue = 0x485;
|
||||
darkRedTub.Redyable = false;
|
||||
|
||||
bank.DropItem( darkRedTub );
|
||||
bank.DropItem( darkRedTub );
|
||||
|
||||
// Some food
|
||||
bank.DropItem( MakeNewbie( new Apple( 1000 ) ) );
|
||||
// Some food
|
||||
bank.DropItem( MakeNewbie( new Apple( 1000 ) ) );
|
||||
|
||||
// Resources
|
||||
bank.DropItem( MakeNewbie( new Feather( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BoltOfCloth( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BlankScroll( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Hides( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bandage( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bottle( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Log( 1000 ) ) );
|
||||
// Resources
|
||||
bank.DropItem( MakeNewbie( new Feather( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BoltOfCloth( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BlankScroll( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Hides( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bandage( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bottle( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Log( 1000 ) ) );
|
||||
|
||||
bank.DropItem( MakeNewbie( new IronIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new DullCopperIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ShadowIronIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new CopperIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BronzeIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new GoldIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new AgapiteIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new VeriteIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ValoriteIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new IronIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new DullCopperIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ShadowIronIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new CopperIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new BronzeIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new GoldIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new AgapiteIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new VeriteIngot( 5000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new ValoriteIngot( 5000 ) ) );
|
||||
|
||||
// Reagents
|
||||
bank.DropItem( MakeNewbie( new BlackPearl( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bloodmoss( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Garlic( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Ginseng( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new MandrakeRoot( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Nightshade( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SulfurousAsh( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SpidersSilk( 1000 ) ) );
|
||||
// Reagents
|
||||
bank.DropItem( MakeNewbie( new BlackPearl( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Bloodmoss( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Garlic( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Ginseng( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new MandrakeRoot( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new Nightshade( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SulfurousAsh( 1000 ) ) );
|
||||
bank.DropItem( MakeNewbie( new SpidersSilk( 1000 ) ) );
|
||||
|
||||
// Some extra starting gold
|
||||
bank.DropItem( MakeNewbie( new Gold( 9000 ) ) );
|
||||
// Some extra starting gold
|
||||
bank.DropItem( MakeNewbie( new Gold( 9000 ) ) );
|
||||
|
||||
// 5 blank recall runes
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bank.DropItem( MakeNewbie( new RecallRune() ) );
|
||||
// 5 blank recall runes
|
||||
for ( int i = 0; i < 5; ++i )
|
||||
bank.DropItem( MakeNewbie( new RecallRune() ) );
|
||||
|
||||
AddPowerScrolls( bank );
|
||||
}
|
||||
AddPowerScrolls( bank );
|
||||
}
|
||||
|
||||
private static void AddPowerScrolls( BankBox bank )
|
||||
|
|
@ -690,7 +684,7 @@ namespace Server.Misc
|
|||
if( TestCenter.Enabled )
|
||||
FillBankbox( newChar );
|
||||
|
||||
if ( young && newChar.BankBox != null )
|
||||
if ( young )
|
||||
{
|
||||
NewPlayerTicket ticket = new NewPlayerTicket();
|
||||
ticket.Owner = newChar;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue