public LogoutGump(CampfireEntry entry, Bedroll bedroll) : base(100, 0) { m_Entry = entry; m_Bedroll = bedroll; m_CloseTimer = Timer.DelayCall(TimeSpan.FromSeconds(10.0), new TimerCallback(CloseGump)); AddBackground(0, 0, 400, 350, 0xA28); AddHtmlLocalized(100, 20, 200, 35, 1011015, false, false); // <center>Logging out via camping</center> /* Using a bedroll in the safety of a camp will log you out of the game safely. * If this is what you wish to do choose CONTINUE and you will be logged out. * Otherwise, select the CANCEL button to avoid logging out at this time. * The camp will remain secure for 10 seconds at which time this window will close * and you not be logged out. */ AddHtmlLocalized(50, 55, 300, 140, 1011016, true, true); AddButton(45, 298, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(80, 300, 110, 35, 1011011, false, false); // CONTINUE AddButton(200, 298, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(235, 300, 110, 35, 1011012, false, false); // CANCEL }
public LogoutGump( CampfireEntry entry, Bedroll bedroll ) : base( 100, 0 ) { m_Entry = entry; m_Bedroll = bedroll; m_CloseTimer = Timer.DelayCall( TimeSpan.FromSeconds( 10.0 ), new TimerCallback( Close ) ); AddBackground( 0, 0, 400, 350, 0xA28 ); AddHtmlLocalized( 100, 20, 200, 35, 1011015, false, false ); // <center>Logging out via camping</center> /* Using a bedroll in the safety of a camp will log you out of the game safely. * If this is what you wish to do choose CONTINUE and you will be logged out. * Otherwise, select the CANCEL button to avoid logging out at this time. * The camp will remain secure for 10 seconds at which time this window will close * and you not be logged out. */ AddHtmlLocalized( 50, 55, 300, 140, 1011016, true, true ); AddButton( 45, 298, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 80, 300, 110, 35, 1011011, false, false ); // CONTINUE AddButton( 200, 298, 0xFA5, 0xFA7, 0, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 235, 300, 110, 35, 1011012, false, false ); // CANCEL }
public TentSouthAddon( Mobile from ) { this.Owner = from; AddonComponent ac; ac = new AddonComponent( 734 ); AddComponent( ac, 3, 3, 0 ); ac = new AddonComponent( 735 ); AddComponent( ac, 2, 3, 0 ); ac = new AddonComponent( 736 ); AddComponent( ac, 3, 2, 0 ); ac = new AddonComponent( 736 ); AddComponent( ac, 3, 1, 0 ); ac = new AddonComponent( 736 ); AddComponent( ac, 3, 0, 0 ); ac = new AddonComponent( 739 ); AddComponent( ac, 3, -2, 0 ); ac = new AddonComponent( 740 ); AddComponent( ac, 2, -2, 0 ); ac = new AddonComponent( 743 ); AddComponent( ac, 1, -2, 0 ); ac = new AddonComponent( 743 ); AddComponent( ac, -1, -2, 0 ); ac = new AddonComponent( 737 ); AddComponent( ac, -2, -2, 0 ); ac = new AddonComponent( 742 ); AddComponent( ac, -2, -1, 0 ); ac = new AddonComponent( 742 ); AddComponent( ac, -2, 0, 0 ); ac = new AddonComponent( 742 ); AddComponent( ac, -2, 1, 0 ); ac = new AddonComponent( 1635 ); ac.Hue = 1341; AddComponent( ac, 3, 3, 25 ); ac = new AddonComponent( 1633 ); ac.Hue = 1341; AddComponent( ac, 3, 1, 25 ); ac = new AddonComponent( 1632 ); ac.Hue = 1341; AddComponent( ac, 1, 3, 25 ); ac = new AddonComponent( 1630 ); ac.Hue = 1341; AddComponent( ac, 0, 1, 25 ); ac = new AddonComponent( 1631 ); ac.Hue = 1341; AddComponent( ac, 1, 0, 25 ); ac = new AddonComponent( 1636 ); ac.Hue = 1341; AddComponent( ac, 3, 0, 25 ); ac = new AddonComponent( 1637 ); ac.Hue = 1341; AddComponent( ac, 0, 0, 25 ); ac = new AddonComponent( 1638 ); ac.Hue = 1341; AddComponent( ac, 0, 3, 25 ); ac = new AddonComponent( 743 ); AddComponent( ac, 0, -2, 0 ); ac = new AddonComponent( 742 ); AddComponent( ac, -2, 2, 0 ); ac = new AddonComponent( 736 ); AddComponent( ac, 3, -1, 0 ); ac = new AddonComponent( 735 ); AddComponent( ac, -1, 3, 0 ); ac = new AddonComponent( 738 ); AddComponent( ac, -2, 3, 0 ); ac = new AddonComponent( 1633 ); ac.Hue = 1341; AddComponent( ac, 3, 2, 25 ); ac = new AddonComponent( 1632 ); ac.Hue = 1341; AddComponent( ac, 2, 3, 25 ); ac = new AddonComponent( 1630 ); ac.Hue = 1341; AddComponent( ac, 0, 2, 25 ); ac = new AddonComponent( 1631 ); ac.Hue = 1341; AddComponent( ac, 2, 0, 25 ); ac = new AddonComponent( 1635 ); ac.Hue = 1341; AddComponent( ac, 2, 2, 28 ); ac = new AddonComponent( 1636 ); ac.Hue = 1341; AddComponent( ac, 2, 1, 28 ); ac = new AddonComponent( 1637 ); ac.Hue = 1341; AddComponent( ac, 1, 1, 28 ); ac = new AddonComponent( 1638 ); ac.Hue = 1341; AddComponent( ac, 1, 2, 28 ); ac = new AddonComponent( 4012 ); ac.Light = LightType.Circle150; AddComponent( ac, 1, 5, 0 ); uint keyvalue = Convert.ToUInt32( 2 * Utility.RandomMinMax( 1, 4999 ) ); WoodenBox pack = new WoodenBox(); pack.MoveToWorld( this.Owner.Location ); pack.Map = this.Owner.Map; pack.Y -= 1; pack.X -= 1; pack.Movable = false; pack.KeyValue = keyvalue; pack.LockLevel = 95; pack.RequiredSkill = 95; pack.ItemID = 0x9AA; Key key = new Key(); key.KeyValue = keyvalue; pack.DropItem( key ); this.Box = pack; Bedroll bedroll = new Bedroll(); bedroll.MoveToWorld( this.Owner.Location ); bedroll.Map = this.Owner.Map; bedroll.Y += 1; bedroll.Z -= 1; bedroll.ItemID = 0xA56; bedroll.Movable = false; this.Bedroll = bedroll; }