예제 #1
0
		public PBGrenade(int hue, PBGameItem pbgi ) : base( 0x0E2A  )
		{
			Hue = hue;
			Name = "Paintball Grenade";
			m_PBGI = pbgi;
			//3839
		}
예제 #2
0
        public PBSignup(Mobile from, PBGameItem pbgi ) : base( 0, 0 )
        {
        	mob = from;
        	GetFile();
        	m_PBGI = pbgi;
            this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			

			AddPage(0);
			AddBackground(159, 98, 430, 430, 9350);
			AddImage(165, 101, 5504, 1265);
			AddImage(517, 101, 5504, 1265);
			AddLabel(313, 108, 47, @"Ultima Paintball");
			AddLabel(346, 133, 47, @"Signup");
			AddHtml( 180, 214, 393, 171, m_message, (bool)false, (bool)true);
			AddButton(290, 499, 247, 248, (int)Buttons.Button1, GumpButtonType.Reply, 0);
			AddButton(393, 499, 243, 241, (int)Buttons.Button2, GumpButtonType.Reply, 0);
			AddHtml( 180, 397, 392, 49, @"I, " + from.Name + ", Have read the rules and wish to compete in this tournament", (bool)false, (bool)false);
			

            
        }
예제 #3
0
		public PBScoreGump( PBGameItem pbgi, PBScoreBoard Pbsb )	: base( 0, 0 )
		{
			m_PBGI = pbgi;
			m_PBSB = Pbsb;
			
			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;

			AddPage(0);

			AddBackground(0, 0, 595, 400, 2600);
			AddLabel(233, 20, 1153, "Paintball Scoreboard");

			AddBackground(13, 50, 135, 338, 2620);
			AddBackground(159, 50, 135, 338, 2620);
			if( m_PBGI.Teams > 2 )
				AddBackground(305, 50, 135, 338, 2620);
			if( m_PBGI.Teams > 3 )
				AddBackground(450, 50, 135, 338, 2620);

			AddPlayers();
			Pbsb.InvalidateProperties();
		}
예제 #4
0
		public PBAnnouncer( PBGameItem pbgi )
		{
			
            m_PBGI = pbgi;
			
			InitStats( 100, 100, 25 );

			Title = "the painball game announcer";
			Hue = Utility.RandomSkinHue();

				NameHue = 0x35;
				
				this.Blessed = true;

			if ( this.Female = Utility.RandomBool() )
			{
				this.Body = 0x191;
				this.Name = NameList.RandomName( "female" );
			}
			else
			{
				this.Body = 0x190;
				this.Name = NameList.RandomName( "male" );
			}
			

			AddItem( new HoodedShroudOfShadows( 1 ) );
			if ( pbgi != null )
			{
				pbgi.Announcers.Add(this);
			}
		}
예제 #5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_PBGI = reader.ReadItem() as PBGameItem;
                break;
            }
            }
        }
예제 #6
0
		public PBScoreBoard( PBGameItem pbgi, int id ) : base( 0x1e5e )
		{
			Movable = false;
			m_PBGI = pbgi;
			Name = "Paintball Scoreboard";
			if ( id == 1 )
			{
				ItemID = 0x1e5e;
			}
			if ( id == 2 )
			{
				ItemID = 0x1E5F;
			}
		}
예제 #7
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			switch ( version )
			{
				case 0:
				{
					m_PBGI = reader.ReadItem() as PBGameItem;
					break;
				}
			}
		}
예제 #8
0
		public PBNpc( PBGameItem PGI ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			m_PBGI = PGI;

			if ( Female = Utility.RandomBool() )
			{
				Body = 401;
				Name = NameList.RandomName( "female" );
			}
			else
			{
				Body = 400;
				Name = NameList.RandomName( "male" );
			}

			SetStr( 100, 100 );
			SetDex( 100, 100 );
			SetInt( 100, 100 );

			Utility.AssignRandomHair( this );

			
			SetSkill( SkillName.Archery, 100.0, 100.0 );
			SetSkill( SkillName.Anatomy, 100.0, 100.0 );
			SetSkill( SkillName.Tactics, 100.0, 100.0 );
			SetSkill( SkillName.Meditation, 100.0, 100.0 );
			SetSkill( SkillName.Tactics, 100.0, 100.0 );
			
			Container pack = this.Backpack;
			
			if ( pack == null )
			{
				pack = new Backpack();
				pack.Movable = false;

				this.AddItem( pack );
			}
			
			m_PBGI.AddPlayer( this );


		}
예제 #9
0
        public PBNpc(PBGameItem PGI) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            m_PBGI = PGI;

            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Name = NameList.RandomName("female");
            }
            else
            {
                Body = 400;
                Name = NameList.RandomName("male");
            }

            SetStr(100, 100);
            SetDex(100, 100);
            SetInt(100, 100);

            Utility.AssignRandomHair(this);


            SetSkill(SkillName.Archery, 100.0, 100.0);
            SetSkill(SkillName.Anatomy, 100.0, 100.0);
            SetSkill(SkillName.Tactics, 100.0, 100.0);
            SetSkill(SkillName.Meditation, 100.0, 100.0);
            SetSkill(SkillName.Tactics, 100.0, 100.0);

            Container pack = this.Backpack;

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

                this.AddItem(pack);
            }

            m_PBGI.AddPlayer(this);
        }
