Пример #1
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			PlayerMobile m = m_user; ToolBox box = i_box; BaseTool tool; BaseHarvestTool toola; Container pack = m.Backpack;

			switch ( info.ButtonID ) {
				default: { break; }
				case 1: { break; }
				case 2: { box.OW( m ); break; }
				case 3: { tool = new Tongs(); tool.UsesRemaining = box.i_S; pack.DropItem( tool ); box.i_S = 0; break; }
				case 4: { tool = new MouldingPlane(); tool.UsesRemaining = box.i_C; pack.DropItem( tool ); box.i_C = 0; break; }
				case 5: { tool = new TinkerTools(); tool.UsesRemaining = box.i_Ti; pack.DropItem( tool ); box.i_Ti = 0; break; }
				case 6: { tool = new SewingKit(); tool.UsesRemaining = box.i_T; pack.DropItem( tool ); box.i_T = 0; break; }
				case 7: { tool = new Blowpipe(); tool.UsesRemaining = box.i_G; pack.DropItem( tool ); box.i_G = 0; break; }
				case 8: { tool = new ScribesPen(); tool.UsesRemaining = box.i_Sc; pack.DropItem( tool ); box.i_Sc = 0; break; }
				case 9: { toola = new Shovel(); toola.UsesRemaining = box.i_M; pack.DropItem( toola ); box.i_M = 0; break; }
				case 10: { tool = new Skillet(); tool.UsesRemaining = box.i_Co; pack.DropItem( tool ); box.i_Co = 0; break; }
				case 11: { tool = new FletcherTools(); tool.UsesRemaining = box.i_F; pack.DropItem( tool ); box.i_F = 0; break; }
				case 12: { tool = new MortarPestle(); tool.UsesRemaining = box.i_A; pack.DropItem( tool ); box.i_A = 0; break; }
				case 13: { tool = new MalletAndChisel(); tool.UsesRemaining = box.i_St; pack.DropItem( tool ); box.i_St = 0; break; }
				case 14: { tool = new MapmakersPen(); tool.UsesRemaining = box.i_Ca; pack.DropItem( tool ); box.i_Ca = 0; break; } } if ( info.ButtonID > 2 ) { box.NG( m, box ); } } } }
Пример #2
0
 protected override void OnTick()
 {
     Shovel.RemovePoint(m_Location);
 }
		public OverlandTreasureHunter()
		{
			SpeechHue = Utility.RandomDyedHue();
			Title = "the treasure hunter";

			SetStr( 96, 115 );
			SetDex( 86, 105 );
			SetInt( 51, 65 );

			SetDamage( 23, 27 );

			SetSkill( SkillName.Anatomy, 60.0, 82.5 );
			SetSkill( SkillName.Wrestling, 88.5, 100.0 );
			SetSkill( SkillName.MagicResist, 88.5, 100.0 );
			SetSkill( SkillName.Tactics, 60.0, 82.5 );

			Fame = 2500;
			Karma = -2500;

			// Configure our treasuremap
			TreasureMap map = new TreasureMap( 5, Map.Felucca );
			map.LootType = LootType.Newbied;
			map.Themed = true;
			map.Theme = TreasureTheme.RandomOverlandTheme();
			map.Decoder = this;
			PackItem( map );

			// configure our distination (to the chest)
			Destination = new Point3D(map.ChestLocation,0).ToString();

			Shovel shovel = new Shovel( );
			shovel.LootType = LootType.Newbied;
			PackItem( shovel );

			Runebook book = new Runebook( );
			book.LootType = LootType.Newbied;
			book.Name = "Fromm's treasure hunting guide";
			AddItem( book );

			Item light = null;
			if (Utility.RandomBool())
				light = new Lantern();
			else
				light = new Torch();
			PackItem( light );

			// select a gem for payment
			m_GemIndex = Utility.Random(TreasureMapChest.m_GemTypes.Length);
			m_GemsRequired = 50 * (2 + Utility.Random( 9 )); // 100-500

			PackItem( new Bandage( Utility.RandomMinMax( 1, 15 ) ) );
		}