当前位置: 首页>>代码示例>>C#>>正文


C# Server.LoginEventArgs类代码示例

本文整理汇总了C#中Server.LoginEventArgs的典型用法代码示例。如果您正苦于以下问题:C# LoginEventArgs类的具体用法?C# LoginEventArgs怎么用?C# LoginEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LoginEventArgs类属于Server命名空间,在下文中一共展示了LoginEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnLogin

 private static void OnLogin(LoginEventArgs e)
 {
     foreach (TownHouse house in BaseHouse.GetHouses(e.Mobile).OfType<TownHouse>())
     {
         (house).ForSaleSign.CheckDemolishTimer();
     }
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:General.cs

示例2: OnLogin

		public static void OnLogin( LoginEventArgs e )
		{
			BaseHouse house = BaseHouse.FindHouseAt( e.Mobile );

			if ( house != null && !house.Public && !house.IsFriend( e.Mobile ) )
				e.Mobile.Location = house.BanLocation;
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:HouseRegion.cs

示例3: OnLogin

		private static void OnLogin(LoginEventArgs e)
		{
			if (CMOptions.ModuleEnabled && e.Mobile != null)
			{
				Invalidate(e.Mobile);
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:7,代码来源:EquipmentSets.cs

示例4: OnLogin

		private static void OnLogin(LoginEventArgs e)
		{
			if (e.Mobile.AccessLevel >= AccessLevel.Counselor)
			{
				SendToolbar(e.Mobile);
			}
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:ToolbarCore.cs

示例5: EventSink_Login

 public static void EventSink_Login(LoginEventArgs e)
 {
     if (e.Mobile.RawStatTotal > e.Mobile.StatCap && e.Mobile.AccessLevel == AccessLevel.Player)
     {
         e.Mobile.SendGump(new LowerStatsGump(e.Mobile));
     }
 }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:LowerStatsGump.cs

示例6: HiddenVillageEventSink_Login

		private static void HiddenVillageEventSink_Login( LoginEventArgs args )
		{
			Mobile m = args.Mobile;

			Container pack = m.Backpack;
			
			if ( pack != null )
			{
				List<HiddenVillagePass> passs = pack.FindItemsByType<HiddenVillagePass>();
				
				for ( int i = 0; i < passs.Count; ++i )
				{
					HiddenVillagePass pass = passs[i];
					
					if ( pass != null )
					{
						m.CloseGump( typeof( HiddenVillageIconGump ) );
						m.SendGump( new HiddenVillageIconGump(m) );
					}
				}
			}
			if (m.AccessLevel >= AccessLevel.Counselor)
			{
				m.SendMessage(68,"Because your a GM you get the HV pass!!");
				m.CloseGump( typeof( HiddenVillageIconGump ) );
				m.SendGump(new HiddenVillageIconGump(m));
			}
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:28,代码来源:HiddenVillage.cs

示例7: OnLogin

		public static void OnLogin( LoginEventArgs e )
		{
			Mobile from = e.Mobile;

			if ( from == null || from.AccessLevel < AccessLevel.Counselor )
				return;

			if ( HasDisconnected( from ) )
			{
				if ( !m_MoveHistory.ContainsKey( from ) )
					m_MoveHistory[from] = new LocationInfo( from.Location, from.Map );

				LocationInfo dest = GetRandomDestination();

				from.Location = dest.Location;
				from.Map = dest.Map;
			}
			else if ( m_MoveHistory.ContainsKey( from ) )
			{
				LocationInfo orig = m_MoveHistory[from];
				from.SendMessage( "Your character was moved from {0} ({1}) due to a detected client crash.", orig.Location, orig.Map );

				m_MoveHistory.Remove( from );
			}
		}
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:25,代码来源:PreventInaccess.cs

示例8: OnLogin

		private static void OnLogin(LoginEventArgs e)
		{
			if (CMOptions.LoginPopup)
			{
				SendCentralGump(e.Mobile as PlayerMobile);
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:UOFCentral.cs

示例9: Player_Login

 private static void Player_Login( LoginEventArgs args )
         {
         Mobile m = args.Mobile;
         Account acct = m.Account as Account;
         NetState ns = m.NetState;                  
              Console.WriteLine( "Login: {0}: Account:{1}, Has logged in with character:{2} - {3}", ns, acct, m.Name, DateTime.Now);
         }
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:7,代码来源:PlayerConsoleLogin.cs

示例10: OnLogin

		public static void OnLogin( LoginEventArgs e )
		{
			AnimalFormContext context = AnimalForm.GetContext( e.Mobile );

			if( context != null && context.SpeedBoost )
				e.Mobile.Send( SpeedControl.MountSpeed );
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:AnimalForm.cs

示例11: OnLogin

		private static void OnLogin( LoginEventArgs e )
		{
			if ( e.Mobile.AccessLevel != AccessLevel.Player
			&& s_ErrorLog.Count != 0
			&& !s_Checked.Contains( e.Mobile ) )
				ErrorsNotifyGump.SendTo( e.Mobile );
		}
开发者ID:greeduomacro,项目名称:uodarktimes-1,代码行数:7,代码来源:Errors.cs

示例12: EventSink_Login

		private static void EventSink_Login( LoginEventArgs e )
		{
			Account acct = e.Mobile.Account as Account;

			if ( acct == null )
				return;

			DateTime now = DateTime.Now;

			for ( int i = 0; i < m_Givers.Count; ++i )
			{
				GiftGiver giver = m_Givers[i];

				if ( now < giver.Start || now >= giver.Finish )
					continue; // not in the correct timefream

				if ( acct.Created > (giver.Start - giver.MinimumAge) )
					continue; // newly created account

				if ( acct.LastLogin >= giver.Start )
					continue; // already got one

				giver.DelayGiveGift( TimeSpan.FromSeconds( 5.0 ), e.Mobile );
			}

			acct.LastLogin = now;
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:27,代码来源:GiftGiving.cs

示例13: EventSink_Login

 public static void EventSink_Login(LoginEventArgs e)
 {
     if (e.Mobile is PlayerMobile)
     {
         SlayerTitleAttachment attachment = FindAttachment(e.Mobile);
     }
 }
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:SlayerTitleSystem.cs

示例14: OnLogin

		/// <summary>
		/// Sends a toolbar to staff members upon login.
		/// </summary>
		private static void OnLogin(LoginEventArgs e)
		{
			if (e.Mobile.AccessLevel >= AccessLevel.Counselor)
			{
				e.Mobile.CloseGump(typeof(Toolbar));
				SendToolbar(e.Mobile);
			}
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:11,代码来源:Toolbar.cs

示例15: World_Login

        private static void World_Login(LoginEventArgs args)
        {
            Mobile m = args.Mobile;

            if (args.Mobile.AccessLevel < AccessLevel.Administrator)//Edit AccessLevel to show its set for GameMaster
            {
                World.Broadcast(0x35, true, "{0} has logged into the world.", args.Mobile.Name);//Edit Message
            }
        }
开发者ID:greeduomacro,项目名称:annox,代码行数:9,代码来源:Announce.cs


注:本文中的Server.LoginEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。