Evanonian
Member
- ServUO Version
- Publish 58
- Ultima Expansion
- Stygian Abyss
Hello, I'm trying to add a bank check to players banks on account creation. However, it won't work no matter what I try. I re-compile and get zero errors however, the bank check just doesn't show up, I'm stumped.
Here's my code.
I've tried bank.DropItem and Banker.Deposit, I get no errors however, the check doesn't appear in the bank. If I do bank.DropItem( new Katana()); it works fine. I don't understand why gold and bank checks won't work. Interestingly enough, if I do PackItem( new BankCheck(100000)); it works fine.
Any ideas would be greatly appreciated.
Thanks,
Here's my code.
Code:
private static void AddBackpack(Mobile m)
{
Container pack = m.Backpack;
BankBox bank = m.BankBox;
if (pack == null)
{
pack = new Backpack
{
Movable = false
};
m.AddItem(pack);
}
//New Account Welcome Items.
Account ac = m.Account as Account;
if ( ac != null )
{
if (ac.Count == 1 && ac.GetTag("WelcomeItems") == null)
{
ac.AddTag("WelcomeItems", "Items Given");
Banker.Deposit(m, 100000, false);
bank.DropItem( new BankCheck(100000));
PackItem( new BankCheck(100000));
PackItem( new SkillBallPlus());
PackItem( new StatBall());
}
}
//PackItem(new Gold(1000)); // Starting gold can be customized here
}
Any ideas would be greatly appreciated.
Thanks,