New chars appear with shoes in backpack, how can i make new characters to automatically appear with equipped shoes?



Code:
private static void AddShoes( Mobile m )
        {
            if( m.Race == Race.Elf )
                EquipItem( new ElvenBoots(), true );
            else
                EquipItem( new Shoes( Utility.RandomYellowHue() ), true );
        }

This is the piece of code i suppose, i added shoes to the AddBackpack method since they appeared without them:


Code:
        private static void AddBackpack( Mobile m )
        {
            Container pack = m.Backpack;

            if ( pack == null )
            {
                pack = new Backpack();
                pack.Movable = false;

                m.AddItem( pack );
            }

            PackItem( new Gold( 200 ) ); // Starting gold can be customized here
            PackItem( new MiniRewardCan() );
            PackItem( new Dagger() );
            PackItem( new Shoes() );
            PackItem( new Spellbook( UInt64.MaxValue ) );
            PackItem( new KeyRing());
            PackItem(new Bandage(30));
            PackItem( new PlayerGuide());
            PackItem( new Scissors());
       
        }

Thanks
 
what kind of character are you making?

Add shoes is only called here:
if (args.Profession <= 3)
{
AddShirt(newChar, args.ShirtHue);
AddPants(newChar, args.PantsHue);
AddShoes(newChar);
}

<= 3 means not Necromancer, Paladin, Samurai, or Ninja - as they have different shoes set to be equipped
 
what kind of character are you making?

Add shoes is only called here:
if (args.Profession <= 3)
{
AddShirt(newChar, args.ShirtHue);
AddPants(newChar, args.PantsHue);
AddShoes(newChar);
}

<= 3 means not Necromancer, Paladin, Samurai, or Ninja - as they have different shoes set to be equipped

The problem was there yes, for some reason my charactercreation doesnt had

Code:
AddShoes( newChar );

Got it working, thank for reply Lokai and zerodowned
 
Back