• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Server.LoginEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OnLogin

        static void OnLogin(LoginEventArgs args)
        {
            MusicName toPlay = Config.SingleMusic;

            if (Config.PlayRandomMusic)
                toPlay = MusicList[Utility.Random(MusicList.Length)];

            args.Mobile.Send(PlayMusic.GetInstance(toPlay));
        }
开发者ID:Vorpalstar,项目名称:runuo-custom-scripts,代码行数:9,代码来源:PlayMusicOnLogin.cs


示例17: OnLogin

		public static void OnLogin( LoginEventArgs e )
		{
			if ( e.Mobile is PlayerMobile )
			{
				PlayerMobile pm = (PlayerMobile)e.Mobile;

				pm.VisibilityList.Clear();
			}
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:9,代码来源:VisibilityList.cs


示例18: EventSink_Login

 private static void EventSink_Login(LoginEventArgs args)
 {
     if (Enabled)
     {
         Mobile m = args.Mobile;
         m.CloseGump(typeof(RandomTOTDGump));
         m.SendGump(new RandomTOTDGump());
     }
 }
开发者ID:greeduomacro,项目名称:annox,代码行数:9,代码来源:RandomTOTD.cs


示例19: World_Login

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

		if (args.Mobile.AccessLevel < AccessLevel.GameMaster) 
		{ 
                       World.Broadcast( 0x35, true, "{0} has logged into the DragonKnight's world.", args.Mobile.Name ); // to edit the message just make sure you only change what is in the " " and not the {0} because that is the players name. 
		}
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:9,代码来源:AnnounceLogin.cs


示例20: EventSink_Login

 /// <summary>
 /// On player login, broadcast a message.
 /// </summary>
 public static void EventSink_Login(LoginEventArgs e)
 {
     if (e.Mobile.Player)
     {
         if (e.Mobile.AccessLevel <= m_AnnounceLevel)
             CommandHandlers.BroadcastMessage(AccessLevel.Player, m_LoginHue, String.Format(m_LoginMessage, e.Mobile.Name));
         else //broadcast any other level to the staff
             CommandHandlers.BroadcastMessage(AccessLevel.Counselor, m_LoginHue, String.Format(m_LoginMessage, e.Mobile.Name));
     }
 }
开发者ID:greeduomacro,项目名称:GoUO,代码行数:13,代码来源:LoginBroadcast.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Server.LootPackItem类代码示例发布时间:2022-05-26
下一篇:
C# Server.Item类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap