private static void AddBackpack( Mobile m ) { Container pack = m.Backpack; PlayerMobile pm = m as PlayerMobile; pm.RawStr = 10; pm.AvatarID = 1076; pm.RawDex = 10; pm.RawInt = 10; pm.MaxHits = 10; pm.MaxStam = 10; pm.MaxMana = 10; pm.Hits = 10; pm.Stam = 10; pm.Mana = 10; pm.Criminal = true; if ( pack == null ) { pack = new ArmourBackpack(); pack.Movable = false; m.AddItem( pack ); } PackItem( new RedBook( "a book", m.Name, 20, true ) ); PackItem( new Copper( Utility.Random( 75, 150 ) ) ); // Starting gold can be customized here PackItem( new Dagger() ); PackItem( new Candle() ); }
public void BackpackCheck( Mobile mob ) { if( !( mob is PlayerMobile ) ) return; if( mob.Backpack == null ) { Container pack = new ArmourBackpack(); pack.Movable = false; mob.AddItem( pack ); } }
public void Reforge() { XmlBackground.CleanUp(this); XmlAosAttribute.CleanUp(this); XmlAddiction.CleanUp(this); Reforging = true; ReforgeMap = Map; ReforgeLocation = new Point3D( X, Y, Z ); Map = Map.Felucca; Location = new Point3D( 5449, 1238, -95 ); DisguiseCommands.RemoveDisguise( this ); if( !OldMapChar && Account != null && !Account.AcceptedNames.Contains(Name) ) Account.AcceptedNames.Add( Name ); Container pack = Backpack; if( pack == null || pack.Deleted ) { pack = new ArmourBackpack(); pack.Movable = false; AddItem( pack ); } ArrayList list = new ArrayList(); foreach ( Item item in Items ) list.Add( item ); for( int i = 0; i < list.Count; i++ ) { Item item = list[i] as Item; if( (item is BaseArmor && !(item is ArmourBackpack)) || item is BaseClothing || item is BaseWeapon || item is SheathedItem || item is BaseEquipableLight || item is BaseTool || item is BaseJewel ) pack.AddItem( item ); } if( OldMapChar ) { if( Advanced != Advanced.None ) ExtraCPRewards = 40000; if( Subclass == Subclass.Thief || Advanced == Advanced.Thief ) CanBeThief = true; if( Class == Class.Mage ) CanBeMage = true; } LevelSystem.WipeAllTraits( this ); if( OldMapChar ) SendItemsToBankBox(); }