//	Uncomment the line below to use a defined number instead of the standard Stat Cap
//		private int Cap;
				
		public DaemonSpellGump( PlayerMobile from, DaemonSpellbook book ): base( 50, 50 )
		{
			m_From = from;
			m_Book = book;
			m_Page = book.Page;

			Magery = from.Skills[SkillName.Magery].Base;
			
			this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddImage(2, 1, 11058);
			this.AddBackground(62, 105, 119, 90, 9200);
			this.AddBackground(225, 105, 119, 90, 9200);
			this.AddImage(63, 144, 3974);
			this.AddImage(92, 145, 3980);
			this.AddImage(130, 140, 3976);
			this.AddImage(241, 146, 3962);
			this.AddImage(279, 142, 3981);
			
			if ( m_Page != 1 )
				this.AddButton(52, 10, 2205, 2205, 1, GumpButtonType.Reply, 0);
			
			if ( m_Page != 5 )	
				this.AddButton(323, 9, 2206, 2206, 2, GumpButtonType.Reply, 0);
			
			if ( m_Page == 1 )
			{
				this.AddButton(90, 23, 1037, 1033, 3, GumpButtonType.Reply, 0);
				this.AddButton(254, 23, 1004, 1033, 4, GumpButtonType.Reply, 0);
				this.AddLabel(84, 116, 55, @"Unholy Gate"); //creates red gate, spawns friendly imps
				this.AddLabel(246, 116, 55, @"Daemon Form"); //polymorph into Daemon, when dead just Daemon dies human form crawls out
				this.AddLabel(93, 168, 5, @"Mana: 60");
				this.AddLabel(254, 168, 5, @"Mana: 40");
			}
			else if ( m_Page == 2 )
			{
				this.AddButton(90, 23, 1034, 1033, 5, GumpButtonType.Reply, 0);
				this.AddButton(254, 23, 1036, 1033, 6, GumpButtonType.Reply, 0);
				this.AddLabel(84, 116, 55, @"Psi Explode"); //removes percentage of mana from player and does that amount of damage
				this.AddLabel(246, 116, 55, @"Soul Bleed"); //adds blood all around player draining health but adding mana
				this.AddLabel(93, 168, 5, @"Mana: 35");
				this.AddLabel(254, 168, 5, @"Mana: 10");
			}
			else if ( m_Page == 3 )
			{
				this.AddButton(90, 23, 1032, 1033, 7, GumpButtonType.Reply, 0);
				this.AddButton(254, 23, 1005, 1033, 8, GumpButtonType.Reply, 0);
				this.AddLabel(84, 116, 55, @"Possession"); //makes creature under the players control for limited time
				this.AddLabel(246, 116, 55, @"Mana Shield"); //attacks go to mana rather than hitpoints
				this.AddLabel(93, 168, 5, @"Mana: 50");
				this.AddLabel(254, 168, 5, @"Mana: 20");
			}
			else if ( m_Page == 4 )
			{
				this.AddButton(90, 23, 1002, 1033, 9, GumpButtonType.Reply, 0);
				this.AddButton(254, 23, 1006, 1033, 10, GumpButtonType.Reply, 0);
				this.AddLabel(84, 116, 55, @"Shadow Walk"); //hides and stealths player (teleports?)
				this.AddLabel(246, 116, 55, @"Lay Ambush"); //places a hidden trap that decays
				this.AddLabel(93, 168, 5, @"Mana: 5");
				this.AddLabel(254, 168, 5, @"Mana: 10");
			}
			else if ( m_Page == 5 )
			{
				this.AddButton(90, 23, 1003, 1033, 11, GumpButtonType.Reply, 0);
				this.AddButton(254, 23, 1035, 1033, 12, GumpButtonType.Reply, 0);
				this.AddLabel(84, 116, 55, @"Bone Wall"); //Adds wall of bones imbedded with summoned skeletons that attack
				this.AddLabel(246, 116, 55, @"Impersonate"); //Makes the name and appearance the same as another player/creature
				this.AddLabel(93, 168, 5, @"Mana: 10");
				this.AddLabel(254, 168, 5, @"Mana: 20");
			}
		}
		public ImpersonateTarget( Mobile from, DaemonSpellbook book ) :  base ( 3, false, TargetFlags.None )
		{
			m_Book = book;
			m_From = from;
			from.SendMessage("Who do you wish to impersonate?");
		}
		public LayAmbushTarget( Mobile from, DaemonSpellbook book ) :  base ( Core.ML ? 10 : 12, true, TargetFlags.None )
		{
			m_Book = book;
			m_From = from;
			from.SendMessage("Place the ambush trap!");
		}
		public BoneWallTarget( Mobile from, DaemonSpellbook book ) :  base ( Core.ML ? 10 : 12, true, TargetFlags.None )
		{
			m_Book = book;
			m_From = from;
			from.SendMessage("Place the bone wall!");
		}