예제 #10
0
		public PBScoreGump( PBGameItem pbgi )	: base( 0, 0 )
		{
			m_PBGI = pbgi;

			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;

			AddPage(0);

			AddBackground(0, 0, 595, 400, 83);
			AddLabel(233, 20, 1153, "Paintball Scoreboard");

			AddBackground(13, 50, 135, 338, 9270);
			AddBackground(159, 50, 135, 338, 9270);
			if( m_PBGI.Teams > 2 )
				AddBackground(305, 50, 135, 338, 9270);
			if( m_PBGI.Teams > 3 )
				AddBackground(450, 50, 135, 338, 9270);

			AddPlayers();
		}
예제 #11
0
			public PBPrizeTarget( PBGameItem pbgi ) : base( -1, false, TargetFlags.None )
			{
				m_PBGI = pbgi;
			}
예제 #12
0
		public PBWeapon( int hue, PBGameItem pbgi ) : base( 5042 ) 
		{
			Name = "a paintball gun";
			Hue = hue;
			Weight = 1;
			Movable = false;
			DexRequirement = 0;
			StrRequirement = 0;
			IntRequirement = 0;
			Layer = Layer.TwoHanded;

			m_PBGI = pbgi;
		}
예제 #13
0
			public PBLocTarget( PBGameItem pbgi, int id ) : base( -1, true, TargetFlags.None )
			{
				m_PBGI = pbgi;
				m_ID = id;
			}
예제 #14
0
 public PBTimer(PBGameItem pbgi) : base(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1))
 {
     m_PBGI = pbgi;
 }
예제 #15
0
        public PBGMGump(PBGameItem pbgi) : base(0, 0)
        {
            m_PBGI = pbgi;

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            AddPage(0);

            AddBackground(100, 75, 480, 300, 83);
            AddLabel(350, 95, 1153, "Paintball GM Control");

            AddBackground(108, 85, 165, 280, 2620);
            AddButton(159, 95, 2443, 2444, (int)Buttons.Prizes, GumpButtonType.Reply, 0);
            AddLabel(168, 97, 1153, "Prizes");
            Item item;

            for (int i = 0; i < m_PBGI.m_WinnersPrizes.Count; i++)
            {
                item = m_PBGI.m_WinnersPrizes[i] as Item;
                AddLabel(115, 120 + i * 20, 1153, string.Format("{0} {1}", item.Amount, item.GetType().Name));
            }

            AddButton(374, 125, 2443, 2444, (int)Buttons.Teams, GumpButtonType.Reply, 0);
            AddLabel(385, 127, 1153, "Teams");
            AddLabel(447, 127, 1153, m_PBGI.Teams.ToString());

            AddButton(285, 155, 2443, 2444, (int)Buttons.T1Entry, GumpButtonType.Reply, 0);
            AddButton(285, 180, 2443, 2444, (int)Buttons.T2Entry, GumpButtonType.Reply, 0);
            AddButton(285, 205, 2443, 2444, (int)Buttons.T3Entry, GumpButtonType.Reply, 0);
            AddButton(285, 230, 2443, 2444, (int)Buttons.T4Entry, GumpButtonType.Reply, 0);
            AddLabel(290, 157, (m_PBGI.Team1Dest == m_PBGI.Location ? 138 : 1153), "T1 Entry");
            AddLabel(290, 182, (m_PBGI.Team2Dest == m_PBGI.Location ? 138 : 1153), "T2 Entry");
            AddLabel(290, 207, (m_PBGI.Team3Dest == m_PBGI.Location ? 138 : 1153), "T3 Entry");
            AddLabel(290, 232, (m_PBGI.Team4Dest == m_PBGI.Location ? 138 : 1153), "T4 Entry");
            AddLabel(355, 157, (m_PBGI.Team1Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team1Dest.X + ", " + m_PBGI.Team1Dest.Y);
            AddLabel(355, 182, (m_PBGI.Team2Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team2Dest.X + ", " + m_PBGI.Team2Dest.Y);
            AddLabel(355, 207, (m_PBGI.Team3Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team3Dest.X + ", " + m_PBGI.Team3Dest.Y);
            AddLabel(355, 232, (m_PBGI.Team4Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team4Dest.X + ", " + m_PBGI.Team4Dest.Y);

            AddButton(430, 155, 2443, 2444, (int)Buttons.T1Exit, GumpButtonType.Reply, 0);
            AddButton(430, 180, 2443, 2444, (int)Buttons.T2Exit, GumpButtonType.Reply, 0);
            AddButton(430, 205, 2443, 2444, (int)Buttons.T3Exit, GumpButtonType.Reply, 0);
            AddButton(430, 230, 2443, 2444, (int)Buttons.T4Exit, GumpButtonType.Reply, 0);
            AddLabel(440, 157, (m_PBGI.Exit1Dest == m_PBGI.Location ? 138 : 1153), "T1 Exit");
            AddLabel(440, 182, (m_PBGI.Exit2Dest == m_PBGI.Location ? 138 : 1153), "T2 Exit");
            AddLabel(440, 207, (m_PBGI.Exit3Dest == m_PBGI.Location ? 138 : 1153), "T3 Exit");
            AddLabel(440, 232, (m_PBGI.Exit4Dest == m_PBGI.Location ? 138 : 1153), "T4 Exit");
            AddLabel(500, 157, (m_PBGI.Exit1Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit1Dest.X + ", " + m_PBGI.Exit1Dest.Y);
            AddLabel(500, 182, (m_PBGI.Exit2Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit2Dest.X + ", " + m_PBGI.Exit2Dest.Y);
            AddLabel(500, 207, (m_PBGI.Exit3Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit3Dest.X + ", " + m_PBGI.Exit3Dest.Y);
            AddLabel(500, 232, (m_PBGI.Exit4Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit4Dest.X + ", " + m_PBGI.Exit4Dest.Y);

            AddButton(285, 335, 2443, 2444, (int)Buttons.Start, GumpButtonType.Reply, 0);
            AddButton(385, 335, 2443, 2444, (int)Buttons.Stop, GumpButtonType.Reply, 0);
            AddButton(485, 335, 2443, 2444, (int)Buttons.Pause, GumpButtonType.Reply, 0);
            AddLabel(296, 337, 67, "Start");
            AddLabel(400, 337, 38, "Stop");
            AddLabel(496, 337, 53, "Pause");
        }
예제 #16
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            m_PBGI = reader.ReadItem() as PBGameItem;
		}
예제 #17
0
        public PBGMGump( PBGameItem pbgi ) : base( 0, 0 )
        {
        	m_PBGI = pbgi;
        	
            this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;

			AddPage(0);
			AddBackground(55, 40, 642, 429, 9270);
			AddLabel(292, 66, 42, @"Ultima Paintball Game Control");
			AddButton(94, 103, 4005, 4007, (int)Buttons.Button1, GumpButtonType.Page, 1);
			AddLabel(135, 102, 2307, @"General");
			AddLabel(254, 103, 2307, @"Players");
			AddButton(216, 103, 4005, 4007, (int)Buttons.Button2, GumpButtonType.Page, 2);
			AddButton(324, 103, 4005, 4007, (int)Buttons.Button3, GumpButtonType.Page, 3);
			AddLabel(364, 103, 2307, @"Config");
			AddButton(422, 103, 4005, 4007, (int)Buttons.Button4, GumpButtonType.Page, 4);
			AddLabel(465, 103, 2307, @"Teams");
			AddButton(526, 103, 4005, 4007, (int)Buttons.Button5, GumpButtonType.Page, 5);
			AddLabel(565, 103, 2307, @"About");
			AddPage(1);
			AddButton(80, 427, 2443, 2444, (int)Buttons.Button6, GumpButtonType.Reply, 0);
			AddButton(157, 427, 2443, 2444, (int)Buttons.Button7, GumpButtonType.Reply, 0);
			AddButton(233, 427, 2443, 2444, (int)Buttons.Button8, GumpButtonType.Reply, 0);
			AddButton(307, 427, 2443, 2444, (int)Buttons.Button9, GumpButtonType.Reply, 0);
			AddButton(80, 390, 2443, 2444, (int)Buttons.Button12, GumpButtonType.Reply, 0);
			AddLabel(90, 429, 62, @"Start");
			AddLabel(174, 429, 37, @"Stop");
			AddLabel(243, 429, 52, @"Pause");
			AddLabel(323, 429, 3, @"Join");
			AddLabel(91, 163, 2307, @"Active: ");
		
		
			if ( pbgi.Active == true )
			{
				AddLabel(142, 163, 60, @"Yes");
			}
			else
			{
				AddLabel(142, 163, 60, @"No");
			}
			AddLabel(91, 188, 2307, @"Allow Join:");
			if ( pbgi.CanJoin == true )
			{
			AddLabel(94, 391, 37, @"Close");
				AddLabel(164, 188, 60, @"Yes");
				
			}
			else
			{
			AddLabel(94, 391, 62, @"Open");
				AddLabel(164, 188, 60, @"No");
				
			}
		
			AddLabel(91, 210, 2307, @"Teams:");
			AddLabel(139, 210, 60, pbgi.Teams.ToString());
            AddLabel(91, 232, 2307, @"Mod:");
            AddLabel(139, 232, 60, pbgi.m_Mod.ToString());
			AddBackground(441, 161, 232, 289, 9300);
			AddButton(458, 185, 2443, 2444, (int)Buttons.Button10, GumpButtonType.Reply, 0);
			AddButton(534, 185, 2443, 2444, (int)Buttons.Button11, GumpButtonType.Reply, 0);
			AddLabel(538, 164, 87, @"Prizes");
			AddLabel(477, 185, 267, @"Add");
			AddLabel(550, 185, 137, @"Clear");
			
			Item item;
			for( int i = 0; i < m_PBGI.m_WinnersPrizes.Count; i++ )
			{
				item = m_PBGI.m_WinnersPrizes[i] as Item;
				AddLabel( 450, 221+i*20, 1153, string.Format( "{0} {1}", item.Amount, item.Name ) );
			}
			
			
			
			
			
			AddPage(2);
			AddLabel(112, 161, 2307, @"Team 1");
			AddLabel(265, 161, 2307, @"Team 2");
			AddLabel(419, 161, 2307, @"Team 3");
			AddLabel(574, 161, 2307, @"Team 4");
			AddLabel(191, 136, 4, @"Npc");
			AddLabel(484, 136, 62, @"Player");
			AddLabel(335, 136, 422, @"Staff");
		
			AddBackground(84, 195, 125, 253, 9350);
			AddBackground(233, 195, 125, 253, 9350);
			AddBackground(382, 195, 125, 253, 9350);
			AddBackground(530, 195, 125, 253, 9350);
		
	
			
			int team, Team1, Team2, Team3, Team4;
		    Team1 = Team2 = Team3 = Team4 = 0;
			int team1hue, team2hue, team3hue, team4hue;
			team1hue = team2hue = team3hue = team4hue = 0;
			
			team1hue = m_PBGI.m_Team1Hue;
			team2hue = m_PBGI.m_Team2Hue;
			team3hue = m_PBGI.m_Team3Hue;
			team4hue = m_PBGI.m_Team4Hue;
			
			ArrayList PlayerTotal;
			PlayerTotal = new ArrayList();
			
			Item cloak;
			if ( m_PBGI.Players != null )
			{
			foreach(Mobile mob in m_PBGI.Players )
			{
				PlayerTotal.Add( mob );
			}
			}
			if ( m_PBGI.NpcPlayers != null )
			{
			foreach(Mobile npc in m_PBGI.NpcPlayers )
			{
				PlayerTotal.Add(npc);
			}
			}
			if ( PlayerTotal != null )
			{
		foreach( Mobile pm in PlayerTotal )
		{
				cloak = pm.FindItemOnLayer( Layer.Cloak );
			if ( cloak != null )
			{
				team = cloak.Hue;
				
			    if( team == team1hue )
			    {
			    	if ( m_PBGI.NpcPlayers.Contains( pm ) )
			    	{
			    		AddLabel( 93, 198+Team1*20, 4, pm.Name );
			    	}
			    	else if ( m_PBGI.Players.Contains( pm ) )
			    	{
			    		if ( pm.AccessLevel >= AccessLevel.Counselor )
			    		{
			    			AddLabel( 93, 198+Team1*20, 422, pm.Name );
			    		}
			    		else
			    		{
			    			AddLabel( 93, 198+Team1*20, 62, pm.Name );
			    		}
			    	}
					
					Team1 += 1;
			    }

			    else if( team == team2hue )
			    {
			    	if ( m_PBGI.NpcPlayers.Contains( pm ) )
			    	{
			    		AddLabel( 241, 198+Team2*20, 4, pm.Name );
			    	}
			    	else if ( m_PBGI.Players.Contains( pm ) )
			    	{
			    		if ( pm.AccessLevel >= AccessLevel.Counselor )
			    		{
			    			AddLabel( 241, 198+Team2*20, 422, pm.Name );
			    		}
			    		else
			    		{
			    			AddLabel( 241, 198+Team2*20, 62, pm.Name );
			    		}
			    	}
					
		
					Team2 += 1;
			    }

			    else if( team == team3hue )
			    {
			   		if ( m_PBGI.NpcPlayers.Contains( pm ) )
			    	{
			    		AddLabel( 386, 198+Team3*20, 4, pm.Name );
			    	}
			    	else if ( m_PBGI.Players.Contains( pm ) )
			    	{
			    		if ( pm.AccessLevel >= AccessLevel.Counselor )
			    		{
			    			AddLabel( 386, 198+Team3*20, 422, pm.Name );
			    		}
			    		else
			    		{
			    			AddLabel( 386, 198+Team3*20, 62, pm.Name );
			    		}
			    	}
					
		
					Team3 += 1;
			    }
			    
			    else if( team == team4hue )
			    {
			    	if ( m_PBGI.NpcPlayers.Contains( pm ) )
			    	{
			    		AddLabel( 538, 198+Team4*20, 4, pm.Name );
			    	}
			    	else if ( m_PBGI.Players.Contains( pm ) )
			    	{
			    		if ( pm.AccessLevel >= AccessLevel.Counselor )
			    		{
			    			AddLabel( 538, 198+Team4*20, 422, pm.Name );
			    		}
			    		else
			    		{
			    			AddLabel( 538, 198+Team4*20, 62, pm.Name );
			    		}
			    	}
					
				
					Team4 += 1;
			    }
			    else
			    {
			    	
			    }

			}
		}
			}
		/*	AddLabel(93, 199, 25, @"Player");
			
			
			AddLabel(241, 198, 25, @"Player");
			
			
			AddLabel(386, 198, 25, @"Player");
			
			
			AddLabel(538, 198, 25, @"Player");
			*/
			
			AddPage(3);
	
			AddButton(312, 160, 4005, 4007, (int)Buttons.Button13, GumpButtonType.Reply, 0);
			AddLabel(352, 160, 88, @"Add Announcer");
			AddLabel(341, 198, 88, @"Add Scoreboard");
			AddButton(312, 220, 4005, 4007, (int)Buttons.Button14, GumpButtonType.Reply, 0);
			AddLabel(349, 222, 87, @"South");
			AddButton(412, 220, 4005, 4007, (int)Buttons.Button15, GumpButtonType.Reply, 0);
			AddLabel(451, 223, 88, @"East");
			AddButton(312, 267, 4005, 4007, (int)Buttons.Button24, GumpButtonType.Reply, 0);
			AddLabel(352, 267, 88, @"Add Npc Player");
			
			AddPage(4);
			AddLabel(108, 148, 160, @"Team 1");
			AddButton(77, 244, 2443, 2444, (int)Buttons.Button16, GumpButtonType.Reply, 0);
			AddLabel(76, 170, 160, @"Name:");
			AddTextEntry(122, 170, 80, 20, 490, 0, m_PBGI.Team1Name);
			AddLabel(77, 197, 160, @"Hue:");
			AddTextEntry(115, 195, 38, 20, 490, 1, m_PBGI.Team1Hue.ToString());
			AddLabel(91, 244, 160, @"Entry");
			AddLabel(83, 272, 160, m_PBGI.Team1Dest.X + " , " + m_PBGI.Team1Dest.Y);
			AddButton(77, 311, 2443, 2444, (int)Buttons.Button17, GumpButtonType.Reply, 0);
			AddLabel(93, 313, 160, @"Exit");
			AddLabel(83, 340, 160, m_PBGI.Exit1Dest.X + " , " + m_PBGI.Exit1Dest.Y);
			AddLabel(258, 145, 160, @"Team 2");
			AddButton(227, 241, 2443, 2444, (int)Buttons.Button18, GumpButtonType.Reply, 0);
			AddLabel(226, 167, 160, @"Name:");
			AddTextEntry(272, 167, 80, 20, 490, 2, m_PBGI.Team2Name);
			AddLabel(227, 194, 160, @"Hue:");
			AddTextEntry(265, 192, 38, 20, 490, 3, m_PBGI.Team2Hue.ToString());
			AddLabel(241, 241, 160, @"Entry");
			AddLabel(233, 269, 160, m_PBGI.Team2Dest.X + " , " + m_PBGI.Team2Dest.Y);
			AddButton(227, 308, 2443, 2444, (int)Buttons.Button19, GumpButtonType.Reply, 0);
			AddLabel(243, 310, 160, @"Exit");
			AddLabel(233, 337, 160, m_PBGI.Exit2Dest.X + " , " + m_PBGI.Exit2Dest.Y);
			AddLabel(403, 144, 160, @"Team 3");
			AddButton(372, 240, 2443, 2444, (int)Buttons.Button20, GumpButtonType.Reply, 0);
			AddLabel(371, 166, 160, @"Name:");
			AddTextEntry(417, 166, 80, 20, 490, 4, m_PBGI.Team3Name);
			AddLabel(372, 193, 160, @"Hue:");
			AddTextEntry(410, 191, 38, 20, 490, 5, m_PBGI.Team3Hue.ToString());
			AddLabel(386, 240, 160, @"Entry");
			AddLabel(378, 268, 160, m_PBGI.Team3Dest.X + " , " + m_PBGI.Team3Dest.Y);
			AddButton(372, 307, 2443, 2444, (int)Buttons.Button21, GumpButtonType.Reply, 0);
			AddLabel(388, 309, 160, @"Exit");
			AddLabel(378, 336, 160, m_PBGI.Exit3Dest.X + " , " + m_PBGI.Exit3Dest.Y);
			AddLabel(556, 144, 160, @"Team 4");
			AddButton(525, 240, 2443, 2444, (int)Buttons.Button22, GumpButtonType.Reply, 0);
			AddLabel(524, 166, 160, @"Name:");
			AddTextEntry(570, 166, 80, 20, 490, 6, m_PBGI.Team4Name);
			AddLabel(525, 193, 160, @"Hue:");
			AddTextEntry(563, 191, 38, 20, 490, 7, m_PBGI.Team4Hue.ToString());
			AddLabel(539, 240, 160, @"Entry");
			AddLabel(531, 268, 160, m_PBGI.Team4Dest.X + " , " + m_PBGI.Team4Dest.Y);
			AddButton(525, 307, 2443, 2444, (int)Buttons.Button23, GumpButtonType.Reply, 0);
			AddLabel(541, 309, 160, @"Exit");
			AddLabel(531, 336, 160, m_PBGI.Exit4Dest.X + " , " + m_PBGI.Exit4Dest.Y);
			AddLabel(113, 416, 53, @"Teams:");
			AddLabel(163, 416, 189, m_PBGI.Teams.ToString());
			
			AddButton(352, 425, 247, 248, (int)Buttons.Button25, GumpButtonType.Reply, 0);
			AddButton(87, 414, 5541, 5542, (int)Buttons.Button26, GumpButtonType.Reply, 0);
			
			
			AddPage(5);
			AddLabel(320, 159, 398, @"Version: 1.1.0 STABLE");


        }
예제 #18
0
 public PBScoreBoard(PBGameItem pbgi) : base(0x1e5e)
 {
     Movable = true;
     m_PBGI  = pbgi;
     Name    = "Paintball Scoreboard";
 }
예제 #19
0
        public PBLocTarget(PBGameItem pbgi, int id) : base(-1, true, TargetFlags.None)
        {
            m_PBGI = pbgi;

            m_ID = id;
        }
예제 #20
0
		public PBGMGump( PBGameItem pbgi) : base( 0, 0 )
		{
			m_PBGI = pbgi;

			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;

			AddPage(0);

			AddBackground( 100, 75, 480, 300, 83 );
			AddLabel( 350, 95, 1153, "Paintball GM Control" );

			AddBackground( 108, 85, 165, 280, 2620 );
			AddButton( 159, 95, 2443, 2444, (int)Buttons.Prizes, GumpButtonType.Reply, 0 );
			AddLabel( 168, 97, 1153, "Prizes" );
			Item item;
			for( int i = 0; i < m_PBGI.m_WinnersPrizes.Count; i++ )
			{
				item = m_PBGI.m_WinnersPrizes[i] as Item;
				AddLabel( 115, 120+i*20, 1153, string.Format( "{0} {1}", item.Amount, item.GetType().Name ) );
			}

			AddButton( 374, 125, 2443, 2444, (int)Buttons.Teams, GumpButtonType.Reply, 0 );
			AddLabel( 385, 127, 1153, "Teams" );
			AddLabel( 447, 127, 1153, m_PBGI.Teams.ToString() );

			AddButton( 285, 155, 2443, 2444, (int)Buttons.T1Entry, GumpButtonType.Reply, 0 );
			AddButton( 285, 180, 2443, 2444, (int)Buttons.T2Entry, GumpButtonType.Reply, 0 );
			AddButton( 285, 205, 2443, 2444, (int)Buttons.T3Entry, GumpButtonType.Reply, 0 );
			AddButton( 285, 230, 2443, 2444, (int)Buttons.T4Entry, GumpButtonType.Reply, 0 );
			AddLabel( 290, 157, (m_PBGI.Team1Dest == m_PBGI.Location ? 138 : 1153), "T1 Entry" );
			AddLabel( 290, 182, (m_PBGI.Team2Dest == m_PBGI.Location ? 138 : 1153), "T2 Entry" );
			AddLabel( 290, 207, (m_PBGI.Team3Dest == m_PBGI.Location ? 138 : 1153), "T3 Entry" );
			AddLabel( 290, 232, (m_PBGI.Team4Dest == m_PBGI.Location ? 138 : 1153), "T4 Entry" );
			AddLabel( 355, 157, (m_PBGI.Team1Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team1Dest.X + ", " + m_PBGI.Team1Dest.Y );
			AddLabel( 355, 182, (m_PBGI.Team2Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team2Dest.X + ", " + m_PBGI.Team2Dest.Y );
			AddLabel( 355, 207, (m_PBGI.Team3Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team3Dest.X + ", " + m_PBGI.Team3Dest.Y );
			AddLabel( 355, 232, (m_PBGI.Team4Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Team4Dest.X + ", " + m_PBGI.Team4Dest.Y );

			AddButton( 430, 155, 2443, 2444, (int)Buttons.T1Exit, GumpButtonType.Reply, 0 );
			AddButton( 430, 180, 2443, 2444, (int)Buttons.T2Exit, GumpButtonType.Reply, 0 );
			AddButton( 430, 205, 2443, 2444, (int)Buttons.T3Exit, GumpButtonType.Reply, 0 );
			AddButton( 430, 230, 2443, 2444, (int)Buttons.T4Exit, GumpButtonType.Reply, 0 );
			AddLabel( 440, 157, (m_PBGI.Exit1Dest == m_PBGI.Location ? 138 : 1153), "T1 Exit" );
			AddLabel( 440, 182, (m_PBGI.Exit2Dest == m_PBGI.Location ? 138 : 1153), "T2 Exit" );
			AddLabel( 440, 207, (m_PBGI.Exit3Dest == m_PBGI.Location ? 138 : 1153), "T3 Exit" );
			AddLabel( 440, 232, (m_PBGI.Exit4Dest == m_PBGI.Location ? 138 : 1153), "T4 Exit" );
			AddLabel( 500, 157, (m_PBGI.Exit1Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit1Dest.X + ", " + m_PBGI.Exit1Dest.Y );
			AddLabel( 500, 182, (m_PBGI.Exit2Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit2Dest.X + ", " + m_PBGI.Exit2Dest.Y );
			AddLabel( 500, 207, (m_PBGI.Exit3Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit3Dest.X + ", " + m_PBGI.Exit3Dest.Y );
			AddLabel( 500, 232, (m_PBGI.Exit4Dest == m_PBGI.Location ? 138 : 1153), m_PBGI.Exit4Dest.X + ", " + m_PBGI.Exit4Dest.Y );

			AddButton( 285, 335, 2443, 2444, (int)Buttons.Start, GumpButtonType.Reply, 0 );
			AddButton( 385, 335, 2443, 2444, (int)Buttons.Stop, GumpButtonType.Reply, 0 );
			AddButton( 485, 335, 2443, 2444, (int)Buttons.Pause, GumpButtonType.Reply, 0 );
			AddLabel( 296, 337, 67, "Start" );
			AddLabel( 400, 337, 38, "Stop" );
			AddLabel( 496, 337, 53, "Pause" );
		}
예제 #21
0
        public PBGMGump(PBGameItem pbgi) : base(0, 0)
        {
            m_PBGI = pbgi;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;

            AddPage(0);
            AddBackground(55, 40, 642, 429, 9270);
            AddLabel(292, 66, 42, @"Ultima Paintball Game Control");
            AddButton(94, 103, 4005, 4007, (int)Buttons.Button1, GumpButtonType.Page, 1);
            AddLabel(135, 102, 2307, @"General");
            AddLabel(254, 103, 2307, @"Players");
            AddButton(216, 103, 4005, 4007, (int)Buttons.Button2, GumpButtonType.Page, 2);
            AddButton(324, 103, 4005, 4007, (int)Buttons.Button3, GumpButtonType.Page, 3);
            AddLabel(364, 103, 2307, @"Config");
            AddButton(422, 103, 4005, 4007, (int)Buttons.Button4, GumpButtonType.Page, 4);
            AddLabel(465, 103, 2307, @"Teams");
            AddButton(526, 103, 4005, 4007, (int)Buttons.Button5, GumpButtonType.Page, 5);
            AddLabel(565, 103, 2307, @"About");
            AddPage(1);
            AddButton(80, 427, 2443, 2444, (int)Buttons.Button6, GumpButtonType.Reply, 0);
            AddButton(157, 427, 2443, 2444, (int)Buttons.Button7, GumpButtonType.Reply, 0);
            AddButton(233, 427, 2443, 2444, (int)Buttons.Button8, GumpButtonType.Reply, 0);
            AddButton(307, 427, 2443, 2444, (int)Buttons.Button9, GumpButtonType.Reply, 0);
            AddButton(80, 390, 2443, 2444, (int)Buttons.Button12, GumpButtonType.Reply, 0);
            AddLabel(90, 429, 62, @"Start");
            AddLabel(174, 429, 37, @"Stop");
            AddLabel(243, 429, 52, @"Pause");
            AddLabel(323, 429, 3, @"Join");
            AddLabel(91, 163, 2307, @"Active: ");


            if (pbgi.Active == true)
            {
                AddLabel(142, 163, 60, @"Yes");
            }
            else
            {
                AddLabel(142, 163, 60, @"No");
            }
            AddLabel(91, 188, 2307, @"Allow Join:");
            if (pbgi.CanJoin == true)
            {
                AddLabel(94, 391, 37, @"Close");
                AddLabel(164, 188, 60, @"Yes");
            }
            else
            {
                AddLabel(94, 391, 62, @"Open");
                AddLabel(164, 188, 60, @"No");
            }

            AddLabel(91, 210, 2307, @"Teams:");
            AddLabel(139, 210, 60, pbgi.Teams.ToString());
            AddLabel(91, 232, 2307, @"Mod:");
            AddLabel(139, 232, 60, pbgi.m_Mod.ToString());
            AddBackground(441, 161, 232, 289, 9300);
            AddButton(458, 185, 2443, 2444, (int)Buttons.Button10, GumpButtonType.Reply, 0);
            AddButton(534, 185, 2443, 2444, (int)Buttons.Button11, GumpButtonType.Reply, 0);
            AddLabel(538, 164, 87, @"Prizes");
            AddLabel(477, 185, 267, @"Add");
            AddLabel(550, 185, 137, @"Clear");

            Item item;

            for (int i = 0; i < m_PBGI.m_WinnersPrizes.Count; i++)
            {
                item = m_PBGI.m_WinnersPrizes[i] as Item;
                AddLabel(450, 221 + i * 20, 1153, string.Format("{0} {1}", item.Amount, item.Name));
            }



            AddPage(2);
            AddLabel(112, 161, 2307, @"Team 1");
            AddLabel(265, 161, 2307, @"Team 2");
            AddLabel(419, 161, 2307, @"Team 3");
            AddLabel(574, 161, 2307, @"Team 4");
            AddLabel(191, 136, 4, @"Npc");
            AddLabel(484, 136, 62, @"Player");
            AddLabel(335, 136, 422, @"Staff");

            AddBackground(84, 195, 125, 253, 9350);
            AddBackground(233, 195, 125, 253, 9350);
            AddBackground(382, 195, 125, 253, 9350);
            AddBackground(530, 195, 125, 253, 9350);



            int team, Team1, Team2, Team3, Team4;

            Team1 = Team2 = Team3 = Team4 = 0;
            int team1hue, team2hue, team3hue, team4hue;

            team1hue = team2hue = team3hue = team4hue = 0;

            team1hue = m_PBGI.m_Team1Hue;
            team2hue = m_PBGI.m_Team2Hue;
            team3hue = m_PBGI.m_Team3Hue;
            team4hue = m_PBGI.m_Team4Hue;

            ArrayList PlayerTotal;

            PlayerTotal = new ArrayList();

            Item cloak;

            if (m_PBGI.Players != null)
            {
                foreach (Mobile mob in m_PBGI.Players)
                {
                    PlayerTotal.Add(mob);
                }
            }
            if (m_PBGI.NpcPlayers != null)
            {
                foreach (Mobile npc in m_PBGI.NpcPlayers)
                {
                    PlayerTotal.Add(npc);
                }
            }
            if (PlayerTotal != null)
            {
                foreach (Mobile pm in PlayerTotal)
                {
                    cloak = pm.FindItemOnLayer(Layer.Cloak);
                    if (cloak != null)
                    {
                        team = cloak.Hue;

                        if (team == team1hue)
                        {
                            if (m_PBGI.NpcPlayers.Contains(pm))
                            {
                                AddLabel(93, 198 + Team1 * 20, 4, pm.Name);
                            }
                            else if (m_PBGI.Players.Contains(pm))
                            {
                                if (pm.AccessLevel >= AccessLevel.Counselor)
                                {
                                    AddLabel(93, 198 + Team1 * 20, 422, pm.Name);
                                }
                                else
                                {
                                    AddLabel(93, 198 + Team1 * 20, 62, pm.Name);
                                }
                            }

                            Team1 += 1;
                        }

                        else if (team == team2hue)
                        {
                            if (m_PBGI.NpcPlayers.Contains(pm))
                            {
                                AddLabel(241, 198 + Team2 * 20, 4, pm.Name);
                            }
                            else if (m_PBGI.Players.Contains(pm))
                            {
                                if (pm.AccessLevel >= AccessLevel.Counselor)
                                {
                                    AddLabel(241, 198 + Team2 * 20, 422, pm.Name);
                                }
                                else
                                {
                                    AddLabel(241, 198 + Team2 * 20, 62, pm.Name);
                                }
                            }


                            Team2 += 1;
                        }

                        else if (team == team3hue)
                        {
                            if (m_PBGI.NpcPlayers.Contains(pm))
                            {
                                AddLabel(386, 198 + Team3 * 20, 4, pm.Name);
                            }
                            else if (m_PBGI.Players.Contains(pm))
                            {
                                if (pm.AccessLevel >= AccessLevel.Counselor)
                                {
                                    AddLabel(386, 198 + Team3 * 20, 422, pm.Name);
                                }
                                else
                                {
                                    AddLabel(386, 198 + Team3 * 20, 62, pm.Name);
                                }
                            }


                            Team3 += 1;
                        }

                        else if (team == team4hue)
                        {
                            if (m_PBGI.NpcPlayers.Contains(pm))
                            {
                                AddLabel(538, 198 + Team4 * 20, 4, pm.Name);
                            }
                            else if (m_PBGI.Players.Contains(pm))
                            {
                                if (pm.AccessLevel >= AccessLevel.Counselor)
                                {
                                    AddLabel(538, 198 + Team4 * 20, 422, pm.Name);
                                }
                                else
                                {
                                    AddLabel(538, 198 + Team4 * 20, 62, pm.Name);
                                }
                            }


                            Team4 += 1;
                        }
                        else
                        {
                        }
                    }
                }
            }

            /*	AddLabel(93, 199, 25, @"Player");
             *
             *
             *      AddLabel(241, 198, 25, @"Player");
             *
             *
             *      AddLabel(386, 198, 25, @"Player");
             *
             *
             *      AddLabel(538, 198, 25, @"Player");
             */

            AddPage(3);

            AddButton(312, 160, 4005, 4007, (int)Buttons.Button13, GumpButtonType.Reply, 0);
            AddLabel(352, 160, 88, @"Add Announcer");
            AddLabel(341, 198, 88, @"Add Scoreboard");
            AddButton(312, 220, 4005, 4007, (int)Buttons.Button14, GumpButtonType.Reply, 0);
            AddLabel(349, 222, 87, @"South");
            AddButton(412, 220, 4005, 4007, (int)Buttons.Button15, GumpButtonType.Reply, 0);
            AddLabel(451, 223, 88, @"East");
            AddButton(312, 267, 4005, 4007, (int)Buttons.Button24, GumpButtonType.Reply, 0);
            AddLabel(352, 267, 88, @"Add Npc Player");

            AddPage(4);
            AddLabel(108, 148, 160, @"Team 1");
            AddButton(77, 244, 2443, 2444, (int)Buttons.Button16, GumpButtonType.Reply, 0);
            AddLabel(76, 170, 160, @"Name:");
            AddTextEntry(122, 170, 80, 20, 490, 0, m_PBGI.Team1Name);
            AddLabel(77, 197, 160, @"Hue:");
            AddTextEntry(115, 195, 38, 20, 490, 1, m_PBGI.Team1Hue.ToString());
            AddLabel(91, 244, 160, @"Entry");
            AddLabel(83, 272, 160, m_PBGI.Team1Dest.X + " , " + m_PBGI.Team1Dest.Y);
            AddButton(77, 311, 2443, 2444, (int)Buttons.Button17, GumpButtonType.Reply, 0);
            AddLabel(93, 313, 160, @"Exit");
            AddLabel(83, 340, 160, m_PBGI.Exit1Dest.X + " , " + m_PBGI.Exit1Dest.Y);
            AddLabel(258, 145, 160, @"Team 2");
            AddButton(227, 241, 2443, 2444, (int)Buttons.Button18, GumpButtonType.Reply, 0);
            AddLabel(226, 167, 160, @"Name:");
            AddTextEntry(272, 167, 80, 20, 490, 2, m_PBGI.Team2Name);
            AddLabel(227, 194, 160, @"Hue:");
            AddTextEntry(265, 192, 38, 20, 490, 3, m_PBGI.Team2Hue.ToString());
            AddLabel(241, 241, 160, @"Entry");
            AddLabel(233, 269, 160, m_PBGI.Team2Dest.X + " , " + m_PBGI.Team2Dest.Y);
            AddButton(227, 308, 2443, 2444, (int)Buttons.Button19, GumpButtonType.Reply, 0);
            AddLabel(243, 310, 160, @"Exit");
            AddLabel(233, 337, 160, m_PBGI.Exit2Dest.X + " , " + m_PBGI.Exit2Dest.Y);
            AddLabel(403, 144, 160, @"Team 3");
            AddButton(372, 240, 2443, 2444, (int)Buttons.Button20, GumpButtonType.Reply, 0);
            AddLabel(371, 166, 160, @"Name:");
            AddTextEntry(417, 166, 80, 20, 490, 4, m_PBGI.Team3Name);
            AddLabel(372, 193, 160, @"Hue:");
            AddTextEntry(410, 191, 38, 20, 490, 5, m_PBGI.Team3Hue.ToString());
            AddLabel(386, 240, 160, @"Entry");
            AddLabel(378, 268, 160, m_PBGI.Team3Dest.X + " , " + m_PBGI.Team3Dest.Y);
            AddButton(372, 307, 2443, 2444, (int)Buttons.Button21, GumpButtonType.Reply, 0);
            AddLabel(388, 309, 160, @"Exit");
            AddLabel(378, 336, 160, m_PBGI.Exit3Dest.X + " , " + m_PBGI.Exit3Dest.Y);
            AddLabel(556, 144, 160, @"Team 4");
            AddButton(525, 240, 2443, 2444, (int)Buttons.Button22, GumpButtonType.Reply, 0);
            AddLabel(524, 166, 160, @"Name:");
            AddTextEntry(570, 166, 80, 20, 490, 6, m_PBGI.Team4Name);
            AddLabel(525, 193, 160, @"Hue:");
            AddTextEntry(563, 191, 38, 20, 490, 7, m_PBGI.Team4Hue.ToString());
            AddLabel(539, 240, 160, @"Entry");
            AddLabel(531, 268, 160, m_PBGI.Team4Dest.X + " , " + m_PBGI.Team4Dest.Y);
            AddButton(525, 307, 2443, 2444, (int)Buttons.Button23, GumpButtonType.Reply, 0);
            AddLabel(541, 309, 160, @"Exit");
            AddLabel(531, 336, 160, m_PBGI.Exit4Dest.X + " , " + m_PBGI.Exit4Dest.Y);
            AddLabel(113, 416, 53, @"Teams:");
            AddLabel(163, 416, 189, m_PBGI.Teams.ToString());

            AddButton(352, 425, 247, 248, (int)Buttons.Button25, GumpButtonType.Reply, 0);
            AddButton(87, 414, 5541, 5542, (int)Buttons.Button26, GumpButtonType.Reply, 0);


            AddPage(5);
            AddLabel(320, 159, 398, @"Version: 1.1.0 STABLE");
        }
예제 #22
0
		public PBScoreBoard( PBGameItem pbgi ) : base( 0x1e5e )
		{
			Movable = true;
			m_PBGI = pbgi;
			Name = "Paintball Scoreboard";
		}
예제 #23
0
 public PBPrizeTarget(PBGameItem pbgi) : base(-1, false, TargetFlags.None)
 {
     m_PBGI = pbgi;
 }
예제 #24
0
		public PBTimer( PBGameItem pbgi ) : base( TimeSpan.FromSeconds( 1 ), TimeSpan.FromSeconds( 1 ) )
		{
			m_PBGI = pbgi;
		}