Evanonian
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
Hi, I have this code to give new players special items once per account.
Is there a way to make it so only one account gets them, if I have multiple accounts per IP enabled?
Thanks,
Code:
private static void AddBackpack(Mobile m)
{
Container pack = m.Backpack;
Container 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)
{
PackItem( new BankCheck(100000));
PackItem( new SkillBallPlus());
PackItem( new StatBall());
ac.AddTag("WelcomeItems", "Items Given");
}
}
//PackItem(new Gold(1000)); // Starting gold can be customized here
}
Is there a way to make it so only one account gets them, if I have multiple accounts per IP enabled?
Thanks,