Server.Mobiles.ThiefGuildmaster.OnGoldGiven C# (CSharp) Méthode

OnGoldGiven() public méthode

public OnGoldGiven ( Mobile from, Gold dropped ) : bool
from Mobile
dropped Gold
Résultat bool
		public override bool OnGoldGiven( Mobile from, Gold dropped )
		{
			if ( from is PlayerMobile && dropped.Amount == 700 )
			{
				PlayerMobile pm = (PlayerMobile)from;

				if ( pm.NpcGuild == NpcGuild.ThievesGuild )
				{
					from.AddToBackpack( new DisguiseKit() );

					dropped.Delete();
					return true;
				}
			}

			return base.OnGoldGiven( from, dropped );
		}