Esempio n. 5
0
//	Uncomment the line below to use a defined number instead of the standard Stat Cap
//		private int Cap;

        public DaemonSpellGump(PlayerMobile from, DaemonSpellbook book) : base(50, 50)
        {
            m_From = from;
            m_Book = book;
            m_Page = book.Page;

            Magery = from.Skills[SkillName.Magery].Base;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddImage(2, 1, 11058);
            this.AddBackground(62, 105, 119, 90, 9200);
            this.AddBackground(225, 105, 119, 90, 9200);
            this.AddImage(63, 144, 3974);
            this.AddImage(92, 145, 3980);
            this.AddImage(130, 140, 3976);
            this.AddImage(241, 146, 3962);
            this.AddImage(279, 142, 3981);

            if (m_Page != 1)
            {
                this.AddButton(52, 10, 2205, 2205, 1, GumpButtonType.Reply, 0);
            }

            if (m_Page != 5)
            {
                this.AddButton(323, 9, 2206, 2206, 2, GumpButtonType.Reply, 0);
            }

            if (m_Page == 1)
            {
                this.AddButton(90, 23, 1037, 1033, 3, GumpButtonType.Reply, 0);
                this.AddButton(254, 23, 1004, 1033, 4, GumpButtonType.Reply, 0);
                this.AddLabel(84, 116, 55, @"Unholy Gate");                 //creates red gate, spawns friendly imps
                this.AddLabel(246, 116, 55, @"Daemon Form");                //polymorph into Daemon, when dead just Daemon dies human form crawls out
                this.AddLabel(93, 168, 5, @"Mana: 60");
                this.AddLabel(254, 168, 5, @"Mana: 40");
            }
            else if (m_Page == 2)
            {
                this.AddButton(90, 23, 1034, 1033, 5, GumpButtonType.Reply, 0);
                this.AddButton(254, 23, 1036, 1033, 6, GumpButtonType.Reply, 0);
                this.AddLabel(84, 116, 55, @"Psi Explode");                 //removes percentage of mana from player and does that amount of damage
                this.AddLabel(246, 116, 55, @"Soul Bleed");                 //adds blood all around player draining health but adding mana
                this.AddLabel(93, 168, 5, @"Mana: 35");
                this.AddLabel(254, 168, 5, @"Mana: 10");
            }
            else if (m_Page == 3)
            {
                this.AddButton(90, 23, 1032, 1033, 7, GumpButtonType.Reply, 0);
                this.AddButton(254, 23, 1005, 1033, 8, GumpButtonType.Reply, 0);
                this.AddLabel(84, 116, 55, @"Possession");                 //makes creature under the players control for limited time
                this.AddLabel(246, 116, 55, @"Mana Shield");               //attacks go to mana rather than hitpoints
                this.AddLabel(93, 168, 5, @"Mana: 50");
                this.AddLabel(254, 168, 5, @"Mana: 20");
            }
            else if (m_Page == 4)
            {
                this.AddButton(90, 23, 1002, 1033, 9, GumpButtonType.Reply, 0);
                this.AddButton(254, 23, 1006, 1033, 10, GumpButtonType.Reply, 0);
                this.AddLabel(84, 116, 55, @"Shadow Walk");                 //hides and stealths player (teleports?)
                this.AddLabel(246, 116, 55, @"Lay Ambush");                 //places a hidden trap that decays
                this.AddLabel(93, 168, 5, @"Mana: 5");
                this.AddLabel(254, 168, 5, @"Mana: 10");
            }
            else if (m_Page == 5)
            {
                this.AddButton(90, 23, 1003, 1033, 11, GumpButtonType.Reply, 0);
                this.AddButton(254, 23, 1035, 1033, 12, GumpButtonType.Reply, 0);
                this.AddLabel(84, 116, 55, @"Bone Wall");                 //Adds wall of bones imbedded with summoned skeletons that attack
                this.AddLabel(246, 116, 55, @"Impersonate");              //Makes the name and appearance the same as another player/creature
                this.AddLabel(93, 168, 5, @"Mana: 10");
                this.AddLabel(254, 168, 5, @"Mana: 20");
            }
        }
Esempio n. 6
0
 public LayAmbushTarget(Mobile from, DaemonSpellbook book) :  base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     m_Book = book;
     m_From = from;
     from.SendMessage("Place the ambush trap!");
 }
Esempio n. 7
0
 public ImpersonateTarget(Mobile from, DaemonSpellbook book) :  base(3, false, TargetFlags.None)
 {
     m_Book = book;
     m_From = from;
     from.SendMessage("Who do you wish to impersonate?");
 }
Esempio n. 8
0
 public BoneWallTarget(Mobile from, DaemonSpellbook book) :  base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     m_Book = book;
     m_From = from;
     from.SendMessage("Place the bone wall!");
 }