Resource icon

New Player Awareness

Just a simple copy and past into CharacterCreation.cs that i think most people will find useful.

This edit will send a message and play a sound to online staff making them aware of a new presence. The message and sound will not play if it is not the first character created on the account.

Find:
Code:
new WelcomeTimer(newChar).Start();
in CharacterCreation.cs at about line 745 and just ABOVE it add:
Code:
//New player Awareness
			if (args.Account.Count < 2)
			{
			
				foreach (NetState adminstate in NetState.Instances)
				{
					Mobile m = adminstate.Mobile;

					if (m != null && m is PlayerMobile && m.AccessLevel > AccessLevel.Player)
					{
						m.PlaySound(0x40B);
						m.SendMessage(37, "A new player has logged into SHARD NAME!" );
					}
				}
			}
Author
Nifty
Views
462
First release
Last update
Rating
4.00 star(s) 1 ratings

Latest Reviews

D
I've seen servers with this or something similar and I think it is great for small servers starting out so players can be aware "Hey, theres a newbie we should all pitch in"
Upvote 0