コード例 #1
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;
			PlayerMobile player = from as PlayerMobile;

			switch( info.ButtonID )
			{
				case 0:
				{
                                        player.Profession = 3;
                                        player.Level = 1;
                                        player.Exp = 0;
                                        player.KillExp = 0;
                                        player.LevelAt = 200;

                                        from.BankBox.DropItem( new BankCheck( 500 ) );

                                        from.Str += 25;
                                        from.Dex += 20;
                                        from.Int += 5;

                                        from.Skills.ArmsLore.Base = 10;
                                        from.Skills.Blacksmith.Base = 50;
                                        from.Skills.Carpentry.Base = 25;
                                        from.Skills.Cooking.Base = 25;
                                        from.Skills.Fletching.Base = 25;
                                        from.Skills.Mining.Base = 50;
                                        from.Skills.Tailoring.Base = 25;
                                        from.Skills.Tinkering.Base = 25;

			                SkullCap hat = new SkullCap();
			                hat.Hue = 0;
			                hat.Identified = true;
			                from.AddToBackpack( hat );

			                FormalShirt shirt = new FormalShirt();
			                shirt.Hue = 0;
			                shirt.Identified = true;
			                from.AddToBackpack( shirt );

			                ShortPants pants = new ShortPants();
			                pants.Hue = 0;
			                pants.Identified = true;
			                from.AddToBackpack( pants );

			                HeavyBoots boots = new HeavyBoots();
			                boots.Hue = 0;
			                boots.Identified = true;
			                from.AddToBackpack( boots );

			                HalfApron apron = new HalfApron();
			                apron.Hue = 0;
			                apron.Identified = true;
			                from.AddToBackpack( apron );

			                FurCape cloak = new FurCape();
			                cloak.Hue = 0;
			                cloak.Identified = true;
			                from.AddToBackpack( cloak );

                                        from.AddToBackpack( new CrafterSkillGuide() );
                                        from.BankBox.DropItem( new BagOfComponents() );
                                        from.BankBox.DropItem( new BagOfTools() );
                                        from.BankBox.DropItem( new IronIngot( 200 ) );
                                        from.BankBox.DropItem( new MinersIngotPouch() );

		                        from.Map = Map.Malas;
                                        from.Location = new Point3D( 1670, 2008, 1 );
		                        from.PlaySound( 0x214 );
		                        from.FixedEffect( 0x376A, 10, 16 );

                                        World.Broadcast( 0x35, true, "Another has chosen thy path of the Crafter!" );
					from.CloseGump( typeof( CrafterClassGump ) );

					break;
				}
				case 1:
				{
					from.SendMessage( "You decide that the way of the Crafter is not in your best interests." );
					from.CloseGump( typeof( CrafterClassGump ) );

					break;
				}
			}
		}
コード例 #2
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile       from   = state.Mobile;
            PlayerMobile player = from as PlayerMobile;

            switch (info.ButtonID)
            {
            case 0:
            {
                player.Profession = 1;
                player.Level      = 1;
                player.Exp        = 0;
                player.KillExp    = 0;
                player.LevelAt    = 200;

                from.BankBox.DropItem(new BankCheck(500));

                from.Str += 30;
                from.Dex += 20;
                from.Int += 1;

                from.Skills.Anatomy.Base = 25;
                from.Skills.Fencing.Base = 50;
                from.Skills.Healing.Base = 50;
                from.Skills.Macing.Base  = 50;
                from.Skills.Swords.Base  = 50;
                from.Skills.Tactics.Base = 25;

                FurBoots boots = new FurBoots();
                boots.Hue        = 0;
                boots.Identified = true;
                from.AddToBackpack(boots);

                FurCape cloak = new FurCape();
                cloak.Hue        = 0;
                cloak.Identified = true;
                from.AddToBackpack(cloak);

                Dagger pierce = new Dagger();
                pierce.Hue        = 0;
                pierce.Identified = true;
                from.BankBox.DropItem(pierce);

                from.AddToBackpack(new WarriorSkillGuide());
                from.AddToBackpack(new Bandage(200));

                from.Map      = Map.Malas;
                from.Location = new Point3D(1670, 2008, 1);
                from.PlaySound(0x214);
                from.FixedEffect(0x376A, 10, 16);

                World.Broadcast(0x35, true, "Another has chosen thy path of the Warrior!");
                from.CloseGump(typeof(WarriorClassGump));

                break;
            }

            case 1:
            {
                from.SendMessage("You decide that the way of the Warrior is not in your best interests.");
                from.CloseGump(typeof(WarriorClassGump));

                break;
            }
            }
        }